a3470f
From b67f788dfe5855c455c8f4b41fe8159a5b41c4bd Mon Sep 17 00:00:00 2001
a3470f
From: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
a3470f
Date: Mon, 21 Mar 2016 13:54:19 +0530
a3470f
Subject: [PATCH 04/74] rpc: set bind-insecure to off by default
a3470f
a3470f
commit 243a5b429f225acb8e7132264fe0a0835ff013d5 turn's 'ON'
a3470f
allow-insecure and bind-insecure by default.
a3470f
a3470f
Problem:
a3470f
Now with newer versions we have bind-insecure 'ON' by default.
a3470f
So, while upgrading subset of nodes from a trusted storage pool,
a3470f
nodes which have older versions of glusterfs will expect
a3470f
connection from secure ports only (since they still have
a3470f
bind-insecure off) thus they reject connection from upgraded
a3470f
nodes which now have insecure ports.
a3470f
a3470f
Hence we will run into connection issues between peers.
a3470f
a3470f
Solution:
a3470f
This patch will turn bind-insecure 'OFF' by default to avoid
a3470f
problem explained above.
a3470f
a3470f
Label: DOWNSTREAM ONLY
a3470f
a3470f
Change-Id: Id7a19b4872399d3b019243b0857c9c7af75472f7
a3470f
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/70313
a3470f
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
Tested-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
---
a3470f
 rpc/rpc-lib/src/rpc-transport.c | 4 ++--
a3470f
 1 file changed, 2 insertions(+), 2 deletions(-)
a3470f
a3470f
diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c
a3470f
index fc26f46..94880f4 100644
a3470f
--- a/rpc/rpc-lib/src/rpc-transport.c
a3470f
+++ b/rpc/rpc-lib/src/rpc-transport.c
a3470f
@@ -258,8 +258,8 @@ rpc_transport_load (glusterfs_ctx_t *ctx, dict_t *options, char *trans_name)
a3470f
                 else
a3470f
                         trans->bind_insecure = 0;
a3470f
         } else {
a3470f
-                /* By default allow bind insecure */
a3470f
-                trans->bind_insecure = 1;
a3470f
+                /* Turning off bind insecure by default*/
a3470f
+                trans->bind_insecure = 0;
a3470f
         }
a3470f
 
a3470f
 	ret = dict_get_str (options, "transport-type", &type);
a3470f
-- 
a3470f
1.8.3.1
a3470f