Skip to content

[codex] Route Fed ChatGPT auth through Fed edge#17151

Open
jackz-oai wants to merge 2 commits intomainfrom
jackz/fed-chatgpt-routing
Open

[codex] Route Fed ChatGPT auth through Fed edge#17151
jackz-oai wants to merge 2 commits intomainfrom
jackz/fed-chatgpt-routing

Conversation

@jackz-oai
Copy link
Copy Markdown

@jackz-oai jackz-oai commented Apr 8, 2026

Summary

  • parse chatgpt_account_is_fedramp from signed ChatGPT auth metadata
  • add _account_is_fedramp=true to ChatGPT backend-api requests only for FedRAMP ChatGPT-auth accounts

Testing

  • cargo fmt --check
  • cargo test -p codex-api auth_headers_ --lib
  • cargo test -p codex-login id_token_info_ --lib
  • cargo check -p codex-backend-client

Co-authored-by: Codex noreply@openai.com

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@jackz-oai jackz-oai changed the title [codex] Route Fed ChatGPT auth through Fed edge [codex] Carry ChatGPT account routing cookies Apr 8, 2026
@jackz-oai jackz-oai changed the title [codex] Carry ChatGPT account routing cookies [codex] Route Fed ChatGPT auth through Fed edge Apr 10, 2026
jackz-oai and others added 2 commits April 10, 2026 12:31
Parse the signed FedRAMP workspace claim from ChatGPT tokens and attach the existing Fed routing cookie to ChatGPT-auth backend requests when the selected account is FedRAMP. API-key auth is unchanged.

Testing:
- cargo test -p codex-api auth_headers_ --lib
- cargo test -p codex-login id_token_info_ --lib
- cargo check -p codex-backend-client

Co-authored-by: Codex <noreply@openai.com>

# Conflicts:
#	codex-rs/login/src/auth/auth_tests.rs
#	codex-rs/login/src/token_data.rs
Carry the FedRAMP ChatGPT account flag into the new OpenAI file upload auth path introduced on main, and attach the existing Fed routing cookie for authorized file create/finalize calls.

Co-authored-by: Codex <noreply@openai.com>
@jackz-oai jackz-oai force-pushed the jackz/fed-chatgpt-routing branch from fcf80af to 4d81b2e Compare April 10, 2026 19:37
@jackz-oai jackz-oai marked this pull request as ready for review April 10, 2026 19:50
@etraut-openai etraut-openai added the oai PRs contributed by OpenAI employees label Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants