From 1c23cc7cd93b737a1153fe1a6f5a168b40219d6a Mon Sep 17 00:00:00 2001
From: Richard Carback <rick@elixxir.io>
Date: Wed, 3 Jul 2019 11:31:35 -0400
Subject: [PATCH] Update gateway configurations for latest dispatch versions

---
 basice2e/gateway-1.yaml | 13 ++++++++-----
 basice2e/gateway-2.yaml | 13 ++++++++-----
 basice2e/gateway-3.yaml | 13 ++++++++-----
 basice2e/gateway-4.yaml | 13 ++++++++-----
 basice2e/gateway-5.yaml | 13 ++++++++-----
 5 files changed, 40 insertions(+), 25 deletions(-)

diff --git a/basice2e/gateway-1.yaml b/basice2e/gateway-1.yaml
index f11f062..1237a08 100644
--- a/basice2e/gateway-1.yaml
+++ b/basice2e/gateway-1.yaml
@@ -1,5 +1,6 @@
+# START YAML ===
 ################################################################################
-## Copyright © 2018 Privategrity Corporation                                   #
+## Copyright © 2019 Privategrity Corporation                                   #
 ##                                                                             #
 ## All rights reserved.                                                        #
 ################################################################################
@@ -7,6 +8,7 @@
 # Output log file
 log: "results/gateways/gateway-1.log"
 
+# Used for debugging
 verbose: "true"
 
 # The cMix nodes in the network
@@ -16,8 +18,6 @@ cMixNodes:
  - "localhost:50002"
  - "localhost:50003"
  - "localhost:50004"
-# The index to which this Gateway is attached in the cMixNodes list
-GatewayNodeIndex: 0
 
 # The listening address of this gateway
 GatewayAddress: "localhost:8440"
@@ -26,13 +26,16 @@ GatewayAddress: "localhost:8440"
 # deleted from the user's message queue
 MessageTimeout: 1800
 
+# === REQUIRED FOR ENABLING TLS ===
+# Path to the gateway private key file
 keyPath: "../keys/gateway.cmix.rip.key"
+# Path to the gateway certificate file
 certPath: "../keys/gateway.cmix.rip.crt"
+# Path to the gateway certificate file
 serverCertPath: "../keys/cmix.rip.crt"
 
 ### Anything below this line is to be deprecated ###
 
-# Number of nodes in the cMix Network
-
 # Batch size of the cMix Network (to be deprecated)
 batchSize: 4
+# === END YAML
diff --git a/basice2e/gateway-2.yaml b/basice2e/gateway-2.yaml
index b556c48..b0c1dde 100644
--- a/basice2e/gateway-2.yaml
+++ b/basice2e/gateway-2.yaml
@@ -1,5 +1,6 @@
+# START YAML ===
 ################################################################################
-## Copyright © 2018 Privategrity Corporation                                   #
+## Copyright © 2019 Privategrity Corporation                                   #
 ##                                                                             #
 ## All rights reserved.                                                        #
 ################################################################################
@@ -7,6 +8,7 @@
 # Output log file
 log: "results/gateways/gateway-2.log"
 
+# Used for debugging
 verbose: "true"
 
 # The cMix nodes in the network
@@ -16,8 +18,6 @@ cMixNodes:
  - "localhost:50002"
  - "localhost:50003"
  - "localhost:50004"
-# The index to which this Gateway is attached in the cMixNodes list
-GatewayNodeIndex: 1
 
 # The listening address of this gateway
 GatewayAddress: "localhost:8441"
@@ -26,13 +26,16 @@ GatewayAddress: "localhost:8441"
 # deleted from the user's message queue
 MessageTimeout: 1800
 
+# === REQUIRED FOR ENABLING TLS ===
+# Path to the gateway private key file
 keyPath: "../keys/gateway.cmix.rip.key"
+# Path to the gateway certificate file
 certPath: "../keys/gateway.cmix.rip.crt"
+# Path to the gateway certificate file
 serverCertPath: "../keys/cmix.rip.crt"
 
 ### Anything below this line is to be deprecated ###
 
-# Number of nodes in the cMix Network
-
 # Batch size of the cMix Network (to be deprecated)
 batchSize: 4
+# === END YAML
diff --git a/basice2e/gateway-3.yaml b/basice2e/gateway-3.yaml
index cc775fd..dccf68d 100644
--- a/basice2e/gateway-3.yaml
+++ b/basice2e/gateway-3.yaml
@@ -1,5 +1,6 @@
+# START YAML ===
 ################################################################################
-## Copyright © 2018 Privategrity Corporation                                   #
+## Copyright © 2019 Privategrity Corporation                                   #
 ##                                                                             #
 ## All rights reserved.                                                        #
 ################################################################################
