public inbox for [email protected]  
help / color / mirror / Atom feed
passwords enabled by default
4+ messages / 3 participants
[nested] [flat]

* passwords enabled by default
@ 2019-06-27 12:27 Andrew Coleman <[email protected]>
  2019-06-27 15:15 ` Re: passwords enabled by default Dave Page <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Andrew Coleman @ 2019-06-27 12:27 UTC (permalink / raw)
  To: pgadmin-hackers <[email protected]>

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


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: passwords enabled by default
  2019-06-27 12:27 passwords enabled by default Andrew Coleman <[email protected]>
@ 2019-06-27 15:15 ` Dave Page <[email protected]>
  2019-07-04 10:00   ` Re: passwords enabled by default Fahar Abbas <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Dave Page @ 2019-06-27 15:15 UTC (permalink / raw)
  To: Andrew Coleman <[email protected]>; +Cc: pgadmin-hackers <[email protected]>; Syed Fahar Abbas <[email protected]>

Fahar, can you verify that the Password File option works as expected (or
not) in a non-containerised environment? It should *not* require PGPASSFILE
to be set (because that's basically what it should be doing for us).

Thanks.

On Thu, Jun 27, 2019 at 8:27 AM Andrew Coleman <[email protected]>
wrote:

> 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
>


-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: passwords enabled by default
  2019-06-27 12:27 passwords enabled by default Andrew Coleman <[email protected]>
  2019-06-27 15:15 ` Re: passwords enabled by default Dave Page <[email protected]>
@ 2019-07-04 10:00   ` Fahar Abbas <[email protected]>
  2019-07-04 10:12     ` Re: passwords enabled by default Dave Page <[email protected]>
  0 siblings, 1 reply; 4+ messages in thread

From: Fahar Abbas @ 2019-07-04 10:00 UTC (permalink / raw)
  To: Dave Page <[email protected]>; +Cc: Andrew Coleman <[email protected]>; pgadmin-hackers <[email protected]>

Yes Dave it's working as expected.

On Thu, Jun 27, 2019 at 8:16 PM Dave Page <[email protected]> wrote:

> Fahar, can you verify that the Password File option works as expected (or
> not) in a non-containerised environment? It should *not* require PGPASSFILE
> to be set (because that's basically what it should be doing for us).
>
> Thanks.
>
> On Thu, Jun 27, 2019 at 8:27 AM Andrew Coleman <[email protected]>
> wrote:
>
>> 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
>>
>
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>


-- 
Fahar Abbas
QMG
EnterpriseDB Corporation
Phone Office: +92-51-835-8874
Phone Direct: +92-51-8466803
Mobile: +92-333-5409707
Skype ID: *live:fahar.abbas*
Website: www.enterprisedb.com


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: passwords enabled by default
  2019-06-27 12:27 passwords enabled by default Andrew Coleman <[email protected]>
  2019-06-27 15:15 ` Re: passwords enabled by default Dave Page <[email protected]>
  2019-07-04 10:00   ` Re: passwords enabled by default Fahar Abbas <[email protected]>
@ 2019-07-04 10:12     ` Dave Page <[email protected]>
  0 siblings, 0 replies; 4+ messages in thread

From: Dave Page @ 2019-07-04 10:12 UTC (permalink / raw)
  To: Fahar Abbas <[email protected]>; +Cc: Andrew Coleman <[email protected]>; pgadmin-hackers <[email protected]>

Great, thanks. Can you now test it in a container? I think you'll need to
map the file location in the container to the host machine, and then
specify the location in the container (e.g. /pgpass in the example below)
when you configure the server in pgAdmin. e.g.

docker run -p 80:80 \
        -e "[email protected]" \
        -e "PGADMIN_DEFAULT_PASSWORD=SuperSecret" \
        -v "/path/on/host/to/pgpass:/pgpass" \
        -d dpage/pgadmin4


On Thu, Jul 4, 2019 at 11:00 AM Fahar Abbas <[email protected]>
wrote:

> Yes Dave it's working as expected.
>
> On Thu, Jun 27, 2019 at 8:16 PM Dave Page <[email protected]> wrote:
>
>> Fahar, can you verify that the Password File option works as expected (or
>> not) in a non-containerised environment? It should *not* require PGPASSFILE
>> to be set (because that's basically what it should be doing for us).
>>
>> Thanks.
>>
>> On Thu, Jun 27, 2019 at 8:27 AM Andrew Coleman <[email protected]>
>> wrote:
>>
>>> 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
>>>
>>
>>
>> --
>> Dave Page
>> Blog: http://pgsnake.blogspot.com
>> Twitter: @pgsnake
>>
>> EnterpriseDB UK: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>>
>
>
> --
> Fahar Abbas
> QMG
> EnterpriseDB Corporation
> Phone Office: +92-51-835-8874
> Phone Direct: +92-51-8466803
> Mobile: +92-333-5409707
> Skype ID: *live:fahar.abbas*
> Website: www.enterprisedb.com
>


-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2019-07-04 10:12 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-06-27 12:27 passwords enabled by default Andrew Coleman <[email protected]>
2019-06-27 15:15 ` Dave Page <[email protected]>
2019-07-04 10:00   ` Fahar Abbas <[email protected]>
2019-07-04 10:12     ` Dave Page <[email protected]>

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