Skip to content

Glossary

What is a service role key?

A service role key is the Supabase API key that bypasses row-level security and gives full access to the data in a project, so it belongs only in server-side code.

Why does it matter to a buyer?

It exists for trusted backend jobs, such as an administrator task or a scheduled import. If it reaches browser code or a public repository, every row in the database is exposed and the key must be replaced. Supabase now calls the newer form of this key a secret key.

An example

For example, a server function that sends a nightly report can use the service role key, while the page a customer loads must only ever hold the anon key.

Checking Supabase row-level security

Related terms

Send a brief

Tell us what you need built.

Send a brief. It does not need to be technical. Within two working days you get a first view, and within a week a written plan, a fixed price and the risks.

Or book a call first

Say in plain language what you want to exist, who it is for, and anything that worries you. It does not need to be technical.

Step 1 of 2. Next we ask your name and company.

Read by a senior engineer. Used only to reply to you. Privacy

Send a brief.