Skip to content

Commit 2dbb7b9

Browse files
committed
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
1 parent bd233bd commit 2dbb7b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/libpq/hba.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,11 @@ parse_hba_line(TokenizedLine *tok_line, int elevel)
16841684
*/
16851685
if (parsedline->auth_method == uaCert)
16861686
{
1687-
parsedline->clientcert = clientCertCA;
1687+
/*
1688+
* For auth method cert, client certificate validation is mandatory, and it implies
1689+
* the level of verify-full.
1690+
*/
1691+
parsedline->clientcert = clientCertFull;
16881692
}
16891693

16901694
return parsedline;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy