17b94a
From 1df830953b9a09404f9ca6a0539172e9f23ecbf4 Mon Sep 17 00:00:00 2001
17b94a
From: Sunny Kumar <sunkumar@redhat.com>
17b94a
Date: Wed, 17 Apr 2019 15:13:12 +0530
17b94a
Subject: [PATCH 112/124] geo-rep : fix incorrectly formatted authorized_keys
17b94a
17b94a
Problem :  While Geo-rep setup when creating an ssh authorized_keys
17b94a
           the geo-rep setup inserts an extra space before the "ssh-rsa" label.
17b94a
           This gets flagged by an enterprise customer's security scan as a
17b94a
           security violation.
17b94a
17b94a
Solution: Remove extra space in GSYNCD_CMD & TAR_CMD.
17b94a
17b94a
>Upstream patch: https://review.gluster.org/#/c/glusterfs/+/22246/
17b94a
>Change-Id: I956f938faef0e0883703bbc337b1dc2770e4a921
17b94a
>fixes: bz#1679401
17b94a
>Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
17b94a
17b94a
BUG: 1671862
17b94a
Change-Id: I194a2bddcf2ee9b8286b204f8c4da5c480a528b3
17b94a
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
17b94a
Reviewed-on: https://code.engineering.redhat.com/gerrit/168144
17b94a
Tested-by: RHGS Build Bot <nigelb@redhat.com>
17b94a
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
17b94a
---
17b94a
 geo-replication/src/peer_georep-sshkey.py.in | 4 ++--
17b94a
 1 file changed, 2 insertions(+), 2 deletions(-)
17b94a
17b94a
diff --git a/geo-replication/src/peer_georep-sshkey.py.in b/geo-replication/src/peer_georep-sshkey.py.in
17b94a
index 2196fd7..58696e9 100644
17b94a
--- a/geo-replication/src/peer_georep-sshkey.py.in
17b94a
+++ b/geo-replication/src/peer_georep-sshkey.py.in
17b94a
@@ -30,8 +30,8 @@ from prettytable import PrettyTable
17b94a
 
17b94a
 SECRET_PEM = "@GLUSTERD_WORKDIR@/geo-replication/secret.pem"
17b94a
 TAR_SSH_PEM = "@GLUSTERD_WORKDIR@/geo-replication/tar_ssh.pem"
17b94a
-GSYNCD_CMD = 'command="@GLUSTERFS_LIBEXECDIR@/gsyncd"  '
17b94a
-TAR_CMD = 'command="tar ${SSH_ORIGINAL_COMMAND#* }"  '
17b94a
+GSYNCD_CMD = 'command="@GLUSTERFS_LIBEXECDIR@/gsyncd" '
17b94a
+TAR_CMD = 'command="tar ${SSH_ORIGINAL_COMMAND#* }" '
17b94a
 COMMON_SECRET_FILE = "@GLUSTERD_WORKDIR@/geo-replication/common_secret.pem.pub"
17b94a
 
17b94a
 
17b94a
-- 
17b94a
1.8.3.1
17b94a