Skip to content

Conversation

@JEETDESAI25
Copy link

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
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
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
Contributor

Choose a reason for hiding this comment

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

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