Commit 253f102
committed
Overhaul pg_hba.conf clientcert's API
Since PG 12, clientcert no longer supported only on/off, so remove 1/0
as possible values, and instead support only the text strings
'verify-ca' and 'verify-full'.
Remove support for 'no-verify' since that is possible by just not
specifying clientcert.
Also, throw an error if 'verify-ca' is used and 'cert' authentication is
used, since cert authentication requires verify-full.
Also improve the docs.
THIS IS A BACKWARD INCOMPATIBLE API CHANGE.
Reported-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/20200716.093012.1627751694396009053.horikyota.ntt@gmail.com
Author: Kyotaro Horiguchi
Backpatch-through: master1 parent 18c170a commit 253f102
File tree
3 files changed
+13
-21
lines changed- doc/src/sgml
- src/backend/libpq
3 files changed
+13
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2044 | 2044 | | |
2045 | 2045 | | |
2046 | 2046 | | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | | - | |
2053 | | - | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
2054 | 2051 | | |
2055 | 2052 | | |
2056 | 2053 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2345 | 2345 | | |
2346 | 2346 | | |
2347 | 2347 | | |
2348 | | - | |
2349 | | - | |
2350 | | - | |
| 2348 | + | |
| 2349 | + | |
2351 | 2350 | | |
2352 | 2351 | | |
2353 | 2352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1730 | 1730 | | |
1731 | 1731 | | |
1732 | 1732 | | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
1737 | | - | |
1738 | | - | |
| 1733 | + | |
| 1734 | + | |
1739 | 1735 | | |
1740 | 1736 | | |
1741 | 1737 | | |
1742 | | - | |
1743 | | - | |
| 1738 | + | |
1744 | 1739 | | |
1745 | 1740 | | |
1746 | 1741 | | |
1747 | 1742 | | |
1748 | 1743 | | |
1749 | | - | |
| 1744 | + | |
1750 | 1745 | | |
1751 | 1746 | | |
1752 | | - | |
| 1747 | + | |
1753 | 1748 | | |
1754 | 1749 | | |
1755 | | - | |
| 1750 | + | |
| 1751 | + | |
1756 | 1752 | | |
1757 | 1753 | | |
1758 | 1754 | | |
| |||
0 commit comments