Skip to content

the right way to update the image and enable SSL (including cert/key file and pg_hba.conf) #1081

@andreaaizza

Description

@andreaaizza

Hi,

any doc describing what in subject?

It should basically boil down to:

  1. update postgresql.conf: ssl=on... set cert and key file names
  2. upload cert and key files in the image
  3. update pg_hba.conf with hostssl ...

But, where in the image filesystem should I put postgresql.conf and pg_hba.conf? What ever iss in /var/lib/postgresql/data/ is ovewritten. I can set arguments to docker run... but I need to run this on kubernetes and would like to have that in a custom image. Also, some customisation can be done via POSTGRES_HOST_AUTH_METHOD, but I cannot use that for SSL.

Therefore the question in subject. Can anybody help?

Cheers,
Andrea

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions