Repository navigation
docs: show working connectionString and custom CA configuration - #3862
Open
Fardeen-coder666 wants to merge 1 commit into
Open
Fardeen-coder666 wants to merge 1 commit into
Fardeen-coder666 wants to merge 1 commit into
Conversation
charmander
reviewed
Nov 13, 2026
| connectionString: 'postgres://user:password@localhost:5432/db?application_name=example', | ||
| ssl: { | ||
| ca: fs.readFileSync('/path/to/server-certificates/root.crt'), | ||
| rejectUnauthorized: true, |
Collaborator
There was a problem hiding this comment.
default
Suggested change
| rejectUnauthorized: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The SSL guide explains that URL SSL parameters replace the config object's
ssloptions, but the adjacent example only demonstrates the failing configuration. Add a working alternative that keeps the CA and certificate verification in thesslobject while preserving unrelated query parameters.Related to #3355. This is a documentation clarification; it does not change driver behavior.
Validation: checked configuration construction with pg 8.23.1, using a synthetic CA buffer and no network connection. Confirmed that the working example retains
ssl.ca,rejectUnauthorized: true, andapplication_name; also reproduced loss ofssl.cawhensslmode=requireis present. A live PostgreSQL/TLS connection and the documentation site build were not run.Prepared with AI assistance; the example was checked against the connection-parameter merge implementation and the existing issue discussion.