RE: repmgr and SSH

From: ROS Didier <didier(dot)ros(at)edf(dot)fr>
To: "ian(dot)barwick(at)2ndquadrant(dot)com" <ian(dot)barwick(at)2ndquadrant(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: repmgr and SSH
Date: 2019-01-15 12:36:33
Message-ID: fd7c9d3d9e5d418cbcff65cb306461e3@PCYINTPEXMU001.NEOPROD.EDF.FR
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Ian
If we setup SSH between all the nodes (master, standby and witness) there is a big security problem when repmgr monitors several configurations :
For instance this architecture :
- configuration A : primary A, standby A
- configuration B : primary B, standby B
- Configuration C : primary C, standby C
- witness : monitors the three configurations

If I can connect on primary A with the "postgres" user, I can login on the witness, and then I can connect to all the nodes (primary B, primary C, standby B, standby C).

Question : is it OK if I setup SSH between only the primary and the standby nodes of each configuration ?

Thanks in advance

Best Regards
Didier ROS
Expertise SGBD
DS IT/IT DMA/Solutions Groupe EDF/Expertise Applicative - SGBD

-----Message d'origine-----
De : ian(dot)barwick(at)2ndquadrant(dot)com [mailto:ian(dot)barwick(at)2ndquadrant(dot)com]
Envoyé : mardi 15 janvier 2019 12:53
À : ROS Didier <didier(dot)ros(at)edf(dot)fr>; pgsql-general(at)lists(dot)postgresql(dot)org
Objet : Re: repmgr and SSH

On 1/14/19 6:29 PM, ROS Didier wrote:
> Hi
>
> I would like to setup a repmgr configuration with one primary node, one standby node and one witness node.
>
>                Regarding SSH configuration, the documentation is not clear, I think.
>
> Do we need to setup SSH between the three nodes or only between primary and standby nodes ?

Between all three, though outbound SSH connections from the witness node are not essential.

We'll clarify the documentation.

Regards

Ian Barwick

--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sherrylyn Branchaw 2019-01-15 12:57:13 Re: pg_restore restores privileges differently from psql
Previous Message Daniel Verite 2019-01-15 11:56:05 RE: Oracke BLOB to Postgres BYTEA using ora2pg