-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add secure local development detection for flow compilation #473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 11-30-use_supabase_service_role_key_for_controlplane_auth_zero-config_
Are you sure you want to change the base?
Conversation
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
View your CI Pipeline Execution ↗ for commit 170589a
☁️ Nx Cloud last updated this comment at |
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-473.pgflow.pages.dev 📝 Details:
_Last updated: _ |

Added Local Development Detection for Flow Compilation
This PR adds a robust mechanism for detecting local development environments to ensure safe flow compilation behavior. Key changes:
localDetection.tsmodule with constants for known local Supabase keys/ensure-compiledendpoint to automatically detect environment and set compilation modeThe detection is cryptographically safe - production Supabase instances cannot accidentally match the known local keys. This approach follows a "default-to-production" safety model where any environment not positively identified as local will be treated as production.