Skip to content

sbx: document Linux keychain fallback for headless hosts#25232

Draft
dvdksn wants to merge 1 commit into
docker:mainfrom
dvdksn:worktree-sbx-linux-keychain-faq
Draft

sbx: document Linux keychain fallback for headless hosts#25232
dvdksn wants to merge 1 commit into
docker:mainfrom
dvdksn:worktree-sbx-linux-keychain-faq

Conversation

@dvdksn
Copy link
Copy Markdown
Contributor

@dvdksn dvdksn commented Jun 2, 2026

Summary

On Linux hosts without a running Secret Service (headless servers, some WSL setups), sbx falls back to an encrypted on-disk store instead of the OS keychain. This documents where secrets are stored per platform in the credentials page and adds a headless-Linux FAQ entry.

Note

This documents behavior from the unreleased PR docker/sandboxes#3231. Hold merge until that change ships. Opened as a draft for that reason.

Learnings

  • Origin of this change is a Slack thread, not a GitHub issue, so there's no Closes # linkage.

Generated by Claude Code

On Linux without a running Secret Service (headless servers, some WSL
setups), sbx falls back to an encrypted on-disk store instead of the OS
keychain. Document where secrets are stored per platform in the
credentials page and add a headless-Linux FAQ entry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 2, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 9bd53c2
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a1eadfdcae72c00081b1c76
😎 Deploy Preview https://deploy-preview-25232--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dvdksn dvdksn added this to the sbx/v0.32.0 milestone Jun 2, 2026
Copy link
Copy Markdown

@docker-agent docker-agent left a comment

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

The added content is well-structured and clearly documents the Linux keychain fallback behavior. No critical issues found — no vendored content, no missing redirects, no broken commands or incorrect facts. Cross-linking between faq.md and credentials.md uses correct relative paths and anchor fragments. Only minor style-guide items noted below.

On Linux hosts without a running Secret Service — headless servers and some
WSL setups — `sbx` falls back to an encrypted file under your user config
directory (`$XDG_CONFIG_HOME/com.docker.sandboxes`, usually
`~/.config/com.docker.sandboxes`). The fallback is automatic and needs no
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[LOW] Parentheses used in technical documentation

The Docker style guide says to avoid parentheses in technical documentation as they reduce readability. Consider inlining the default path directly:

$XDG_CONFIG_HOME/com.docker.sandboxes (usually ~/.config/com.docker.sandboxes)

Could be rewritten as:

$XDG_CONFIG_HOME/com.docker.sandboxes, which defaults to ~/.config/com.docker.sandboxes when $XDG_CONFIG_HOME is unset


- macOS: the system Keychain.
- Windows: the Windows Credential Manager.
- Linux: the Secret Service exposed by your desktop keyring, such as GNOME
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[LOW] Non-parallel list items: Linux entry spans multiple sentences while macOS/Windows entries are single sentences

The macOS and Windows list items are each a single sentence, but the Linux item contains two sentences. For parallel structure, consider splitting the second sentence into a follow-up note or consolidating:

  • Linux: the Secret Service exposed by your desktop keyring, such as GNOME Keyring or KDE Wallet.

Then cover the Ubuntu package detail in prose below the list.

Yes. On Linux, `sbx` stores secrets in the Secret Service exposed by your
desktop keyring (GNOME Keyring or KDE Wallet). Headless servers and some WSL
setups have no running Secret Service, so `sbx` falls back to an encrypted file
under `$XDG_CONFIG_HOME/com.docker.sandboxes` (usually
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[LOW] Parentheses used in technical documentation

Same parentheses pattern as in credentials.md (line 77). The style guide advises avoiding parentheses in technical docs. Consider:

$XDG_CONFIG_HOME/com.docker.sandboxes, which defaults to ~/.config/com.docker.sandboxes when $XDG_CONFIG_HOME is unset

Copy link
Copy Markdown
Contributor

@akristen akristen left a comment

Choose a reason for hiding this comment

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

non-blocking nit: but our faq docs titles tend to be the plural faqs rather than faq.

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.

3 participants