Skip to content

Forward client bearer keys upstream - #46

Open
vfeitoza wants to merge 1 commit into
CommonstackAI:mainfrom
NucleoDeSistemas:feat/auth_token
Open

Forward client bearer keys upstream#46
vfeitoza wants to merge 1 commit into
CommonstackAI:mainfrom
NucleoDeSistemas:feat/auth_token

Conversation

@vfeitoza

Copy link
Copy Markdown

Summary

  • Prioritizes the Authorization: Bearer key sent by the client when forwarding requests upstream.
  • Keeps the API key configured in connections as a fallback only when the request does not include a Bearer token.
  • Preserves the precedence of provider-specific BYOK keys.
  • Adds coverage for Claude CLI requests through /v1/messages and for the connection-key fallback.

Validation

  • uv run pytest — 721 passed, 1 skipped
  • uv run ruff check uncommon_route/proxy.py tests/test_proxy.py

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