Skip to content

fix: extract key when BYOK header is given with delegated auth - #25688

Merged
dannykopping merged 2 commits into
mainfrom
dk/fix-key-extraction
May 26, 2026
Merged

dannykopping merged 2 commits into
mainfrom
dk/fix-key-extraction

Conversation

@dannykopping

Copy link
Copy Markdown
Collaborator

Previously we were only extracting the API when not delegating auth; this is incorrect.

We need to extract the key always when BYOK is intended.

dannykopping and others added 2 commits May 26, 2026 18:39
Signed-off-by: Danny Kopping <danny@coder.com>
Adjust delegated auth path to only require a header key when not
delegated, and lock in via tests that SessionKey is propagated when a
key is present (BYOK) and empty when it isn't (delegated centralized).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dannykopping
dannykopping merged commit 5d8ca2e into main May 26, 2026
28 checks passed
@dannykopping
dannykopping deleted the dk/fix-key-extraction branch May 26, 2026 17:46
@github-actions github-actions Bot locked and limited conversation to collaborators May 26, 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.

3 participants