Skip to content

release-audit: Codex child-env allowlist has no Windows branch and drops proxy/API-key credentials on every platform (fails-to-preserve, non-blocking, reasoned not observed) #751

Closed

Description

@fdaviddpt

Found by the release-auditor during the v0.33.0..HEAD gate-3 audit (round 1, dispatch token 9780db9b5621b90d), ahead of cutting v0.34.0. Non-blocking (fails-to-preserve). This finding is reasoned, not observed -- no real codex exec was run against it.

Where

pipeline/haiku.py:1102, _CODEX_CHILD_ENV_ALLOW (#724).

The defect

The allow-list is only PATH, HOME, LANG, LC_ALL, CODEX_HOME, TMPDIR, TEMP, TMP. It has no Windows branch, so it also drops SYSTEMROOT, USERPROFILE, APPDATA and PATHEXT on Windows, and on every platform drops CODEX_API_KEY and the proxy/CA variables (HTTPS_PROXY, SSL_CERT_FILE and similar).

Reasoned consequence

On Windows, or for anyone who authenticates Codex through an env var or sits behind a proxy, every Codex-route summary would fail. The failure is loud in hook-errors.log, and no memory is captured for that session.

CI coverage

Not covered. tests.yml runs ubuntu/macos/windows x Python 3.9-3.12, but no test spawns a real codex process.

changelog.d/724.fixed.md does not mention this behaviour.

Suggested fix shape

One real codex exec from _call_codex on windows-latest, and one with CODEX_API_KEY as the only credential, to confirm and then fix the allow-list.

Filed by the release loop from the auditor's own report; not independently re-verified beyond what's quoted above (reasoned, not observed).

[AI-generated]

Activity

  1. added
    priority:medium
    filed-by-loop
    lane-other
    cohort-13
    lane-capture
    and removed
    lane-other
    on Sep 25, 2026
  2. self-assigned this
    on Sep 26, 2026
  3. added 2 commits that reference this issue on Sep 26, 2026
  4. removed their assignment
    on Sep 26, 2026
  5. added a commit that references this issue on Sep 26, 2026
  6. added 5 commits that reference this issue on Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cohort-13filed-by-looplane-capturepriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions