invalid pg_hba.conf when the values are longer than the defined width's
kristofvandam opened this issue Β· comments
Kristof Vandam commented
π» Brief Description
when defining a pg_hba entry, it is possible to use hostnames or ipv6 addresses, the problem now is that when it exceeds the 24 character limit (defined in the cookbook) it breaks syntax:
# TYPE DATABASE USER ADDRESS METHOD OPTIONS
host all all a.very.long.host.domain.that.exceeds.the.max.of.24.charactersmd5
note that the method md5
is attached to the address.
it should be:
# TYPE DATABASE USER ADDRESS METHOD OPTIONS
host all all a.very.long.host.domain.that.exceeds.the.max.of.24.characters md5
π₯ Cookbook version
11.2.3
π©βπ³ Chef-Infra Version
Chef Infra Client: 18.1.0
π© Platform details
debian 10/11 (but should affect all platforms)
Steps To Reproduce
Steps to reproduce the behavior:
- use a long (+24 chars) address in the
postgresql_access
resource
π Expected behavior
postgres should still be able to identify the method
Additional context
this PR fixes the problem: #731
Kristof Vandam commented
merged in #731