Skip to content

PROJ-427: temporary CF Access diagnostic logging#131

Merged
TAJD merged 1 commit into
mainfrom
debug-cf-access-401
Jul 19, 2026
Merged

PROJ-427: temporary CF Access diagnostic logging#131
TAJD merged 1 commit into
mainfrom
debug-cf-access-401

Conversation

@TAJD

@TAJD TAJD commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

Temporary diagnostic-only change: logs the exact reason validateCfAccessJwt rejects a token (decode error, alg/exp/aud/iss mismatch, or signature-invalid + which key IDs were tried). The user is still seeing 401s in production after the PROJ-427 reload fix, even mid-session with a single correctly-scoped CF_Authorization cookie — need real evidence from a live repro to find the actual root cause rather than guessing further.

To be reverted once we've captured a repro via wrangler tail.

PROJ-427

Test plan

  • pnpm --filter api test — 824 passed
  • pnpm turbo type-check --filter=@projektor/api
  • biome check clean

🤖 Generated with Claude Code

https://claude.ai/code/session_018DjSCvRampBsoXiqUwyQGx

Live production 401s persist after PROJ-427's reload fix, even for
users with a single, correctly-scoped CF_Authorization cookie mid-
session. Log the exact failure reason (decode error, alg/exp/aud/iss
mismatch, or signature-invalid-with-which-keys) at each early-return
in validateCfAccessJwt so the next repro tells us which check is
actually failing, instead of guessing further.

Temporary — to be reverted once the root cause is confirmed.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018DjSCvRampBsoXiqUwyQGx
@TAJD
TAJD merged commit 0ff7b72 into main Jul 19, 2026
1 check passed
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