You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scrubSensitiveEnv removes a static secret list plus AuthEnvVars from the built-in provider catalog. Zero also supports secret environment-variable names outside that catalog:
arbitrary provider-profile apiKeyEnv values, such as COMPANY_LLM_SECRET
dynamic ZERO_OAUTH_<NAME>_CLIENT_SECRET variables
Those values remain inherited by sandboxed commands.
Relevant code
internal/sandbox/runner.go: scrubSensitiveEnv derives keys only from a fixed list and providercatalog.All().
internal/config/types.go: ProviderProfile.APIKeyEnv accepts a configured variable name.
internal/config/resolver.go: the configured APIKeyEnv is read from the process environment.
Configure a custom provider with "apiKeyEnv": "COMPANY_LLM_SECRET".
Start Zero with COMPANY_LLM_SECRET=example-secret.
Run a sandboxed command that prints it.
The value is present because it is absent from the catalog-derived scrub list.
Suggested fix
Pass resolved sensitive env names from configuration into sandbox construction and scrub dynamic secret namespaces such as ZERO_OAUTH_*_CLIENT_SECRET. Add tests with a non-catalog apiKeyEnv and custom OAuth provider name.
Activity