dylex / postgresql-typed

Haskell PostgreSQL library with compile-time type inference
http://hackage.haskell.org/package/postgresql-typed
Other
83 stars 12 forks source link

Fixes for TLS breaking changes #37

Closed kamek-pf closed 4 months ago

kamek-pf commented 4 months ago

Hey there, In 2.0.0, the TLS package introduced a number of breaking changes. This one in particular caused some trouble:

After upgrading TLS, our services failed to connect to Postgres (on RDS) with the following messages:

HandshakeFailed (Error_Protocol "peer does not support Extended Main Secret" HandshakeFailure)

This patch reverts to the previous behavior (AllowEMS instead of RequireEMS) and introduces an optional pgDBTLSParams field allowing users to control TLS settings.

dylex commented 4 months ago

All seems reasonable, thanks!