Repository navigation
refactor(provider): one static-auth path in the provider crate - #416
Conversation
…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.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
|
@codex security review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
One static-auth path for every HTTP adapter (PR 2/5, ENG-1066) — stacked on PR 1. Replaces four per-protocol auth enums and
ResponsesConstructionAuthwith oneStaticAuthand onebuild_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-provider269/269; fmt, lint, clippy clean; the 108 native-command failures in this environment are the same set as PR 1 and main.