Skip to content

Configure pg_hba in the local postgresql configuration of Patroni.#361

Merged
alexeyklyukin merged 1 commit into
masterfrom
bugfix/pg_hba_in_local_configuration
Aug 8, 2018
Merged

Configure pg_hba in the local postgresql configuration of Patroni.#361
alexeyklyukin merged 1 commit into
masterfrom
bugfix/pg_hba_in_local_configuration

Conversation

@alexeyklyukin
Copy link
Copy Markdown
Contributor

Previously, the operator put pg_hba into the bootstrap/pg_hba key of
Patroni. That had 2 adverse effects:

  • pg_hba.conf was shadowed by Spilo default section in the local
    postgresql configuration
  • when updating pg_hba in the cluster manifest, the updated lines were
    not propagated to DCS, since the key was defined in the boostrap
    section of Patroni.

Include some minor refactoring, moving methods to unexported when
possible and commenting out usage of md5, so that gosec won't complain.

Per #330

Previously, the operator put pg_hba into the bootstrap/pg_hba key of
Patroni. That had 2 adverse effects:
 - pg_hba.conf was shadowed by Spilo default section in the local
   postgresql configuration
 - when updating pg_hba in the cluster manifest, the updated lines were
   not propagated to DCS, since the key was defined in the boostrap
   section of Patroni.

Include some minor refactoring, moving methods to unexported when
possible and commenting out usage of md5, so that gosec won't complain.

Per #330
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 4.618% when pulling babaead on bugfix/pg_hba_in_local_configuration into b06186e on master.

Copy link
Copy Markdown
Member

@sdudoladov sdudoladov left a comment

Choose a reason for hiding this comment

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

I did some basic review/checks and will approve the changes to get myself out of the way on the assumption that @CyberDem0n will later review the Patroni side of things

@alexeyklyukin alexeyklyukin merged commit e933908 into master Aug 8, 2018
@alexeyklyukin alexeyklyukin deleted the bugfix/pg_hba_in_local_configuration branch August 8, 2018 09:01
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.

3 participants