The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: add note about ssl modes (#27679)
Etienne Stalmans361adf9f7c85
diff --git a/apps/docs/content/guides/platform/ssl-enforcement.mdx b/apps/docs/content/guides/platform/ssl-enforcement.mdxindex f104c6dfe7a..9443b228a66 100644--- a/apps/docs/content/guides/platform/ssl-enforcement.mdx+++ b/apps/docs/content/guides/platform/ssl-enforcement.mdx@@ -57,3 +57,21 @@ Similarly, to disable SSL enforcement:> supabase ssl-enforcement --project-ref {ref} update --disable-db-ssl-enforcement --experimentalSSL is *NOT* being enforced.```++### A note about Postgres SSL modes++Postgres supports [multiple SSL modes](https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-PROTECTION) on the client side. These modes provide different levels of protection. Depending on your needs, it is important to verify that the SSL mode in use is performing the required level of enforcement and verification of SSL connections.++The strongest mode offered by Postgres is `verify-full` and this is the mode you most likely want to use when SSL enforcement is enabled. To use `verify-full` you will need to download the Supabase CA certificate for your database. The certificate is available through the dashboard under the SSL Configuration section in the [Database Settings page](/dashboard/project/_/settings/database).++Once the CA certificate has been downloaded, add it to the certificate authority list used by Postgres.++```bash+> cat {location of downloaded prod-ca-2021.crt} >> ~/.postgres/root.crt+```++With the CA certificate added to the trusted certificate authorities list, use `psql` or your client library to connect to Supabase:++```bash+> psql "postgresql://aws-0-eu-central-1.pooler.supabase.com:6543/postgres?sslmode=verify-full" -U postgres.<user>+```