Is the Supabase anon key safe to put in my app?
A key is a long password your app uses to prove who it is to another service, here Supabase, which holds your app's data. Supabase's documentation says the publishable key, the newer form of the anon key, has low privileges and is designed to be exposed in web pages and mobile apps, because Row Level Security limits what it can reach.
That protection depends on your rules. If a table has RLS (Row Level Security) off, or a policy (one of those rules) that lets everyone read, the anon key can reach that data, and the key is in every visitor's browser. The browser is the program people use to open websites, such as Chrome or Safari, and anyone can look at what it receives.
The key that must never be there is the secret (service_role) key, which skips RLS entirely and opens everything.
Sources
- Supabase documentation, API keys, accessed 2026-11-16
- Supabase documentation, Row Level Security, accessed 2026-11-16
See what your live app shows strangers
Paste the link to your app: in under a minute the free scan shows what your live app hands to any visitor, and where to look first. No sign-up, and it never signs in or changes anything.
Want the code itself read? Order the $49 audit or see a sample report. Your card is held and charged only when your report is delivered. It is not a pentest: the audit is done by AI, and a second AI checks each serious finding.