Published May 10, 2022

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

Ant Wilson delves into Supabase's innovative use of PostgreSQL, emphasizing its commitment to open source and secure authentication. He contrasts Supabase’s capabilities with Firebase, highlighting its strengths in flexibility and simplifying backend tasks for frontend developers.
Episode Highlights
Software Engineering Radio - the podcast for professional software developers logo

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