feat: org setting to skip storing runner-discovered env vars in attestations#3177
Conversation
AI Session Analysis
|
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-9b4d83 |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-9b4d83 |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-9b4d83 |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-9b4d83 |
- |
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-9b4d83 |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-9b4d83 |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-9b4d83 |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-9b4d83 |
- |
Powered by Chainloop and Chainloop Trace
9d0b387 to
d4b0822
Compare
…tations Add an organization-level skip_runner_env_vars setting that opts out of storing the environment variables automatically discovered by the CI runner in the attestation. The contract's env_allow_list is still honored, and runner detection and runner environment metadata are unaffected. Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: 9b4d83fb-68fa-40f1-b9da-4e67c2b6c6ce
d4b0822 to
b76f30d
Compare
Summary
Adds an organization-level setting,
skip_runner_env_vars, that lets an organization opt out of storing the environment variables automatically discovered by the CI runner (GitHub Actions, GitLab, etc.) in the attestation.Runners discover two kinds of environment variables: a subset used to detect that the build is running inside a given runner, and the rest injected automatically as build metadata. When this setting is enabled, the auto-discovered metadata variables are no longer collected into the attestation. The contract's
env_allow_list(explicit, user-defined opt-in) is still honored, and runner detection and the structured runner environment metadata are unaffected.The setting defaults to
false, preserving current behavior. It is configurable viachainloop organization update --skip-runner-env-varsand is propagated to the crafter at attestation init time.Closes #3176
This contribution was developed with the assistance of Claude Code.
🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri