Skip to content

Add runtime assertion authentication modes and an auth provider - #55636

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9e93d25762600f0ff592c5248fe4c8c2c8182c8d
Oct 20, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9e93d25762600f0ff592c5248fe4c8c2c8182c8d

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Add runtime assertion authentication modes and an auth provider

What changed

Add RuntimeAuthProvider to resolve request authentication through the runtime auth manager. Support dual_header mode, which sends a bearer credential alongside x-openai-agent-assertion, and assertion_only mode, which uses Authorization: AgentAssertion ….

Replace stale authentication headers and sign a fresh assertion for each request attempt. Propagate registration failures without falling back to credential-only authentication, preserving policy errors and classifying transport failures, rate limits, and server errors as transient.

Add the disabled-by-default features.runtime_agent_instances configuration with independent enabled and mode settings, schema support, and structured override merging. Selecting a mode alone does not enable the feature.

Testing

Add coverage for both modes with API key and ChatGPT credentials, stale header replacement, fresh assertions, credential refresh without runtime replacement, registration failures, and configuration parsing and merging.

## What changed

Add `RuntimeAuthProvider` to resolve request authentication through the runtime auth manager. Support `dual_header` mode, which sends a bearer credential alongside `x-openai-agent-assertion`, and `assertion_only` mode, which uses `Authorization: AgentAssertion …`.

Replace stale authentication headers and sign a fresh assertion for each request attempt. Propagate registration failures without falling back to credential-only authentication, preserving policy errors and classifying transport failures, rate limits, and server errors as transient.

Add the disabled-by-default `features.runtime_agent_instances` configuration with independent `enabled` and `mode` settings, schema support, and structured override merging. Selecting a mode alone does not enable the feature.

## Testing

Add coverage for both modes with API key and ChatGPT credentials, stale header replacement, fresh assertions, credential refresh without runtime replacement, registration failures, and configuration parsing and merging.

GitOrigin-RevId: 9e93d25762600f0ff592c5248fe4c8c2c8182c8d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/9e93d25762600f0ff592c5248fe4c8c2c8182c8d branch from e4b3a5d to cb00a67 Compare October 20, 2026 17:29
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-20T17:29:54.255710Z e4b3a5d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit cb00a67 into main Oct 20, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/9e93d25762600f0ff592c5248fe4c8c2c8182c8d branch October 20, 2026 17:30
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 20, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — cb00a675 Deployed Oct 20, 2026 by studioflows via Translate non-English issue #21484
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.

6 participants