Skip to content

refactor(aibridge): remove InjectAuthHeader from Provider interface#25562

Closed
ssncferreira wants to merge 1 commit into
mainfrom
ssncf/remove-inject-auth-header
Closed

refactor(aibridge): remove InjectAuthHeader from Provider interface#25562
ssncferreira wants to merge 1 commit into
mainfrom
ssncf/remove-inject-auth-header

Conversation

@ssncferreira
Copy link
Copy Markdown
Contributor

@ssncferreira ssncferreira commented May 21, 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), the test mock, and its orphaned unit tests.

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

@ssncferreira ssncferreira force-pushed the ssncf/remove-inject-auth-header branch from 74fa3ca to 91d045f Compare May 21, 2026 12:14
@ssncferreira ssncferreira force-pushed the ssncf/remove-inject-auth-header branch from 91d045f to f942572 Compare May 21, 2026 12:15
@ssncferreira
Copy link
Copy Markdown
Contributor Author

Closing in favor of #25618

@ssncferreira ssncferreira deleted the ssncf/remove-inject-auth-header branch May 22, 2026 14:06
@github-actions github-actions Bot locked and limited conversation to collaborators May 22, 2026
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.

1 participant