mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
## What changed - Validate externally supplied header credentials against configured ChatGPT workspace restrictions using their `chatgpt-account-id` header. - Reject header credentials with a missing or disallowed account ID, including credentials returned during refresh, without replacing the previously cached authentication. - Document that identity headers must be bound to validated credentials because Codex uses them for managed authentication policy. ## Testing - Add coverage for allowed, disallowed, and missing account IDs. - Add coverage for rejecting a refresh that changes to a disallowed workspace. GitOrigin-RevId: 3e3db2607cd8f9f1b8000472342e42e4b1cf00b2