codex/codex-rs/shell-command/src
Winston Howes 38cbebaf3f Support configured credential providers across shell snapshots (#44072)
## Why

Credential brokerage must retain trusted destination hints even when shell environment policy hides them from child processes. Snapshot replay also needs to preserve credential aliases when tokens are short or captured dummy values change.

## What changed

- Add `features.network_proxy.credentials` and preserve provider settings when toggling the proxy. Prevent project configuration from overriding providers or their credential and destination environment variables.
- Use provider metadata throughout snapshot capture and replay, and pass hidden destination context to the broker without exposing it in the child environment.
- Rewrite aliases containing short credentials or previously captured dummies, respecting environment filters and explicit overrides.
- Preserve case-distinct `shell_environment_policy.set` keys so Windows credential ambiguity checks survive configuration merging and permission profile changes.
- Restore independent MITM settings when credential brokerage is disabled.

## Testing

Add regression coverage for custom providers, hidden destination hints, Bash and Zsh alias replay, configuration edits and merging, Windows ambiguity handling, and credential protection during approved execution.

GitOrigin-RevId: b2bd935d2d8555be56baf8feb1a8e5b3a0c666bc
History 2026-09-09 06:04:59 +00:00
..
command_safety Apply remote platform semantics to exec safety checks (#42113) 2026-09-01 18:24:56 +00:00
bash.rs Retire the untrusted approval policy (#39630) 2026-08-20 07:03:02 +00:00
lib.rs Retire the untrusted approval policy (#39630) 2026-08-20 07:03:02 +00:00
parse_command.rs Fail closed on unsafe config and sed parsing (#39700) 2026-08-20 11:52:46 +00:00
powershell.rs Retire the untrusted approval policy (#39630) 2026-08-20 07:03:02 +00:00
shell_detect.rs Use compatible PowerShell for elevated Windows sandbox commands (#41227) 2026-08-27 23:58:09 +00:00
shell_snapshot.rs Harden credential handling in shell snapshots and replay (#44040) 2026-09-09 04:00:10 +00:00
shell_snapshot_capture.rs Harden credential handling in shell snapshots and replay (#44040) 2026-09-09 04:00:10 +00:00
shell_snapshot_credentials.rs Support configured credential providers across shell snapshots (#44072) 2026-09-09 06:04:59 +00:00
shell_snapshot_exports.rs Preserve complete shell snapshot exports through filtering and replay (#43907) 2026-09-08 20:41:01 +00:00
shell_snapshot_literals.rs Harden credential handling in shell snapshots and replay (#44040) 2026-09-09 04:00:10 +00:00
shell_snapshot_render.rs Harden credential handling in shell snapshots and replay (#44040) 2026-09-09 04:00:10 +00:00
shell_snapshot_tests.rs Support configured credential providers across shell snapshots (#44072) 2026-09-09 06:04:59 +00:00