Skip to content

refactor(provider): one static-auth path in the provider crate - #416

Merged
lg2m merged 1 commit into
refactor/eng-1066-auth-dead-codefrom
refactor/eng-1066-static-auth
Oct 22, 2026
Merged

lg2m merged 1 commit into
refactor/eng-1066-auth-dead-codefrom
refactor/eng-1066-static-auth

Conversation

@lg2m

@lg2m lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

One static-auth path for every HTTP adapter (PR 2/5, ENG-1066) — stacked on PR 1. Replaces four per-protocol auth enums and ResponsesConstructionAuth with one StaticAuth and one build_static_headers. Headers a request-time credential sets are now protected from static configuration on every protocol (previously Codex only); protected-header errors share one wording; a whitespace-only static header on Responses is no longer redacted. No wire change for any built-in provider. Verified: qq-provider 269/269; fmt, lint, clippy clean; the 108 native-command failures in this environment are the same set as PR 1 and main.

…1066)

Replace the four per-protocol auth enums (ResponsesAuth, ChatCompletionsAuth, AnthropicAuth, GoogleAuth) and ResponsesConstructionAuth with one StaticAuth and one build_static_headers. resolve_http_auth maps an API key to the protocol's header and returns one { auth, authorizer } pair.

Behavior changes:
- Headers a request-time authorizer sets are protected from static
  configuration for every protocol, not only Codex.
- Protected auth-header errors use one wording.
- A whitespace-only static header value on Responses is no longer
  registered for redaction, matching the other adapters.
- Merging per-attempt redactions reuses the credential's list.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T04:45:13.952864Z 209cf58 Manual request
🔒 Security Review ✅ Completed 2026-10-22T04:46:44.644048Z 209cf58 Manual request
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m
lg2m changed the base branch from main to refactor/eng-1066-auth-dead-code October 22, 2026 04:42
@lg2m
lg2m added this pull request to stack #417 October 22, 2026 04:43
@lg2m

lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@lg2m

lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 209cf5841d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 209cf5841d

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@lg2m
lg2m merged commit 1bfe53f into main Oct 22, 2026
9 checks passed
@lg2m
lg2m deleted the refactor/eng-1066-static-auth branch October 22, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant