Repository navigation
fix(#3373)!: block credential-class env.sandbox names; case-fold runner-secret refusal #8496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
07a6ec0
test(#3373): add reproduction test for reservedSandboxKeys blocklist
tpouyer cfe8945
fix(#3373)!: block credential-class env vars set via env.sandbox
tpouyer 170f848
fix(#3373): correct OpenShell environment migration guidance
tpouyer 4270ae1
docs(#3373): note GitHub Action proxy migration gap
tpouyer 2ce0966
docs(#3373): make the OpenShell migration link version-independent
tpouyer 2200cde
refactor(#3373): check the credential deny-list in the env.sandbox gate
tpouyer 0fb7589
docs(#3373): link the OpenShell reference at the pinned gateway version
tpouyer c249eca
chore(#3373): track the OpenShell tag in the customizing agents guide…
tpouyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
docs/ADRs/0145-keep-credential-deny-list-out-of-runner-secret-refusal.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| --- | ||
| title: "145. Keep the credential deny-list out of the runner-secret refusal" | ||
| status: Accepted | ||
| relates_to: | ||
| - agent-infrastructure | ||
| - security-threat-model | ||
| topics: | ||
| - harness | ||
| - secrets | ||
| - github-actions | ||
| --- | ||
|
|
||
| # 145. Keep the credential deny-list out of the runner-secret refusal | ||
|
|
||
| Date: 2026-10-19 | ||
|
|
||
| Amends: [ADR 0136](0136-runner-secrets-through-one-stored-secret.md) | ||
|
|
||
| ## Status | ||
|
|
||
| Accepted | ||
|
|
||
| ## Context | ||
|
|
||
| [ADR 0136](0136-runner-secrets-through-one-stored-secret.md) refuses some | ||
| names as runner-secret bundle keys, and its refusal reads the sandbox | ||
| reserved set (`reservedSandboxKeys`). #3373 makes `env.sandbox` also refuse | ||
| the credential-class deny-list: proxy, TLS-trust, Git, interpreter, loader | ||
| and shell-behavior names. | ||
|
|
||
| Those names are legitimate host-side. `pre_script` and `post_script` need | ||
| proxy and TLS settings to reach internal networks, and the sandbox child | ||
| never sees a runner-secret value. If the deny-list were merged into | ||
| `reservedSandboxKeys`, a bundle carrying, for example, `HTTPS_PROXY` would | ||
| fail validation and stop every run that uses it. | ||
|
|
||
| The refusal also has two gaps. It matched exact case, so a lowercase key | ||
| such as `path` passed, although the `env.sandbox` gate matches | ||
| case-insensitively. It refused `LD_*` but not the macOS dynamic-linker family | ||
| `DYLD_*`, which the plugin-env door already refuses. | ||
|
|
||
| ## Decision | ||
|
|
||
| This ADR settles the runner-secret refusal's name set once `env.sandbox` | ||
| refuses the credential deny-list: it does not read the deny-list, it matches | ||
| case-insensitively, and it refuses the `DYLD_*` family. The second and third | ||
| close gaps in that set rather than open a separate decision. | ||
|
|
||
| The `env.sandbox` gate checks the credential deny-list beside | ||
| `reservedSandboxKeys`; the deny-list is not merged into that map. The | ||
| runner-secret refusal keeps reading `reservedSandboxKeys` and does not | ||
| consult the deny-list. It also refuses the OIDC and provider-only keys, the | ||
| minted role tokens and workflow-set names refused since ADR 0136, and the | ||
| runner-owned prefixes, now including `DYLD_*`. Both doors match | ||
| case-insensitively. A credential-class name that is not also in | ||
| `reservedSandboxKeys` or under a refused prefix is refused at the | ||
| `env.sandbox` door and accepted as a runner-secret key. | ||
|
|
||
| ## Consequences | ||
|
|
||
| - The deny-list can widen without breaking runs whose bundles carry | ||
| host-side settings. | ||
| - Both doors read `reservedSandboxKeys`, so a runner-infrastructure name | ||
| added there is refused at both with no second list to keep in sync. | ||
| - Proxy, TLS-trust and Git settings stay available to host-side scripts | ||
| through runner secrets. | ||
| - ADR 0136's refused names stay refused, now with their case variants and | ||
| the `DYLD_*` family, so a bundle key such as `path` or `github_token` fails | ||
| validation. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.