Skip to content

Prevent Noise auth tokens from reaching child processes - #38941

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/759b224b6a7fb4f56f7b1a6d94ffbb0b188c658f
Aug 17, 2026
Merged

Prevent Noise auth tokens from reaching child processes#38941
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/759b224b6a7fb4f56f7b1a6d94ffbb0b188c658f

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 17, 2026

Copy link
Copy Markdown

Prevent Noise auth tokens from reaching child processes

Why

CODEX_EXEC_SERVER_NOISE_AUTH_TOKEN is an execution-server credential and
must not be exposed to model-reachable commands or command hooks, including
when shell environment policy explicitly sets a case variant of the name.

What changed

  • Add CODEX_EXEC_SERVER_NOISE_AUTH_TOKEN to the shared list of
    non-inheritable environment variables.
  • Keep the environment variable constant in codex-protocol so the exec
    server and environment scrubber use the same definition.
  • Verify case-insensitive removal after policy overrides for shell commands
    and command hooks.

## Why

`CODEX_EXEC_SERVER_NOISE_AUTH_TOKEN` is an execution-server credential and
must not be exposed to model-reachable commands or command hooks, including
when shell environment policy explicitly sets a case variant of the name.

## What changed

- Add `CODEX_EXEC_SERVER_NOISE_AUTH_TOKEN` to the shared list of
  non-inheritable environment variables.
- Keep the environment variable constant in `codex-protocol` so the exec
  server and environment scrubber use the same definition.
- Verify case-insensitive removal after policy overrides for shell commands
  and command hooks.

GitOrigin-RevId: 759b224b6a7fb4f56f7b1a6d94ffbb0b188c658f
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/759b224b6a7fb4f56f7b1a6d94ffbb0b188c658f branch from 7078921 to 89e2977 Compare August 17, 2026 04:18
@copyberry
copyberry Bot merged commit 89e2977 into main Aug 17, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/759b224b6a7fb4f56f7b1a6d94ffbb0b188c658f branch August 17, 2026 04:20
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant