Skip to content

Document the SOPS secrets adapter - #201

Open
indiebrain wants to merge 4 commits into
basecamp:mainfrom
indiebrain:2026-06-30--document-sops-secrets-adapter
Open

Document the SOPS secrets adapter#201
indiebrain wants to merge 4 commits into
basecamp:mainfrom
indiebrain:2026-06-30--document-sops-secrets-adapter

Conversation

@indiebrain

@indiebrain indiebrain commented Jul 1, 2026

Copy link
Copy Markdown

What

Documents the new sops secrets adapter on the kamal secrets command page.

Companion

This documents the adapter added in basecamp/kamal#1906.

The new section follows the structure of the existing adapter sections (install
link → behavior → Use the adapter → examples → notes) and covers:

  • --from names the sops-encrypted file; positional arguments are keys within it.
  • Nested keys are flattened into parent/child paths; a parent key selects its
    whole subtree; passing no keys fetches every key.
  • Non-string values are returned as strings. The adapter passes --output-type json to sops internally so it normalizes YAML / JSON / env sources to one
    addressable shape — there is no user-facing --output-type option.
  • sops resolves its own decryption key, so --account is unused.

Add a sops section to the secrets command docs, covering fetching keys
from a sops-encrypted file via --from, nested key flattening, subtree and
fetch-all behavior, and that --account is not used.
Copilot AI review requested due to automatic review settings July 1, 2026 12:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the new sops secrets adapter on the kamal secrets command page, aligning it with the existing adapter documentation pattern and explaining how encrypted files/keys are addressed when fetching and extracting secrets.

Changes:

  • Adds a new “sops” adapter section describing usage with --from, positional key arguments, and flattened parent/child paths.
  • Provides examples for fetching specific keys, all keys, and entire nested subtrees, plus extraction examples.
  • Notes adapter behavior around output normalization and --account being ignored.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/commands/secrets.md Outdated
Comment thread docs/commands/secrets.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 1, 2026 12:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread docs/commands/secrets.md Outdated
Comment thread docs/commands/secrets.md
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 1, 2026 12:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread docs/commands/secrets.md
Comment thread docs/commands/secrets.md Outdated
@indiebrain indiebrain changed the title Document the sops secrets adapter Document the SOPS secrets adapter Jul 1, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 1, 2026 13:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants