Skip to content

Conversation

staaldraad
Copy link
Member

@staaldraad staaldraad commented Aug 15, 2025

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

The required admin-api update is included as v0.88.0 added to ansible/vars.yml

@staaldraad
Copy link
Member Author

Requires pg16+

@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
@staaldraad staaldraad force-pushed the etienne/sec-493-switch-pg_hba-to-use-include-directive branch from 7b62c4f to 641951d Compare August 27, 2025 14:08
@staaldraad staaldraad requested a review from hunleyd August 27, 2025 18:57
@staaldraad staaldraad mentioned this pull request Aug 29, 2025
hunleyd
hunleyd previously requested changes Sep 3, 2025
Copy link
Contributor

@hunleyd hunleyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, minus the conflict

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 641951d to 9a840bf Compare September 8, 2025 08:27
@staaldraad staaldraad dismissed hunleyd’s stale review September 8, 2025 11:11

conflict resolved and rebased to use latest admin_api and admin_mgr as introduced by #1780

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants