Re: Support for NSS as a libpq TLS backend
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Jacob Champion <pchampion@vmware.com>, "hlinnaka@iki.fi" <hlinnaka@iki.fi>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>, "andrew.dunstan@2ndquadrant.com" <andrew.dunstan@2ndquadrant.com>, "thomas.munro@gmail.com" <thomas.munro@gmail.com>, "sfrost@snowman.net" <sfrost@snowman.net>, "andres@anarazel.de" <andres@anarazel.de>
Date: 2021-01-30T01:27:22Z
Lists: pgsql-hackers
On Fri, Jan 29, 2021 at 02:13:30PM +0100, Daniel Gustafsson wrote: > I'm still not convinced that adding --with-ssl=openssl is worth it before the > rest of NSS goes in (and more importantly, *if* it goes in). > > On the one hand, we already have pluggable (for some value of) support for > adding TLS libraries, and adding --with-ssl is one more piece of that puzzle. > We could of course have endless --with-X options instead but as you say, > --with-uuid has set the tone here (and I believe that's good). On the other > hand, if we never add any other library than OpenSSL then it's just complexity > without benefit. IMO, one could say the same thing for any piece of refactoring we have done in the past to make the TLS/crypto code more modular. There is demand for being able to choose among multiple SSL libs at build time, and we are still in a phase where we evaluate the options at hand. This refactoring is just careful progress, and this is one step in this direction. The piece about refactoring the SSL tests is similar. > As mentioned elsewhere in the thread, the current v23 patchset has the > --with-ssl change as a separate commit to at least make it visual what it looks > like. The documentation changes are in the main NSS patch though since > documenting --with-ssl when there is only one possible value didn't seem to be > helpful to users whom are fully expected to use --with-openssl still. The documentation changes should be part of the patch introducing the switch IMO: a description of the new switch, as well as a paragraph about the old value being deprecated. That's done this way for UUID. -- Michael
Commits
-
Add tab-completion for CREATE FOREIGN TABLE.
- 74527c3e022d 15.0 cited
-
Add tap tests for the schema publications.
- 6b0f6f79eef2 15.0 cited
-
Move Perl test modules to a better namespace
- b3b4d8e68ae8 15.0 cited
-
Adjust configure to insist on Perl version >= 5.8.3.
- 92e6a98c3636 15.0 cited
-
Simplify code related to compilation of SSL and OpenSSL
- 092b785fad3d 14.0 landed
-
Introduce --with-ssl={openssl} as a configure option
- fe61df7f82aa 14.0 landed
-
Implement support for bulk inserts in postgres_fdw
- b663a4136331 14.0 cited
-
Fix redundant error messages in client tools
- 6be725e70161 14.0 cited
-
doc: Apply more consistently <productname> markup for OpenSSL
- 089da3c4778f 14.0 landed
-
Check ssl_in_use flag when reporting statistics
- 6a5c750f3f72 14.0 cited