---
title: "Discussion on \"Supabase anon key vs service role key: what each one opens\" | Hashnode"
description: "Discussion on \"Supabase anon key vs service role key: what each one opens\". TL;DR. The anon key, now called the publishable key, is meant to be public. It maps to the anon or authenticated role, and your RLS policies decide what it sees. The service role key, now the secret k"
url: "https://hashnode.com/posts/supabase-anon-key-vs-service-role-key-what-each-one-opens/6ae865e4dee7dce8b2954752"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Supabase anon key vs service role key: what each one opens](https://madsalt.hashnode.dev/supabase-anon-key-vs-service-role-key-what-each-one-opens?utm_source=hashnode&utm_medium=feed)

TL;DR. The anon key, now called the publishable key, is meant to be public. It maps to the anon or authenticated role, and your RLS policies decide what it sees. The service role key, now the secret k

Nov 2 · 6 min read · madsalt.hashnode.dev  
Read the article

-   [#supabase](https://hashnode.com/tag/supabase)

## Written by

[Denys Zaichenko](https://hashnode.com/@madsalttech)

@madsalttech · Lisbon, Portugal

  
[View profile](https://hashnode.com/@madsalttech)

A senior full-stack developer specialising in multi-tenant SaaS apps and AI agents.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
