Repository navigation
Add SPIFFE JWT-SVID support for workload identity authentication - #61207
Merged
copyberry[bot] merged 1 commit intoNov 12, 2026
Conversation
) ## What changed Allow Unix workloads to acquire assertions directly from the SPIFFE Workload API for the existing OpenAI token exchange. Select this source with `OPENAI_IDENTITY_TOKEN_SOURCE=spiffe`, alongside `OPENAI_FEDERATION_RULE_ID`, `SPIFFE_ENDPOINT_SOCKET`, and `OPENAI_SPIFFE_AUDIENCE`. Optionally select an identity with `OPENAI_SPIFFE_ID`. Fetch a JWT-SVID over a Unix socket for each exchange, reconnecting on refresh and bounding acquisition to ten seconds. Reject ambiguous responses and mismatched subject or audience claims, and retain only the gRPC status code from agent errors. Signature and lifetime verification remain the token endpoint's responsibility. Keep file acquisition as the default, reject conflicting source settings, and exclude the new OpenAI-specific settings from model-launched environments. Document configuration and deployment constraints. ## Testing Add local-socket tests for token exchange and refresh after agent restart, concurrent refreshes, JWT-SVIDs without key IDs, identity selection, error redaction, and timeouts. Add configuration tests for explicit source selection, invalid or conflicting settings, unsupported platforms, and session consistency. GitOrigin-RevId: 9d88438ff41cd8f0b7356c512ec451455ed7c399
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/9d88438ff41cd8f0b7356c512ec451455ed7c399
branch
from
November 12, 2026 23:54
5e9e72c to
6242064
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/9d88438ff41cd8f0b7356c512ec451455ed7c399
branch
November 12, 2026 23:54
tferraro777
temporarily deployed
to
issue-triage
November 13, 2026 00:05 — with
GitHub Actions
Inactive
tferraro777
temporarily deployed
to
issue-triage
November 13, 2026 00:05 — with
GitHub Actions
Inactive
tferraro777
temporarily deployed
to
issue-triage
November 13, 2026 00:05 — with
GitHub Actions
Inactive
tferraro777
temporarily deployed
to
issue-triage
November 13, 2026 00:06 — with
GitHub Actions
Inactive
es-agent-dev
temporarily deployed
to
issue-triage
November 13, 2026 00:17 — with
GitHub Actions
Inactive
es-agent-dev
temporarily deployed
to
issue-triage
November 13, 2026 00:17 — with
GitHub Actions
Inactive
es-agent-dev
temporarily deployed
to
issue-triage
November 13, 2026 00:17 — with
GitHub Actions
Inactive
es-agent-dev
temporarily deployed
to
issue-triage
November 13, 2026 00:18 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Add SPIFFE JWT-SVID support for workload identity authentication
What changed
Allow Unix workloads to acquire assertions directly from the SPIFFE Workload API for the existing OpenAI token exchange. Select this source with
OPENAI_IDENTITY_TOKEN_SOURCE=spiffe, alongsideOPENAI_FEDERATION_RULE_ID,SPIFFE_ENDPOINT_SOCKET, andOPENAI_SPIFFE_AUDIENCE. Optionally select an identity withOPENAI_SPIFFE_ID.Fetch a JWT-SVID over a Unix socket for each exchange, reconnecting on refresh and bounding acquisition to ten seconds. Reject ambiguous responses and mismatched subject or audience claims, and retain only the gRPC status code from agent errors. Signature and lifetime verification remain the token endpoint's responsibility.
Keep file acquisition as the default, reject conflicting source settings, and exclude the new OpenAI-specific settings from model-launched environments. Document configuration and deployment constraints.
Testing
Add local-socket tests for token exchange and refresh after agent restart, concurrent refreshes, JWT-SVIDs without key IDs, identity selection, error redaction, and timeouts. Add configuration tests for explicit source selection, invalid or conflicting settings, unsupported platforms, and session consistency.