Skip to content

refactor(aibridge): remove InjectAuthHeader in favor of KeyFailoverConfig#25618

Open
ssncferreira wants to merge 1 commit into
ssncf/aibridge-keypool-errorfrom
ssncf/aibridge-remove-inject-auth-header
Open

refactor(aibridge): remove InjectAuthHeader in favor of KeyFailoverConfig#25618
ssncferreira wants to merge 1 commit into
ssncf/aibridge-keypool-errorfrom
ssncf/aibridge-remove-inject-auth-header

Conversation

@ssncferreira
Copy link
Copy Markdown
Contributor

@ssncferreira ssncferreira commented May 22, 2026

Description

Provider.InjectAuthHeader is no longer needed. With the addition of KeyFailoverConfig in #24920, authentication is now applied per-attempt by KeyFailoverTransport on passthrough routes. This PR removes the dead method from the Provider interface, all implementations (Anthropic, OpenAI, Copilot), and the test mock.

The orphaned InjectAuthHeader unit tests are replaced with Test{Anthropic,OpenAI,Copilot}_KeyFailoverConfig. TestPassthrough_KeyFailover is also extended to cover Copilot in the BYOK scenario.

Related to: https://linear.app/codercom/issue/AIGOV-334/aibridge-follow-ups-from-key-failover-prs

Note

Initially generated by Claude Opus 4.7, modified and reviewed by @ssncferreira

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

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