Evening all - does anyone know if it's possible to...
# help
s
Evening all - does anyone know if it's possible to reset the API key for Supabase? I'm working on a little side project using an unfamiliar frontend framework and managed to expose the key in version control... 🤦‍♂️ I'm using the package https://github.com/supabase-community/nuxt-supabase and currently have the URL and API key in my
nuxt-config.js
but this seems like it's probably a bad idea...
s
It's fine to have your
anon
API key in your project as long as you have RLS turned on for your tables. The key you don't want leaked is your
service_role
key.
s
Ok that's a relief - so it's fine to have the anon public key exposed in version control? I do have RLS turned on for all tables at the moment
s
Yes as those are exposed in your app when a user uses it
s
Thank you so much - phew! Now to learn how to deploy my app (that's a whole other journey though 😄 )
s
Happy to help
s
Thanks so much for replying so fast - have a great day!