mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
Add opt-in credential masking for proxied sandboxed sessions (#52302)
## What changed - Add the disabled-by-default `features.credential_masking` flag to enable credential brokerage through an already enabled network proxy, retaining custom credential providers and managed configuration precedence. - Prevent project configuration from overriding credential masking and apply existing credential-broker protections to project shell settings when masking is enabled. - Keep brokerage inactive when the proxy is disabled. Warn at startup and after permission-profile changes when masking is inactive because sandboxing or the proxy is disabled, or provider environment keys conflict. ## Testing Add coverage for configuration precedence, project protections in both configuration loaders, permission-profile transitions, inactive-masking warnings, and shell snapshot masking of built-in and custom credentials. GitOrigin-RevId: 4bcb293356e8c1524bdaa4f1b95cbc1e935a5271
This commit is contained in:
@@ -209,6 +209,8 @@ pub enum Feature {
|
||||
UnboundedConnectionRetries,
|
||||
/// Start the managed network proxy for sandboxed sessions.
|
||||
NetworkProxy,
|
||||
/// Mask credentials and inject them through an already enabled network proxy.
|
||||
CredentialMasking,
|
||||
/// Enable managed worktree creation and repository-aware sessions.
|
||||
Worktrees,
|
||||
/// Respect host system proxy settings for Codex-owned network clients.
|
||||
@@ -1414,6 +1416,12 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
},
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::CredentialMasking,
|
||||
key: "credential_masking",
|
||||
stage: Stage::UnderDevelopment,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::Worktrees,
|
||||
key: "worktrees",
|
||||
|
||||
Reference in New Issue
Block a user