Skip to content

Integrate workload identity with Codex authentication - #38188

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/62afb514b4e0a59effb08f464ac929633462a71b
Aug 12, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Integrate workload identity with Codex authentication

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.

## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/62afb514b4e0a59effb08f464ac929633462a71b branch from 0e62f67 to 96c8be2 Compare August 12, 2026 13:29
@copyberry
copyberry Bot merged commit 96c8be2 into main Aug 12, 2026
25 of 30 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/62afb514b4e0a59effb08f464ac929633462a71b branch August 12, 2026 13:30
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 12, 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