Skip to content

feat(postgres): support CA bundle for SSL verify-ca / verify-full#209

Open
kdhillon-stripe wants to merge 2 commits intov2from
kdhillon/ssl-ca-verify
Open

feat(postgres): support CA bundle for SSL verify-ca / verify-full#209
kdhillon-stripe wants to merge 2 commits intov2from
kdhillon/ssl-ca-verify

Conversation

@kdhillon-stripe
Copy link
Copy Markdown
Collaborator

Summary

  • Add stripSslParams helper to remove SSL query params from connection strings before passing to pg, preventing pg's URL parser from overriding the ssl config object.
  • Extend sslConfigFromConnectionString with an optional sslCaPem parameter to inject a PEM-encoded CA certificate for verify-ca and verify-full modes.
  • Wire ssl_ca_pem config through destination-postgres and state-postgres so users can trust private CAs (e.g. RDS, internal DBs).

Test plan

  • Unit tests updated for sslConfigFromConnectionString covering all sslmode values with and without CA
  • Unit tests added for stripSslParams
  • All assertions verified manually (vitest esbuild binary incompatible with local env; CI will run full suite)
  • CI checks pass

🤖 Generated with Claude Code

kdhillon-stripe and others added 2 commits March 30, 2026 22:17
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
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.

1 participant