Repository navigation
Integrate workload identity with Codex authentication - #38188
Merged
copyberry[bot] merged 1 commit intoAug 12, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## What changed - Select workload identity authentication from `OPENAI_FEDERATION_RULE_ID` and `OPENAI_IDENTITY_TOKEN_FILE`, while preserving explicit API key and access token precedence. - Adapt workload identity exchanges to the shared authentication manager and reuse a compatible process-scoped session for token resolution and refresh. - Reject incomplete, conflicting, or unsupported configurations and exchanged tokens that change the authenticated subject. - Classify exchange failures for authentication retry handling and invalidate rejected cached tokens without discarding a newer concurrent exchange. ## Testing - Cover configuration selection and validation, session reuse and conflicts, identity-preserving refreshes, concurrent refreshes, and retry classification. GitOrigin-RevId: 62afb514b4e0a59effb08f464ac929633462a71b
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/62afb514b4e0a59effb08f464ac929633462a71b
branch
from
August 12, 2026 13:29
0e62f67 to
96c8be2
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/62afb514b4e0a59effb08f464ac929633462a71b
branch
August 12, 2026 13:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integrate workload identity with Codex authentication
What changed
OPENAI_FEDERATION_RULE_IDandOPENAI_IDENTITY_TOKEN_FILE, while preserving explicit API key and accesstoken precedence.
reuse a compatible process-scoped session for token resolution and refresh.
tokens that change the authenticated subject.
rejected cached tokens without discarding a newer concurrent exchange.
Testing
identity-preserving refreshes, concurrent refreshes, and retry classification.