Episode 511: Ant Wilson on Supabase (Postgres as a Service)

Topics covered
Popular Clips
Episode Highlights
User Permissions
Supabase leverages PostgreSQL's row-level security to manage user permissions effectively. explains that when connecting Gotrue, the Auth server, to a PostgreSQL database, it installs its own schema, including an auth users table. This setup allows Supabase to issue JSON Web Tokens (JWTs) that map to user permissions without needing actual PostgreSQL users 1. Wilson highlights the benefits of pushing authorization down into the database, as it simplifies client-side management and enhances security 2.
It's impressive that you garnered that without looking at a single diagram.
---
This approach ensures that each request sent to PostgreSQL is automatically authenticated, streamlining the process for developers.
Security Measures
Row-level security in Supabase is implemented using PostgreSQL's built-in features, which are enhanced by JWTs for secure access. describes how Supabase uses PostgreSQL views to restrict data exposure, allowing developers to define views that limit data access based on specific criteria 3. This method provides a secure way to manage data visibility directly from the database, eliminating the need for additional API layers.
We basically push the authorization down into the database.
---
By integrating these security measures, Supabase offers a robust solution for managing user access and data protection.
Related Episodes


Episode 454: Thomas Richter Postgres as an OLAP database
Answers 383 questions

SE-Radio Episode 362: Simon Riggs on Advanced Features of PostgreSQL
Answers 383 questions

SE Radio 583: Lukas Fittl on Postgres Performance
Answers 383 questions

364: Peter Zaitsev on Choosing the Right Open Source Database
Answers 383 questions

Episode 189: Eric Lubow on Polyglot Persistence
Answers 383 questions
SE Radio 560: Sugu Sougoumarane on Distributed SQL Databases
Answers 383 questions

SE-Radio Episode 243: RethinkDB with Slava Akhmechet
Answers 383 questions

Episode 413: Spencer Kimball on CockroachDB
Answers 383 questions

Episode 510: Deepthi Sigireddi on How Vitess Scales MySQL
Answers 383 questions

Episode 433: Jay Kreps on ksqlDB
Answers 383 questions

Episode 55: Refactoring Pt. 2
Answers 383 questions

Episode 137: SQL with Jim Melton
Answers 383 questions

Episode 186: Martin Fowler and Pramod Sadalage on Agile Database Development
Answers 383 questions

Episode 216: Adrian Cockcroft on the Modern Cloud-based Platform
Answers 383 questions
Episode 417: Alex Petrov on Database Storage Engines
Answers 383 questions













