Skip to content

Omit sensitive process inputs from spawn trace logs - #60034

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c317e7dcc6fd8b4eafb6fcfe98dc8634807c813d
Nov 7, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c317e7dcc6fd8b4eafb6fcfe98dc8634807c813d

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Omit sensitive process inputs from spawn trace logs

Why

Command arguments and environment variables can contain credentials. Logging them when spawning a child process can expose those credentials in trace output.

What changed

Replace argument, arg0, and environment contents in spawn_child_async trace logs with argument and environment counts and a flag indicating whether arg0 is overridden. Keep the program, working directory, network sandbox policy, and stdio policy in the trace.

Testing

Add a regression test that captures trace output and verifies that argument, arg0, and environment canaries are omitted while the program path remains visible.

## Why

Command arguments and environment variables can contain credentials. Logging them when spawning a child process can expose those credentials in trace output.

## What changed

Replace argument, `arg0`, and environment contents in `spawn_child_async` trace logs with argument and environment counts and a flag indicating whether `arg0` is overridden. Keep the program, working directory, network sandbox policy, and stdio policy in the trace.

## Testing

Add a regression test that captures trace output and verifies that argument, `arg0`, and environment canaries are omitted while the program path remains visible.

GitOrigin-RevId: c317e7dcc6fd8b4eafb6fcfe98dc8634807c813d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/c317e7dcc6fd8b4eafb6fcfe98dc8634807c813d branch from 0d9609f to 738ef9f Compare November 7, 2026 02:01
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-07T02:01:35.074101Z 0d9609f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 738ef9f into main Nov 7, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/c317e7dcc6fd8b4eafb6fcfe98dc8634807c813d branch November 7, 2026 02:01
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 7, 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