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