Repository navigation
docs(azure-naming): split key vaults by isolation class - #691
Conversation
Replace the consumer-split rule with an isolation-class rule: a vault's token names the class of secrets it holds, readers get roles per class, and a class splits when a reader needs only part of it. Existing vault names are read as class names. Add an sp-<workload>-<env> row for service principals. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 3m 53s —— View job Code review complete
No blocking or high-signal findings. This is a documentation-only rename/restructure (consumer-split → isolation-class rule,
|
|
Claude finished @kyle-sexton's task in 1m 32s —— View job Security review —
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e0d5f5509
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 1m 8s —— View job Security review —
|
|
Claude finished @kyle-sexton's task in 1m 28s —— View job Code review complete
No blocking or high-signal findings. This is a documentation-only rename/restructure (consumer-split → isolation-class rule) plus a new service-principal naming row, reviewed at the current head (
Security-relevant aspects (whether the rename weakens the access-boundary guidance) were already covered by the security lane in an earlier comment on this PR; this pass stayed in the code-review lane's scope (correctness, consistency, documentation). |
|
claude-security-review has reviewed this pull request through c5606ad; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through c5606ad; a later push is reviewed from there. |
…ons (#694) No related issue: part of the key vault split for cross-account page publishing; follows #691 and melodic-software/provisioning#697. ## Summary Cloud sessions can now read Key Vault secrets. A cloud environment on Pro or Max can hold an OAuth 2.0 client credentials API credential for `*.vault.azure.net`, which Anthropic's agent proxy uses to add the bearer token outside the sandbox. A live probe on 2026-10-04 confirmed that a plain `curl` from a session reads a secret with no token in the VM. This adds a small cloud `vault-exec` that the shared setup script installs, using the same argv contract as the workstation resolver, so `mcp-launcher` and other callers work unchanged in cloud sessions. ## Fix - New `components/cloud-environment/vault-exec`: `vault-exec [--optional] --env NAME=secret -- cmd`. - Each secret is one `curl` GET, and `python3` reads the value from a pipe. The command then runs via `exec` with the variables set. - Exit codes: 1 on a failed read without `--optional`, 2 on bad usage. These match the workstation resolver. - No secret value ever appears in a command's arguments, on stdout or stderr, or in a log, and the caller's stdin is never read. - The default vault is `kv-melo-devtools-prod`, the only vault the cloud identity can read; `VAULT_EXEC_VAULT` overrides it. - `setup.sh` fetches the script from this repository's raw URL, the same way it fetches the plugin catalog and permission floor. It checks the file with `bash -n` and a marker line, then installs it to `~/.local/bin/vault-exec`. A `vault-exec` already there without the marker is left alone. The step is best-effort, and `SCRIPT_VERSION` is now `2026-10-04.1`. - README: new "Key Vault resolver" section. Secrets can't be read at setup-script time, because the proxy attaches credentials only after Claude Code starts. - `mcp-launcher` README: the cloud sentence now covers the installed resolver. - CI: the `cloud-environment` job also runs `vault-exec.test.sh`. ## Verification - `vault-exec.test.sh`: 41 assertions against a stubbed `curl`. They cover success, a 403 or 404 with and without `--optional`, the vault override, stdin and exit-code pass-through, the secret staying out of `curl`'s arguments and out of the output, and nine bad-usage cases. - `setup.test.sh`: 84 assertions, including the new install cases (fresh install, replacing our older copy, refusing a copy that isn't ours, refusing a fetched file without the marker). - shellcheck and shfmt are clean. Pre-commit (editorconfig, typos, markdownlint, gitleaks, shellcheck) passes. - Exit codes checked against the workstation resolver's usage text: 1 for an unresolved secret, 2 for a usage error or no `--env`. - Live: the 2026-10-04 probe read a 32-character dummy secret with HTTP 200 through the proxy credential. ## Related - #691: the isolation-class vault rule. - melodic-software/provisioning#697: the host-credential vault and the `sp-cloudagent-prod` rotation runbook. - Environments pick this up on their next cache rebuild. A trivial edit to the setup script field forces one. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: first step of a planned key vault split for cross-account page publishing; the plan lives in the claude-code-plugins working notes, not a tracker item.
Summary
The consumer-split rule named each key vault for the one identity that reads it. A vault shared by several readers with the same access, such as a host-credential vault every host uses, has no single consumer to name. This changes the rule to name a vault for the isolation class of the secrets it holds.
Fix
conventions/engineering/azure-naming.md: "The consumer-split rule" becomes "The isolation-class rule":secretsas a token stays banned.<consumer>token becomes<class>, and the key vault pattern becomeskv-melo-<class>-<env>.sp-<workload>-<env>, labeled judgment, because Microsoft's abbreviation list has no service principal entry. It has nomelotoken because display names need not be unique.conventions/engineering/README.md: the index row now names the isolation-class rule.Verification
grep -rn -e consumer-split -e '<consumer>' conventions/prints nothing.grep -n 'sp-<workload>-<env>' conventions/engineering/azure-naming.mdfinds one line (26).kv-meloor the old rule.Related
kv-melo-hosts-produnder this rule.vault-execcloud mode reads the developer-key class.🤖 Generated with Claude Code