Database Webhooks and Edge Functions

  Рет қаралды 11,680

Supabase

Supabase

Күн бұрын

Пікірлер: 25
@AnotherLeetcode
@AnotherLeetcode 3 ай бұрын
This is the first source of information I found that explained how to protect a webhook url from non authorized webhook calls. Thank you!!
@loucasi
@loucasi 3 ай бұрын
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! 🤞 😅 🤕
@strangeQuirks
@strangeQuirks 10 ай бұрын
Not sure I understand how the anon public key enforces authorization? Anyone can access it and therefore anyone can trigger this edge function.
@timmanning9
@timmanning9 Жыл бұрын
Is this a real-time database or Postgres database? Does database web hooks work with both types?
@jetshu
@jetshu 3 ай бұрын
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.
@sweeterasmus
@sweeterasmus Жыл бұрын
How is the email sending that you comment should be done? I found no information about it
@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 2 ай бұрын
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 5 ай бұрын
So 100,000 functions will run in a queue? Just want some clarity, this wont be a problem?
@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
@trevorwelsh
@trevorwelsh Жыл бұрын
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.
@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
@pedroaquino3042
@pedroaquino3042 4 ай бұрын
Thank you!! Really helpfull!
@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.
@yourpc
@yourpc 2 ай бұрын
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 2 ай бұрын
oops, in my case if I updated many (10 rows) functions handle for 7 of them. P - performance. But not only for 1
VS Code Workspace Configuration for Edge Functions
10:28
Supabase
Рет қаралды 3,8 М.
Send Emails in Edge Functions
17:51
Supabase
Рет қаралды 11 М.
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 10 МЛН
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 130 МЛН
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 59 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 48 МЛН
Make your queries 43,240x faster
13:16
Supabase
Рет қаралды 25 М.
8 things you should NEVER do in a Database!
22:56
Supabase
Рет қаралды 11 М.
Call Postgres functions from JavaScript with RPC
15:36
Supabase
Рет қаралды 15 М.
What is OpenTelemetry?
12:55
Highlight
Рет қаралды 10 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 70 М.
Is "edge" computing really faster?
8:14
Fireship
Рет қаралды 593 М.
What Is the Fastest Way To Do a Bulk Insert? Let’s Find Out
15:04
Milan Jovanović
Рет қаралды 12 М.
Using v0 and Supabase to build a CRM app with AI
23:56
Supabase
Рет қаралды 4 М.
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 10 МЛН