Fix pg_hba_file_rules for authentication method cert
authorMagnus Hagander <magnus@hagander.net>
Wed, 26 Jan 2022 08:52:41 +0000 (09:52 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 26 Jan 2022 08:59:14 +0000 (09:59 +0100)
commit4afae689ead4ffbfdbaac1cd72794c729446596e
treee89a43eb4e86040a890dbb035d4cbba0bf980ee8
parent75674c7ec1b1607e7013b5cebcb22d9c8b4b2cb6
Fix pg_hba_file_rules for authentication method cert

For authentication method cert, clientcert=verify-full is implied. But
the pg_hba_file_rules entry would incorrectly show clientcert=verify-ca.

Per bug #17354

Reported-By: Feike Steenbergen
Reviewed-By: Jonathan Katz
Backpatch-through: 12
src/backend/libpq/hba.c