pacemaker-replication-agents icon indicating copy to clipboard operation
pacemaker-replication-agents copied to clipboard

geo-DR: remove need to have ssh

Open grypyrg opened this issue 10 years ago • 9 comments

Why do we need ssh from every machine to every machine?

For geo-DR, this is used to fetch who the master is and it's binary log information.

Can't we just have a small daemon that runs in the cluster and serves those requests? Or are there other ways through booth itself?

grypyrg avatar Aug 30 '14 21:08 grypyrg

We could use xinetd for example. That does introduce an extra dependency though, ssh is usually already installed. Do you have security concerns?

y-trudeau avatar Sep 11 '14 13:09 y-trudeau

Yes, indeed. Many environments I work on do not allow root ssh automatically

grypyrg avatar Sep 13 '14 09:09 grypyrg

We can optionally use http://clusterlabs.org/doc/en-US/Pacemaker/1.0/html-single/Pacemaker_Explained/#s-remote-connection

dotmanila avatar Sep 18 '14 01:09 dotmanila

we definitely could use remote connections but, in an environment that prohibit ssh, do you think allowing remote cib connection is not even more dangerous? I kind of like the limited capability of an xinetd frontend which just output data and allow not modification.

y-trudeau avatar Sep 19 '14 17:09 y-trudeau

That's a good point, I wonder though the portability of xinetd? Remote CIB connections just appeals to me as its builtin :-)

dotmanila avatar Sep 20 '14 04:09 dotmanila

remote cib access can be configured with readonly ACL, I'll look into this.

y-trudeau avatar Sep 30 '14 17:09 y-trudeau

Rumor has it that @dotmanila has a non-root ssh implementation with sudo almost ready as intermediate measure :)

grypyrg avatar Oct 13 '14 07:10 grypyrg

Checking @dotmanila code right now

y-trudeau avatar Mar 02 '15 19:03 y-trudeau

@dotmanila code has been merged in 1.0.0, I'll explore the possibility of using pacemaker directly with ACL

y-trudeau avatar Apr 01 '15 14:04 y-trudeau