Skip to content

feat: support Supabase CLI v2+ opaque API keys in local environment detection#578

Merged
jumski merged 1 commit intomainfrom
01-07-fix_local_detection
Jan 7, 2026
Merged

feat: support Supabase CLI v2+ opaque API keys in local environment detection#578
jumski merged 1 commit intomainfrom
01-07-fix_local_detection

Conversation

@jumski
Copy link
Copy Markdown
Contributor

@jumski jumski commented Jan 7, 2026

Add support for Supabase CLI v2+ opaque API keys in local environment detection

This PR adds support for detecting local Supabase environments that use the new opaque API keys format introduced in Supabase CLI v2+. The edge worker can now recognize both:

  • The original HS256 JWT keys (from Supabase CLI v1)
  • The new opaque keys format (from Supabase CLI v2+)

The implementation:

  • Adds constants for the new publishable and secret keys
  • Updates the isLocalSupabaseEnv function to check for both key formats
  • Adds comprehensive tests for all key combinations

This ensures compatibility with both older and newer Supabase CLI versions when running in local development environments.

…nvironment detection

- Introduced constants for new opaque publishable and secret keys
- Updated isLocalSupabaseEnv function to recognize both old JWT and new opaque keys
- Enhanced tests to verify detection with various key combinations and mixing scenarios
- Updated changelog with relevant documentation note for support of opaque keys
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 7, 2026

🦋 Changeset detected

Latest commit: affd853

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@pgflow/edge-worker Patch
@pgflow/core Patch
@pgflow/dsl Patch
@pgflow/client Patch
pgflow Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor Author

jumski commented Jan 7, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Jan 7, 2026

View your CI Pipeline Execution ↗ for commit affd853

Command Status Duration Result
nx run edge-worker:test:integration ✅ Succeeded 3m 51s View ↗
nx run edge-worker:e2e ✅ Succeeded 49s View ↗
nx affected -t verify-exports --base=origin/mai... ✅ Succeeded <1s View ↗
nx affected -t build --configuration=production... ✅ Succeeded <1s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 19s View ↗

☁️ Nx Cloud last updated this comment at 2026-01-07 10:57:21 UTC

Copy link
Copy Markdown
Contributor Author

jumski commented Jan 7, 2026

Merge activity

  • Jan 7, 11:14 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jan 7, 11:14 AM UTC: @jumski merged this pull request with Graphite.

@jumski jumski merged commit e0c6e0e into main Jan 7, 2026
13 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 7, 2026

🚀 Production Deployment: Website

Successfully deployed to production!

🔗 Production URL: https://pgflow.dev

📝 Details:

  • Commit: e0c6e0e37774261fd40e5d893a711154e563ceff
  • View Logs

Deployed at: 2026-01-07T12:14:17+01:00

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