Repository navigation
feat(cloud-environment): install a Key Vault resolver for cloud sessions - #694
Conversation
Add a cloud vault-exec with the workstation resolver's argv contract (vault-exec [--optional] --env NAME=secret-name ... -- <command>). It reads each secret from kv-melo-devtools-prod (VAULT_EXEC_VAULT overrides) with no auth header, relying on the environment's OAuth client-credentials API credential that the agent proxy attaches, then execs the command. setup.sh fetches it from this component's published path and installs it, mode 0755, to ~/.local/bin/vault-exec, where the mcp-launcher looks. A vault-exec without this component's marker line is never replaced. The step is best-effort and only installs: setup-script requests never get the credential. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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: b05e963715
ℹ️ 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".
…ec under 60 seconds Retry in bash, one curl call per attempt, so a 500-then-200 sequence no longer hands json.load concatenated bodies. Only transport errors and HTTP 408, 429 and 5xx are retried, at most three 10-second attempts per secret, and all reads share a 45-second budget so Codex's 60-second startup timeout never fires before the --optional fallback. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 2m 33s —— View job Security review (
|
|
Claude finished @kyle-sexton's task in 3m 15s —— View job Claude is reviewing this PR
Note: I'm unable to run the test suite or shellcheck/shfmt — the sandbox requires approval for script execution that isn't available in this context. Reviewing statically instead.
|
|
claude-security-review has reviewed this pull request through e32e10f; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through e32e10f; a later push is reviewed from there. |

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 plaincurlfrom a session reads a secret with no token in the VM. This adds a small cloudvault-execthat the shared setup script installs, using the same argv contract as the workstation resolver, somcp-launcherand other callers work unchanged in cloud sessions.Fix
components/cloud-environment/vault-exec:vault-exec [--optional] --env NAME=secret -- cmd.curlGET, andpython3reads the value from a pipe. The command then runs viaexecwith the variables set.--optional, 2 on bad usage. These match the workstation resolver.kv-melo-devtools-prod, the only vault the cloud identity can read;VAULT_EXEC_VAULToverrides it.setup.shfetches the script from this repository's raw URL, the same way it fetches the plugin catalog and permission floor. It checks the file withbash -nand a marker line, then installs it to~/.local/bin/vault-exec. Avault-execalready there without the marker is left alone. The step is best-effort, andSCRIPT_VERSIONis now2026-10-04.1.mcp-launcherREADME: the cloud sentence now covers the installed resolver.cloud-environmentjob also runsvault-exec.test.sh.Verification
vault-exec.test.sh: 41 assertions against a stubbedcurl. They cover success, a 403 or 404 with and without--optional, the vault override, stdin and exit-code pass-through, the secret staying out ofcurl'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).--env.Related
sp-cloudagent-prodrotation runbook.🤖 Generated with Claude Code