Skip to content

Verify role connection URLs against the system CA store - #1503

Merged
no-itsbackpack merged 1 commit into
mainfrom
egomez/role-url-sslrootcert
Nov 5, 2026
Merged

no-itsbackpack merged 1 commit into
mainfrom
egomez/role-url-sslrootcert

Conversation

@no-itsbackpack

Copy link
Copy Markdown
Contributor

The database_url from pscale role create, role get and role reset-default ends in sslmode=verify-full with no sslrootcert, so libpq looks for ~/.postgresql/root.crt and fails certificate verification when that file is absent. Add sslrootcert=system, matching the connection string the dashboard shows.

postgresql://user:pass@host:5432/postgres?sslmode=verify-full&sslrootcert=system

sslrootcert=system needs libpq 16 or newer. Older clients read it as a file path.

🤖 Generated with Claude Code

The database_url from pscale role create and get ends in
sslmode=verify-full with no sslrootcert, so libpq looks for
~/.postgresql/root.crt and fails certificate verification when that
file is absent. Add sslrootcert=system, matching the connection string
the dashboard shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@no-itsbackpack
no-itsbackpack requested a review from a team as a code owner November 5, 2026 17:39
@no-itsbackpack
no-itsbackpack merged commit 38ad9f3 into main Nov 5, 2026
6 checks passed
@no-itsbackpack
no-itsbackpack deleted the egomez/role-url-sslrootcert branch November 5, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants