Sandboxes: document local custom-secret rotation and lifecycle
维护者通常 1 天内回复
@dvdksn 已经在做这个了。
开始于 2026年10月20日。
评估
这个 Issue 还没有评估数据。
描述
Is this a docs issue?
- My issue is about the documentation content or website
Type of issue
I can't find what I'm looking for
Description
The local custom-secret documentation explains how to create a secret, but does not provide a complete workflow for updating one and making the change available to an existing sandbox.
The sbx secret set-custom reference describes the command as "Create or update", yet its examples only create secrets. It is unclear which combination of scope, target hosts, environment variable, and placeholder identifies the existing record to update, and whether changing those fields updates a record or creates another one. The --name option is cloud-only, so a name-based update example would not resolve this for local sandboxes.
The credentials guide explicitly describes immediate updates for service secrets. Readers also need the corresponding contract for custom secrets: updating the stored credential value and introducing a new placeholder environment variable are different operations, especially for a sandbox that already exists.
Location
- https://docs.docker.com/reference/cli/sbx/secret/set-custom/
- https://docs.docker.com/ai/sandboxes/configuration/credentials/#custom-secrets
Suggestion
Add a tested local custom-secret lifecycle example that covers:
- Creating a sandbox-scoped custom secret and inspecting its metadata.
- Rotating only the credential value, with the exact flags needed to select the existing record and an explanation of whether the placeholder stays stable.
- Explaining when an existing sandbox uses the updated value, and separately when a newly added placeholder environment variable becomes available. State whether agent restart, sandbox restart, explicit environment configuration, or recreation is needed for each case, including any differences between global and sandbox scope.
- Verifying the result without printing the real credential.
- Removing the custom secret by placeholder or through the interactive picker, including cleanup after the associated sandbox has been removed. Link to the existing
sbx secret rmexamples.
Keep local instructions distinct from the cloud API and cloud-only flags. Confirm the lifecycle and record-matching behavior with the implementation before documenting it, and note minimum versions where behavior differs.
- 主要语言
- Markdown
- 星标
- 4.7k
- 派生
- 8.6k
- 平均合并
- 2 天 8 小时
- 30 天内合并 PR
- 188
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker/docs 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 91/100
维护者通常 1 天内回复
-
status/triage
难度 1/5 1 小时以内 新手友好度 68/100
维护者通常 1 天内回复
-
[docs-scanner] Confusing temporal framing in company creation steps可能已有人在做 @sahithib20 于 2 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 89/100
维护者通常 1 天内回复
-
status/triage
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
missing a part未关闭status/triage
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复