the right way to update the image and enable SSL (including cert/key file and pg_hba.conf) #1083
Replies: 3 comments
-
Hi Andrea |
Beta Was this translation helpful? Give feedback.
-
Hi @ImreSamu, thanks. I think that covers parms of Regards, |
Beta Was this translation helpful? Give feedback.
-
I've spent a considerable amount of time hacking around this issue, so if that helps anyone (and possibly could be provided in the docs), the solution is below. The trick is to use a command line argument pointing to the alternative
The following entries enforce using SSL on clients:
|
Beta Was this translation helpful? Give feedback.
-
Hi,
any doc describing what in subject?
It should basically boil down to:
postgresql.conf
:ssl=on
... set cert and key file namescert
andkey
files in the imagepg_hba.conf
withhostssl ...
But, where in the image filesystem should I put
postgresql.conf
andpg_hba.conf
? What ever iss in/var/lib/postgresql/data/
is ovewritten. I can set arguments todocker 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 viaPOSTGRES_HOST_AUTH_METHOD
, but I cannot use that for SSL.Therefore the question in subject. Can anybody help?
Cheers,
Andrea
Beta Was this translation helpful? Give feedback.
All reactions