sous-chefs / postgresql

Development repository for the postgresql cookbook

Home Page:https://supermarket.chef.io/cookbooks/postgresql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

invalid pg_hba.conf when the values are longer than the defined width's

kristofvandam opened this issue Β· comments

πŸ‘» 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 md5is 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:

  1. 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

merged in #731