Skip to content

fix(sync): auth to GATEWAY - #1861

Merged
soheimam merged 1 commit into
masterfrom
fix/gateway-auth-swap
Aug 27, 2026
Merged

fix(sync): auth to GATEWAY#1861
soheimam merged 1 commit into
masterfrom
fix/gateway-auth-swap

Conversation

@soheimam

Copy link
Copy Markdown
Contributor

-- Swap auth method

The base-std docs sync started failing with a 403 Cloudflare "Attention
Required" block page on the first gateway call (both the Haiku manifest
pre-pass and the per-page Sonnet calls), while base/base's Claude Code
Review workflow — same BaseRunnerGroup runners, same
llm-gateway.coinbase-corp.com, same LLM_GATEWAY_API_KEY — kept working.

The difference was the auth header. The SDK's `authToken` option sends
`Authorization: Bearer <token>`, whereas base/base reaches the gateway via
claude-code-action's `anthropic_api_key`, which sends the standard Anthropic
`x-api-key` header. The gateway's Cloudflare edge treats x-api-key traffic as
trusted and bot-challenges requests without it, producing the 403 before the
request reaches the app (hence the instant failure, not a 401/JSON).

Switch the client from `authToken` to `apiKey` so it sends `x-api-key`,
matching the working workflow. Comment-only doc fixes to match.

Co-Authored-By: Claude <noreply@anthropic.com>
@cb-heimdall

cb-heimdall commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@soheimam soheimam changed the title fix(sync): auth to LLM Gateway via x-api-key instead of Bearer fix(sync): auth to GATEWAY Aug 27, 2026
@cb-heimdall

Copy link
Copy Markdown
Collaborator

Review Error for ericbrown99 @ 2026-08-27 14:40:28 UTC
User failed mfa authentication, see go/mfa-help

@soheimam
soheimam merged commit c76dd9e into master Aug 27, 2026
7 checks passed
@soheimam
soheimam deleted the fix/gateway-auth-swap branch August 27, 2026 14:44
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.

3 participants