public inbox for [email protected]  
help / color / mirror / Atom feed
From: Andrew Coleman <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: passwords enabled by default
Date: Thu, 27 Jun 2019 08:27:27 -0400
Message-ID: <CANNh3aX1ZdOrXZx_92=8QJc0ZzBYYghCaAjRLkOJ69=UGrftvA@mail.gmail.com> (raw)

Recently, while testing my changes to entrypoint.sh in Docker, I noticed
that you cannot import or export passwords via the servers.json file. You
can get around this by setting the PassFile option in servers.json, but
that still doesn't work correctly. For me to make this work, I had to also
set the `PGPASSFILE` to the full path location of the pgpass file generated
for me by Helm.

To clarify, I know how many servers I want to connect to and how to find
their passwords in Kubernetes via their secret, and I use Helm to stitch
all of that together into a pgpass file that psql and pgadmin4 can use to
connect to the servers without user intervention.

The presence of the pgpass file and the reference to that file in the
servers.json was not enough to allow pgadmin4 to connect to the servers, I
also had to set `PGPASSFILE` in my Helm chart to make this work.

This seems like another good ticket, no? I know where to add them and I'll
put a patch in place, but I could sure use a little bit of guidance on the
copy portion of the documentation. I know why it works for me, but would
anyone conceivably use this in a non-Dockerized deployment?

Thanks,
Andrew


view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: passwords enabled by default
  In-Reply-To: <CANNh3aX1ZdOrXZx_92=8QJc0ZzBYYghCaAjRLkOJ69=UGrftvA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox