Using service role in Edge Function
I assumed that using Admin role inside Edge Function was perfectly safe. I was treating it like I was creating a private API route like I usually would in Python. I see no reason why I can't do everything with an admin role, if I am vetting the input data the request receives.
But out of curiosity, I asked claude to review one of my edge functions, and was told I should very rarely use a service role in edge functions. I just can't see why not.
Can someone explain to me why I shouldn't?
But out of curiosity, I asked claude to review one of my edge functions, and was told I should very rarely use a service role in edge functions. I just can't see why not.
Can someone explain to me why I shouldn't?