aws-samples / aws-samples/aurora-dsql-samples

javascript: Add direct TLS negotiation support to Postgres.js sample

Open
#172 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
44
Forks
25
Avg merge
3h 4m
Merged PRs (30d)
166

Description

**Is your feature request related to a problem? Please describe.**
The Postgres.js module currently doesn't support PostgreSQL 17's direct TLS negotiation feature. This feature improves connection performance and compatibility with certain proxies, but our codebase can't take advantage of it without driver support.

**Describe the solution you'd like**
Once the upstream driver supports the feature, modify the sample to add support for the `sslnegotiation` connection parameter.

**Describe alternatives you've considered**
- No alternative available.

**Additional context**
This feature was originally requested in #150 and has been broken out given many drivers already support this functionality.

Status upstream can be tracked in https://github.com/porsager/postgres/issues/993.

Contributor guide

Open the contributing guide

Research direction

Start by checking the Postgres.js sample and the upstream driver status in porsager/postgres#993. Confirm that upstream support for PostgreSQL 17 direct TLS negotiation is available, then identify the sample's connection configuration and verify that the sslnegotiation parameter is accepted and demonstrated.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, postgres
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.