Sandboxes: document local custom-secret rotation and lifecycle

オープン
#26,389 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@dvdksn がすでに取り組んでいます。

2026年10月20日 から。

評価

この issue はまだ評価されていません。

説明

status/triage
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
Suggestion

Add a tested local custom-secret lifecycle example that covers:

  1. Creating a sandbox-scoped custom secret and inspecting its metadata.
  2. Rotating only the credential value, with the exact flags needed to select the existing record and an explanation of whether the placeholder stays stable.
  3. 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.
  4. Verifying the result without printing the real credential.
  5. 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 rm examples.

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時間
マージ済み PR(30日)
188

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docs のほかの issue

docker/docs の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。