pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
security on user for replication
3+ messages / 3 participants
[nested] [flat]

* security on user for replication
@ 2019-11-11 13:26  PegoraroF10 <marcos@f10.com.br>
  0 siblings, 2 replies; 3+ messages in thread

From: PegoraroF10 @ 2019-11-11 13:26 UTC (permalink / raw)
  To: pgsql-general

We use replication with publication/subsctription. It´s ok, works fine.
But if I go to my replica server and do select * from pg_subscription 
on field subconninfo I have all properties to connect. host, port, user,
password and dbname, all these info are available.
Documentation says user for replication is equivalent to a superuser and
must have the login attribute. If this user has all this power and using
that select on replica all that info is available ...
How can I hide that info from users which are connected to my replica server
or 
If it´s possible to have a replication user with not superuser rights or
with NoLogin



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html

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

* Re: security on user for replication
@ 2019-11-11 15:43  Andreas Kretschmer <andreas@a-kretschmer.de>
  parent: PegoraroF10 <marcos@f10.com.br>
  1 sibling, 0 replies; 3+ messages in thread

From: Andreas Kretschmer @ 2019-11-11 15:43 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org



Am 11.11.19 um 14:26 schrieb PegoraroF10:
> How can I hide that info from users which are connected to my replica 
> server


you can use a .pgpass - file, see the documentation.


Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com






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

* Re: security on user for replication
@ 2019-11-11 19:00  Christoph Moench-Tegeder <cmt@burggraben.net>
  parent: PegoraroF10 <marcos@f10.com.br>
  1 sibling, 0 replies; 3+ messages in thread

From: Christoph Moench-Tegeder @ 2019-11-11 19:00 UTC (permalink / raw)
  To: PegoraroF10 <marcos@f10.com.br>; +Cc: pgsql-general

## PegoraroF10 (marcos@f10.com.br):

> How can I hide that info from users which are connected to my replica server

https://www.postgresql.org/docs/current/catalog-pg-subscription.html
  Access to the column subconninfo is revoked from normal users, because
  it could contain plain-text passwords.

Else: SSL certificates, pgpass file, or rig up some kerberos (that's
not that elegant in this case).

Regards,
Christoph

-- 
Spare Space.





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


end of thread, other threads:[~2019-11-11 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-11-11 13:26 security on user for replication PegoraroF10 <marcos@f10.com.br>
2019-11-11 15:43 ` Andreas Kretschmer <andreas@a-kretschmer.de>
2019-11-11 19:00 ` Christoph Moench-Tegeder <cmt@burggraben.net>

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