Skip to content

fix(auth): derive canonical Supabase JWT issuer - #28

Merged
birdmanmandbir merged 1 commit into
mainfrom
fix/auth-jwt-issuer
Sep 6, 2026
Merged

fix(auth): derive canonical Supabase JWT issuer#28
birdmanmandbir merged 1 commit into
mainfrom
fix/auth-jwt-issuer

Conversation

@orga-agent

@orga-agent orga-agent Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • derive the GoTrue JWT issuer as the canonical Supabase Auth base ending in /auth/v1
  • share the issuer derivation with the JWKS endpoint builder so signing and verification URLs cannot drift
  • add a deployment-level regression test for root-domain externalURL values

Root cause

The operator explicitly rendered GOTRUE_JWT_ISSUER as the normalized project externalURL, while consumers derive the standard Supabase issuer as <externalURL>/auth/v1. Fresh ES256 sessions were therefore rejected by Gateway with token has invalid issuer.

Verification

  • go test ./internal/resources/deployments ./internal/resources/common -count=1
  • make test test-tanka test-delivery
  • make lint

Deployment remains a separate manual step after merge.

@birdmanmandbir
birdmanmandbir merged commit 3d3aa3b into main Sep 6, 2026
2 checks 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