Skip to content

Defaut HBA is corrected (PostgresNode::default_conf)#387

Merged
dmitry-lipetsk merged 1 commit into
postgrespro:masterfrom
dmitry-lipetsk:D20260709_002--default_hba
Jul 9, 2026
Merged

Defaut HBA is corrected (PostgresNode::default_conf)#387
dmitry-lipetsk merged 1 commit into
postgrespro:masterfrom
dmitry-lipetsk:D20260709_002--default_hba

Conversation

@dmitry-lipetsk

@dmitry-lipetsk dmitry-lipetsk commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

In this patch we correct generation of HBA in default_conf method.

Reason:

  • Old implementation does not allow us to work with PG that is started on remote machine.

Changes:

  • Generation of HBA is moved into _default_conf__hba
  • We does not respect allow_streaming.
  • We save comments
  • We generate rules for 0.0.0.0/0 and ::/0
  • We generate pretty formatted rules
  • test_custom_init does not test HBA any more
  • New test test_custom_init__hba is added

In this patch we correct generation of HBA in default_conf method.

Reason:
- Old implementation does not allow us to work with PG that is started on remote machine.

Changes:
0) Generation of HBA is moved into _default_conf__hba
1) We does not respect allow_streaming.
2) We save a comments
3) We generate rules for 0.0.0.0/0 and ::/0
4) We generate pretty formatted rules
5) test_custom_init does not test HBA any more
6) New test test_custom_init__hba is added

Co-authored-by: Mark G. <mark@google.com>
@dmitry-lipetsk dmitry-lipetsk merged commit 27b6827 into postgrespro:master Jul 9, 2026
30 checks passed
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