-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pg_hba_rule does not properly verify address parameter #1372
pg_hba_rule does not properly verify address parameter #1372
Conversation
According to PostgreSQL documentation there are only specific data possible for address: https://www.postgresql.org/docs/current/auth-pg-hba-conf.html - IPV4 CIDR - IPV6 CIDR - FQDN - the strings 'samenet' or 'samehost' - a domain - a domain with a starting dot
postgresql::server::pg_hba_rule is a typeBreaking changes to this file WILL impact these 14 modules (exact match):Breaking changes to this file MAY impact these 4 modules (near match):This module is declared in 70 of 579 indexed public
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the link in the docstring:
You can also write
allto match any IP address,samehostto match any of the server's own IP addresses, orsamenetto match any address in any subnet that the server is directly connected to.
Co-authored-by: Romain Tartière <romain@blogreen.org>
Co-authored-by: Romain Tartière <romain@blogreen.org>
|
hey @tuxmea. The spec tests with puppet 6 and 7 have both failed. Address these failures and we can have a look! Cheers |
|
@GSPatton I have issues identifying the error: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last PR merged in the main branch had similar CI failures, so these failures seems unrelated to this change.
The change itself looks good to me 👍
|
@david22swan Can you please explain why this is backwards-incompatible? |
|
Anything that alters what a parameter accepts in such a way as to limit it is technically backwards incompatible. |
I think I agree with @tuxmea here. Where previously it would be invalid and fail at runtime (starting the service would fail), now it will fail at catalog compilation. I think it could be an enhancement instead of backwards incompatible change. |
|
Not that I'm caving to peer pressure, but yeh. Your explanation sounds good so gonna go with feature. |
|
@david22swan lint fixes have been added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Gonna do a squash merge since there's a dozen commits, but otherwise this is all good. Thanks for getting back on it so fast.
According to PostgreSQL documentation there are only specific data possible for address:
https://www.postgresql.org/docs/current/auth-pg-hba-conf.html
fixes #1373