Database Webhooks and Edge Functions

  Рет қаралды 12,767

Supabase

Supabase

Күн бұрын

Пікірлер
@AnotherLeetcode
@AnotherLeetcode 5 ай бұрын
This is the first source of information I found that explained how to protect a webhook url from non authorized webhook calls. Thank you!!
@strangeQuirks
@strangeQuirks Жыл бұрын
Not sure I understand how the anon public key enforces authorization? Anyone can access it and therefore anyone can trigger this edge function.
@manny7662
@manny7662 15 күн бұрын
Depends what your RLS looks like.
@jetshu
@jetshu 5 ай бұрын
How do you manage the anon key when calling the function in the webhook when they are different between the local environment and the remote environment? I don't want to disable jwt-verification.
@carlafuh9481
@carlafuh9481 Жыл бұрын
I followed the SQL code on the docs to create a webhook that triggers an API. My problem is string concatenation don't work at API endpoint. I tried using NEW.column_name to get record which just added since my webhook listens for inserts but the code SQL compiler keeps giving a syntax error
@loucasi
@loucasi 5 ай бұрын
Amazing presenters of Supabase very informative videos! Would you PLEASE make a video explaining best practices for handling time + timezones in & out of Supabase ? If you could add some specifics regarding Flutterflow and how it handles the issue - and how the two could come together - apart from helping my particular non coder situation could be the ONE video on the internet that shows best practices and rules to handle the "time" issue once and for all. PLEASE! 🤞 😅 🤕
@sweeterasmus
@sweeterasmus Жыл бұрын
How is the email sending that you comment should be done? I found no information about it
@trevordevelops
@trevordevelops Жыл бұрын
the payload always returns undefined for me. Im using it on a table with multiple rows, web hook triggers on update. Any ideas why the body is failing to be passed in? I have the application/json header.
@timmanning9
@timmanning9 Жыл бұрын
Is this a real-time database or Postgres database? Does database web hooks work with both types?
@yourpc
@yourpc 4 ай бұрын
but this webhooks doesn't make any sense, if I make insert\update\delete into table more then 1 row in one time (insert many, update many), functions won't execute at all. they only handle one table changes per one moment
@yourpc
@yourpc 4 ай бұрын
oops, in my case if I updated many (10 rows) functions handle for 7 of them. P - performance. But not only for 1
@ajaychandrasekaran9262
@ajaychandrasekaran9262 Жыл бұрын
This is nice for trigger on each row. Wish there was an easy way to do it for each statement and pass all newly inserted data as part of the POST body through the webhook UI. It's already possible through creating a trigger with transition tables from SQL editor for a table, then creating a function that uses pg_net and setting custom body for POST request. We first need support for creating triggers with transition tables as part of the database triggers ui to support this.
@ConsenusCattle
@ConsenusCattle 4 ай бұрын
Don't trigger variables automatically be in the webhook payload and go to your edge function?
@OlivierMARTINEAU
@OlivierMARTINEAU Жыл бұрын
Is there a sort of queuing ? Imagine, I insert 100 000 lines, are 100,000 functions going to be launched at the same time?
@kevinloo9688
@kevinloo9688 Жыл бұрын
Can you start a topic on SO or GH on this? I’ll be getting to the point where execution order will matter. Currently thinking of a simple delay function but that’s less than elegant
@steve-chavez
@steve-chavez Жыл бұрын
Yes. Underlyingly it uses the pg_net extension, which has a queue.
@wesleybarnes5376
@wesleybarnes5376 7 ай бұрын
So 100,000 functions will run in a queue? Just want some clarity, this wont be a problem?
@jobiej7416
@jobiej7416 Жыл бұрын
How the you avoid the red squiggly lines that appear when you import a deno package?
@adjust6744
@adjust6744 Жыл бұрын
Do you have a deno workspace setup?
@jobiej7416
@jobiej7416 Жыл бұрын
@@adjust6744 nope. I’m using CRA.
@adjust6744
@adjust6744 Жыл бұрын
@Jobie J you have to set that up on vs code. I've watched several of these videos. Not sure of he shows in this or not. This is for vscode 1. Install deno extension 2. Open up command pallette 3. Type deno workspace and enable it.
@Supabase
@Supabase Жыл бұрын
@@jobiej7416 When adding functions within a different workspace, e.g. react, we recommend a code workspaces setup like this: github.com/supabase/supabase/blob/master/examples/edge-functions/edge-functions.code-workspace . That way you can have a react project and a Deno project in the same workspace.
@pedroaquino3042
@pedroaquino3042 6 ай бұрын
Thank you!! Really helpfull!
@YaronLavi
@YaronLavi Жыл бұрын
I might be super wrong here, but isn't it a security issue to be able to pull all the database tables out of a project's id? Can't you check someone's project id via dev tools? Awesome video, regardless :) Thank you very much!
@mathias2860dk
@mathias2860dk Жыл бұрын
Not if you have security policies setup
@Supabase
@Supabase Жыл бұрын
That's why there are anon keys and RLS policies: supabase.com/docs/learn/auth-deep-dive/auth-row-level-security
VS Code Workspace Configuration for Edge Functions
10:28
Supabase
Рет қаралды 4 М.
Send Emails in Edge Functions
17:51
Supabase
Рет қаралды 12 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Edge functions with @Supabase  - Course part 19
14:06
Codewithguillaume
Рет қаралды 18 М.
8 things you should NEVER do in a Database!
22:56
Supabase
Рет қаралды 13 М.
Sync Clerk Data to Your Database Using Webhooks
25:20
Hamed Bahram
Рет қаралды 53 М.
I've been using Supabase and I kind of like it
11:25
Web Dev Cody
Рет қаралды 31 М.
Why you should use Edge Functions for AI
4:18
Supabase
Рет қаралды 7 М.
Automate API requests with Database Webhooks in Supabase
14:52
I Cannot Believe TypeScript Recommends You Do This!
7:45
Web Dev Simplified
Рет қаралды 179 М.
Is "edge" computing really faster?
8:14
Fireship
Рет қаралды 597 М.
Build an API server with TypeScript
11:49
Deno
Рет қаралды 11 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН