Skip to content

Conversation

@eswan18
Copy link
Owner

@eswan18 eswan18 commented Feb 8, 2026

Summary

  • OAuth login was failing with "invalid redirect URI" because request.nextUrl.origin resolves to 0.0.0.0:3000 (the pod's internal bind address) when running behind Cloudflare Tunnel / Tailscale ingress in GKE
  • Replaced with an explicit APP_BASE_URL environment variable, matching the pattern used by fitness-api
  • Added APP_BASE_URL to both staging and prod configmaps

Test plan

  • Merge and wait for ArgoCD to deploy to staging
  • Verify OAuth login works on forecasting-staging.tailc06f30.ts.net
  • Promote to prod via deploy.py and verify login on forecasting.ethanswan.com

🤖 Generated with Claude Code

The OAuth login and callback routes derived the redirect URI from
request.nextUrl.origin, which returns the pod's internal bind address
(0.0.0.0:3000) when running behind Cloudflare Tunnel or Tailscale
ingress in GKE. Use an explicit APP_BASE_URL env var instead, matching
the pattern used by fitness-api.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
forecasting Error Error Feb 8, 2026 8:01pm

@eswan18 eswan18 merged commit 1748a12 into main Feb 8, 2026
1 of 3 checks passed
@eswan18 eswan18 deleted the fix/oauth-redirect-uri branch February 8, 2026 20:46
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