-
Notifications
You must be signed in to change notification settings - Fork 17
fix: api-proxy auth chain — trim keys, align placeholder format, add diagnostics #1528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1447,7 +1447,8 @@ export function generateDockerCompose( | |||||
|
|
||||||
| // Set placeholder token for Claude Code CLI compatibility | ||||||
| // Real authentication happens via ANTHROPIC_BASE_URL pointing to api-proxy | ||||||
| environment.ANTHROPIC_AUTH_TOKEN = 'placeholder-token-for-credential-isolation'; | ||||||
| // Use sk-ant- prefix so Claude Code's key-format validation passes | ||||||
| environment.ANTHROPIC_AUTH_TOKEN = 'sk-ant-placeholder-key-for-credential-isolation'; | ||||||
|
||||||
| environment.ANTHROPIC_AUTH_TOKEN = 'sk-ant-placeholder-key-for-credential-isolation'; | |
| environment.ANTHROPIC_AUTH_TOKEN = 'sk-ant-placeholder-token-for-credential-isolation'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
injectHeadersuses 'Authorization' (capital A) for OpenAI/Copilot, but this diagnostic checks onlyinjectHeaders['authorization'](lowercase). As a result, auth_inject logs won’t trigger for those providers. Consider normalizing header keys (e.g., lowercasing injectHeaders keys) or checking both cases so the diagnostic works consistently.This issue also appears in the following locations of the same file: