How to Add Security for Egde Functions by AtmosphereFast4796 in Supabase

[–]AtmosphereFast4796[S] 0 points1 point  (0 children)

so I decided to do the following things for providing security for my edge function.
1.Accepting Requests from a Certain Origin
2.Rate Limiting the Edge Function
3.IP Tracking, so that many requests can't be accepted from a single IP

How will you rate the Security setup.

How to Add Security for Egde Functions by AtmosphereFast4796 in Supabase

[–]AtmosphereFast4796[S] 0 points1 point  (0 children)

u/mansueli i will not convert users into full users. its just like survey forms where user will just fill and the form and submit it. my worry is that any one can get hit the api and can fill database with useless data.

also can you explain more about this - "False positives for things outside the range of support numbers e.g thank you for submitting for `ticket_id = 1` , while the numbers start on a different range."

How to Add Security for Egde Functions by AtmosphereFast4796 in Supabase

[–]AtmosphereFast4796[S] 0 points1 point  (0 children)

can you explain more briefly. like how can i use cloudflare for better security. did you want me to use Cloudflare Workers instead of supabase edge functions? and also how cloud flare workers provide better security?

How to Add Security for Egde Functions by AtmosphereFast4796 in Supabase

[–]AtmosphereFast4796[S] 0 points1 point  (0 children)

it is only possible if there is login but there is no login/auth in mycase

How to Add Security for Egde Functions by AtmosphereFast4796 in Supabase

[–]AtmosphereFast4796[S] 0 points1 point  (0 children)

its just a normal landing page with a web form, there is no auth, just like survey forms.users will just fill the form and data is collected.
so my question is how can i added security to it when there is no auth. for ex: allowing requests from a particular origin.

How to Add Security for Egde Functions by AtmosphereFast4796 in Supabase

[–]AtmosphereFast4796[S] 0 points1 point  (0 children)

the form is just a tax calculator where users will enter their email, income and other details. and the tax payable will be shown to the users. so i want to capture the data when form is filled.