Skip to content

Conversation

staaldraad
Copy link
Member

Using include directives makes changing the pg_hba.conf on the fly more flexible. Enabling / disabling ssl enforcement for example only requires creating or removing a file, leaving the pg_hba.conf untouched. Allowing for more repeatable and stable processes and no need for regex based replace or custom parsers.

This will also support the just-in-time access work by allowing jit to be dynamically enabled/disabled

⚠️ do not merge yet: requires admin-api update, otherwise ssl enforcement enable/disable will stop functioning

@staaldraad
Copy link
Member Author

Requires pg16+

Using include directives makes changing the pg_hba.conf on the fly more
flexible. Enabling / disabling ssl enforcement for example only requires
creating or removing a file, leaving the pg_hba.conf untouched. Allowing
for more repeatable and stable processes and no need for regex based
replace or custom parsers.

This will also support the just-in-time access work by allowing jit to
be dynamically enabled/disabled
@staaldraad staaldraad force-pushed the etienne/sec-493-switch-pg_hba-to-use-include-directive branch from e258813 to 6d11c7d Compare August 19, 2025 07:54
@staaldraad staaldraad marked this pull request as ready for review August 26, 2025 12:52
@staaldraad staaldraad requested review from a team as code owners August 26, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant