pgsql: ssl: Add connection and reload tests for key passphrases

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: ssl: Add connection and reload tests for key passphrases
Date: 2025-11-26 13:48:49
Message-ID: E1vOFt2-001VMO-1i@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

ssl: Add connection and reload tests for key passphrases

ssl_passphrase_command_supports_reload was not covered by the SSL
testsuite, and connection tests after unlocking secrets with the
passphrase was also missing. This adds test coverage for reloads
of passphrase commands as well as connection attempts which tests
the different codepaths for Windows and non-EXEC_BACKEND builds.

Author: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Reviewed-by: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Reviewed-by: Peter Eisentraut <peter(at)eisentraut(dot)org>
Discussion: https://postgr.es/m/5F301096-921A-427D-8EC1-EBAEC2A35082@yesql.se

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/348020caa7beaa2e4b1bc10b1ea6eb2c97b894c0

Modified Files
--------------
src/test/ssl/t/001_ssltests.pl | 90 ++++++++++++++++++++++++++++++++++++------
src/test/ssl/t/SSL/Server.pm | 14 ++++++-
2 files changed, 90 insertions(+), 14 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2025-11-26 13:50:35 pgsql: doc: Clarify passphrase command reloading on Windows
Previous Message Daniel Gustafsson 2025-11-26 13:48:48 pgsql: doc: Clarify passphrase command reloading on Windows