Sandboxes: document local custom-secret rotation and lifecycle
Maintainer thường phản hồi trong vòng 1 ngày
@dvdksn đang làm issue này rồi.
Từ ngày 20/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Markdown
- Star
- 4.7k
- Fork
- 8.6k
- Merge trung bình
- 2 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 188
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của docker/docs
-
Three code examples do not parse (HttpService, OAuth 2.0 flow, Scout config.json on Windows)Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
status/triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[docs-scanner] Confusing temporal framing in company creation stepsCó thể đã có người làm @sahithib20 đã nhận 2 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
docker/docs#26797 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
curl commands should be escapedĐang mởstatus/triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
missing a partĐang mởstatus/triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày