Hello,
I have a question about managing Supabase webhooks and rotating secrets.
I create my webhooks in the Supabase dashboard and manually add a secret key in the headers. When I rotate my API key or secret key, all existing webhooks stop working. Then I have to manually update or recreate each webhook in the dashboard which is slow and easy to mess up.
I want to automate this process. Ideally, when I rotate a secret, a GitHub Actions workflow would automatically update or recreate all webhooks with the new secret in the headers, without any manual steps.
Is there a way to programmatically update existing webhooks in Supabase? If not, is deleting and recreating them through an API the best approach? What is the recommended way to handle secret rotation for webhooks?
Thanks in advance for any advice.