Skip to content

feat(db): support edge function names in webhook triggers#4629

Open
JEETDESAI25 wants to merge 1 commit intosupabase:developfrom
JEETDESAI25:feat/webhook-local-edge-functions
Open

feat(db): support edge function names in webhook triggers#4629
JEETDESAI25 wants to merge 1 commit intosupabase:developfrom
JEETDESAI25:feat/webhook-local-edge-functions

Conversation

@JEETDESAI25
Copy link
Copy Markdown

@JEETDESAI25 JEETDESAI25 commented Dec 16, 2025

What kind of change does this PR introduce?

Feature

What is the current behavior?

Refs: #1705, supabase/supabase#34139

Webhooks require full URLs, breaking when migrating between environments.

What is the new behavior?

  • supabase_functions.http_request() auto-detects slugs vs URLs, reads secrets from vault, injects Authorization header
  • Vault secrets synced in start, db push, db reset, migration up/down
  • Works for PG14 and PG15+ stacks

@JEETDESAI25 JEETDESAI25 requested a review from a team as a code owner December 16, 2025 02:04
@sweatybridge
Copy link
Copy Markdown
Contributor

I think this is a good idea. But we also need to be consistent with the webhooks definition on platform side.

Let me check with our team and get back on whether something similar can be rolled out on all hosted projects.

@JEETDESAI25
Copy link
Copy Markdown
Author

Thanks for the review! Let me know what changes are needed to better align with platform side definition.

Comment on lines +47 to +48
base_url text;
service_key text;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JEETDESAI25 JEETDESAI25 changed the title feat(db): support edge function names in webhook triggers feat(db): auto-seed supabase_functions_url vault secret for local and linked projects Apr 2, 2026
@JEETDESAI25 JEETDESAI25 changed the title feat(db): auto-seed supabase_functions_url vault secret for local and linked projects feat(db): support edge function names in webhook triggers Apr 2, 2026
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.

2 participants