-
Notifications
You must be signed in to change notification settings - Fork 15
refactor: use Supabase service role key for worker authentication #472
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-include_options_in_flowshape_for_proper_flow_creation
Are you sure you want to change the base?
Conversation
|
|
View your CI Pipeline Execution ↗ for commit 2c6cde0
☁️ Nx Cloud last updated this comment at |
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-472.pgflow.pages.dev 📝 Details:
_Last updated: _ |

Use Supabase Service Role Key for Worker Authentication
This PR simplifies the authentication mechanism for workers by leveraging the
SUPABASE_SERVICE_ROLE_KEYthat's automatically available in Edge Functions, eliminating the need for a separatePGFLOW_SECRET_KEY.Changes:
secretKeyoption fromControlPlaneOptionsinterfaceverifyAuthfunction to check againstSUPABASE_SERVICE_ROLE_KEYenvironment variableThis change reduces configuration overhead as both Control Plane and Worker Edge Functions automatically have access to this key via
Deno.env.