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.
[Feature] Add SSL Certificate Configuration Support for PostgreSQL Session Storage
WHY are these changes introduced?
Fixes #2835
When using cloud-hosted PostgreSQL databases that require SSL connections (such as AWS RDS, Google Cloud SQL, or other managed database services), the current PostgreSQL session storage implementation cannot establish secure connections because it extracts individual URL components and loses SSL parameters. This prevents developers from using the session storage with production-grade database services that mandate SSL encryption.
The current implementation in
postgres-connection.tsmanually constructs apg.Poolconfiguration object from URL parts, which doesn't preserve SSL connection parameters that might be present in the original database URL or needed for certificate-based authentication.WHAT is this pull request doing?
This PR adds comprehensive SSL configuration support to the PostgreSQL session storage by:
sslproperty toPostgreSQLSessionStorageOptionsinterface that accepts any validnode-postgresSSL configurationPostgresConnectionclass to accept and apply SSL options to the connection poolKey Features Added:
node-postgresSSL options (rejectUnauthorized,ca,cert,key,passphrase,servername)Usage Examples:
Type of change
Checklist
pnpm changesetto create a draft changelog entry (do NOT update theCHANGELOG.mdfiles manually)