Skip to content
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

*: add ability to define custom pg_hba.conf entries #341

Merged
merged 1 commit into from
Aug 24, 2017

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Aug 21, 2017

Add a new cluster spec option called pgHBA where users can define a
custom list of pg_hba.conf entries.

These entries will be added to the pg_hba.conf after all the
stolon managed entries so we'll guarantee local connections from the
keeper and replication connection between pg instances.

These entries aren't validated by stolon so if any of them is wrong the
postgres instance will fail to start of return a warning on reload.

If no custom pg_hba.conf entries are provided then we'll use the current
behavior of accepting all hosts for all dbs and users with md5
authentincation:

host all all 0.0.0.0/0 md5
host all all ::0/0 md5

@sgotti sgotti force-pushed the custom_pg_hba_entries branch 5 times, most recently from 0eea564 to 2917c73 Compare August 23, 2017 13:23
@sgotti sgotti modified the milestone: v0.7.0 Aug 23, 2017
Add a new cluster spec option called `pgHBA` where users can define a
custom list of pg_hba.conf entries.

These entries will be added to the pg_hba.conf after all the
stolon managed entries so we'll guarantee local connections from the
keeper and replication connection between pg instances.

These entries aren't validated by stolon so if any of them is wrong the
postgres instance will fail to start of return a warning on reload.

If no custom pg_hba.conf entries are provided then we'll use the current
behavior of accepting all hosts for all dbs and users with md5
authentincation:

```
host all all 0.0.0.0/0 md5
host all all ::0/0 md5
```
@sgotti sgotti merged commit 279433b into sorintlab:master Aug 24, 2017
sgotti added a commit that referenced this pull request Aug 24, 2017
*: add ability to define custom pg_hba.conf entries
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