Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 7 min read Announcement easyNovice

Supabase Security Retro: 2025

Supabase's 2025 security work centered on safer defaults around Postgres Row Level Security and API exposure. Changes include RLS enabled by default for dashboard-created tables, event triggers to enforce RLS on tables created elsewhere, and alerts plus Splinter-based Security Advisors for misconfigurations. Long-lived JWT anon/service_role keys are being replaced by publishable and revocable secret keys, with asymmetric JWT signing and automatic revocation of keys leaked to GitHub. Legacy keys will be removed in late 2026, and pg_graphql will be disabled by default on new projects. The HackerOne VDP has resolved 139 reports with a median first response of 8 hours, and paid bounties are planned for 2026.

Related posts

  • Supabase Auth now supports Anonymous Sign-ins

    Supabase mediumAdept

    Supabase Auth adds anonymous sign-ins, letting apps create temporary users who are treated as `authenticated` and persisted in `auth.users` with an `is_anonymous` flag exposed as a JWT claim. Postgres Row Level Security policies can check `auth.jwt() ->> 'is_anonymous'` to restrict features, such as blocking anonymous inserts or limiting reads to recent rows. Anonymous users become permanent by linking an email, phone or OAuth identity while keeping the same user ID, so their data carries over. Until automatic cleanup ships, a SQL delete on `auth.users` can purge anonymous accounts older than 30 days.

  • Supabase Vault

    Supabase mediumAdept

    Supabase Vault is a Postgres extension, built as a thin layer over pgsodium and libsodium, that stores secrets such as API keys and access tokens encrypted on disk and in backups. Unlike pgcrypto, which requires passing raw keys through SQL where they can leak into logs, replication streams and clients, Vault references keys by ID and derives them from a per-database root key held outside SQL by pgsodium's Server Key Management. Secrets go into the vault.secrets table and are decrypted on the fly through the vault.decrypted_secrets view. Encryption uses AEAD, so the associated-data column is authenticated alongside the secret, and custom keys can be created with pgsodium.create_key().

  • Introducing JWT Signing Keys

    Supabase mediumAdept

    Supabase Auth now supports asymmetric JWT signing keys (RSA or elliptic curve), letting apps verify tokens locally using public keys published at a JWKS endpoint instead of calling the Auth server or sharing a forgeable secret. Migration is a reversible, zero-downtime sequence: import the legacy secret, generate a standby key pair, rotate to sign with the new private key, then revoke the old secret. A new getClaims() client function verifies tokens via the Web Crypto API with cached public keys, and any JWT library such as jose works too. New publishable and secret API keys replace the JWT-based anon and service_role keys, with asymmetric keys becoming the default for new projects from October 2025 and legacy keys phased out by late 2026.

  • Supabase Auth: Identity Linking, Hooks, and HaveIBeenPwned integration

    Supabase mediumAdept

    Supabase Auth adds four features: manual Identity Linking via linkIdentity()/unlinkIdentity() for OAuth identities, session controls (time-boxed sessions, inactivity timeouts, single session per user on Pro and above), leaked password protection using the HaveIBeenPwned Pwned Passwords API with configurable password requirements, and Auth Hooks. Auth Hooks are Postgres functions that run synchronously at points such as access token generation, MFA verification and password verification, so they can add custom JWT claims or enforce custom security rules. Webhook-based hooks via Standard Webhooks are planned for Q1 2024. The GoTrue fork is also being renamed to Auth, with no breaking changes.

  • The Vibe Coder's Guide to Supabase Environments

    Supabase mediumAdept

    Separate Supabase projects for development and production, with all schema changes captured as timestamped SQL migrations in a Git-tracked supabase/ directory, keep a fast workflow from breaking live data. Changes flow one way: local → dev → prod. Every migration is proven with `supabase db reset`, and GitHub Actions runs `supabase db push` automatically on merges to develop and main. The guide also covers enabling Row Level Security on every table, keeping service role keys out of NEXT_PUBLIC_ variables, nightly backups plus Point in Time Recovery with monthly restore drills, and wiring Vercel preview and production environments to the matching database.

The quest for software engineering knowledge.

Look:
Layout: