Bug report
Describe the bug
I am trying to connect to a database with SSL enforcement enabled from my local computer. I have followed the local development cli guide here: https://supabase.com/docs/guides/local-development/overview and the SSL guide here: https://supabase.com/docs/guides/platform/ssl-enforcement. I have downloaded the CA from my supabase project as advised in the ssl-enforcement docs.
I've run these commands:
supabase login
supabase link --project-ref
supabase db pull
When I run the db pull command I get this error message:
failed to connect to postgres: failed to connect to host=aws-0-us-east-1.pooler.supabase.com user=postgres.<project_id> database=postgres: server error (FATAL: SSL connection is required (SQLSTATE XX000))
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Create a supabase project in the CLI
- Enable SSL (full enforcement) in the database settings
- Download the SSL Certificate from the Database Settings page
- Create file ~/.postgres/root.crt
- Run cat {location of downloaded prod-ca-2021.crt} >> ~/.postgres/root.crt
- Run "supabase login"
- Run "supabase link --project-ref "
- Run "supabase db pull"## Expected behavior
The "supabase db pull" command succeeds, pulling the migration history from my remote project
Screenshots
If applicable, add screenshots to help explain your problem.
System information
- OS: macOS 14.5, Apple M1 Pro,
- Version of Supabase CLI: 2.15.8
- Version of Node.js: v18.20.0
Additional context
Add any other context about the problem here.
Bug report
Describe the bug
I am trying to connect to a database with SSL enforcement enabled from my local computer. I have followed the local development cli guide here: https://supabase.com/docs/guides/local-development/overview and the SSL guide here: https://supabase.com/docs/guides/platform/ssl-enforcement. I have downloaded the CA from my supabase project as advised in the ssl-enforcement docs.
I've run these commands:
supabase login
supabase link --project-ref
supabase db pull
When I run the db pull command I get this error message:
failed to connect to postgres: failed to connect to
host=aws-0-us-east-1.pooler.supabase.com user=postgres.<project_id> database=postgres: server error (FATAL: SSL connection is required (SQLSTATE XX000))A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
The "supabase db pull" command succeeds, pulling the migration history from my remote project
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.