@@ -7,6 +8,7 @@
 # Output log file
 log: "results/gateways/gateway-3.log"
 
+# Used for debugging
 verbose: "true"
 
 # The cMix nodes in the network
@@ -16,8 +18,6 @@ cMixNodes:
  - "localhost:50002"
  - "localhost:50003"
  - "localhost:50004"
-# The index to which this Gateway is attached in the cMixNodes list
-GatewayNodeIndex: 2
 
 # The listening address of this gateway
 GatewayAddress: "localhost:8442"
@@ -26,13 +26,16 @@ GatewayAddress: "localhost:8442"
 # deleted from the user's message queue
 MessageTimeout: 1800
 
+# === REQUIRED FOR ENABLING TLS ===
+# Path to the gateway private key file
 keyPath: "../keys/gateway.cmix.rip.key"
+# Path to the gateway certificate file
 certPath: "../keys/gateway.cmix.rip.crt"
+# Path to the gateway certificate file
 serverCertPath: "../keys/cmix.rip.crt"
 
 ### Anything below this line is to be deprecated ###
 
-# Number of nodes in the cMix Network
-
 # Batch size of the cMix Network (to be deprecated)
 batchSize: 4
+# === END YAML
diff --git a/basice2e/gateway-4.yaml b/basice2e/gateway-4.yaml
index 01a4c87..a0630ae 100644
--- a/basice2e/gateway-4.yaml
+++ b/basice2e/gateway-4.yaml
@@ -1,5 +1,6 @@
+# START YAML ===
 ################################################################################
-## Copyright © 2018 Privategrity Corporation                                   #
+## Copyright © 2019 Privategrity Corporation                                   #
 ##                                                                             #
 ## All rights reserved.                                                        #
 ################################################################################
@@ -7,6 +8,7 @@
 # Output log file
 log: "results/gateways/gateway-4.log"
 
+# Used for debugging
 verbose: "true"
 
 # The cMix nodes in the network
@@ -16,8 +18,6 @@ cMixNodes:
  - "localhost:50002"
  - "localhost:50003"
  - "localhost:50004"
-# The index to which this Gateway is attached in the cMixNodes list
-GatewayNodeIndex: 3
 
 # The listening address of this gateway
 GatewayAddress: "localhost:8443"
@@ -26,13 +26,16 @@ GatewayAddress: "localhost:8443"
 # deleted from the user's message queue
 MessageTimeout: 1800
 
+# === REQUIRED FOR ENABLING TLS ===
+# Path to the gateway private key file
 keyPath: "../keys/gateway.cmix.rip.key"
+# Path to the gateway certificate file
 certPath: "../keys/gateway.cmix.rip.crt"
+# Path to the gateway certificate file
 serverCertPath: "../keys/cmix.rip.crt"
 
 ### Anything below this line is to be deprecated ###
 
-# Number of nodes in the cMix Network
-
 # Batch size of the cMix Network (to be deprecated)
 batchSize: 4
+# === END YAML
diff --git a/basice2e/gateway-5.yaml b/basice2e/gateway-5.yaml
index bddcb76..4c60205 100644
--- a/basice2e/gateway-5.yaml
+++ b/basice2e/gateway-5.yaml
@@ -1,5 +1,6 @@
+# START YAML ===
 ################################################################################
-## Copyright © 2018 Privategrity Corporation                                   #
+## Copyright © 2019 Privategrity Corporation                                   #
 ##                                                                             #
 ## All rights reserved.                                                        #
 ################################################################################
@@ -7,6 +8,7 @@
 # Output log file
 log: "results/gateways/gateway-5.log"
 
+# Used for debugging
 verbose: "true"
 
 # The cMix nodes in the network
@@ -16,8 +18,6 @@ cMixNodes:
  - "localhost:50002"
  - "localhost:50003"
  - "localhost:50004"
-# The index to which this Gateway is attached in the cMixNodes list
-GatewayNodeIndex: 4
 
 # The listening address of this gateway
 GatewayAddress: "localhost:8444"
@@ -26,13 +26,16 @@ GatewayAddress: "localhost:8444"
 # deleted from the user's message queue
 MessageTimeout: 1800
 
+# === REQUIRED FOR ENABLING TLS ===
+# Path to the gateway private key file
 keyPath: "../keys/gateway.cmix.rip.key"
+# Path to the gateway certificate file
 certPath: "../keys/gateway.cmix.rip.crt"
+# Path to the gateway certificate file
 serverCertPath: "../keys/cmix.rip.crt"
 
 ### Anything below this line is to be deprecated ###
 
-# Number of nodes in the cMix Network
-
 # Batch size of the cMix Network (to be deprecated)
 batchSize: 4
+# === END YAML
-- 
GitLab