You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by do...@apache.org on 2023/02/24 14:30:54 UTC

[accumulo-proxy] branch main updated: Make sure sharedSecret is set in ProxyServer (#78)

This is an automated email from the ASF dual-hosted git repository.

domgarguilo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo-proxy.git


The following commit(s) were added to refs/heads/main by this push:
     new 29d6068  Make sure sharedSecret is set in ProxyServer (#78)
29d6068 is described below

commit 29d60681423f1e9df75c2c9880a134cefa770049
Author: Dom G <do...@apache.org>
AuthorDate: Fri Feb 24 09:30:49 2023 -0500

    Make sure sharedSecret is set in ProxyServer (#78)
---
 src/main/java/org/apache/accumulo/proxy/ProxyServer.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/main/java/org/apache/accumulo/proxy/ProxyServer.java b/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
index a4a702b..54ad3e4 100644
--- a/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
+++ b/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
@@ -205,6 +205,9 @@ public class ProxyServer implements AccumuloProxy.Iface {
     }
 
     sharedSecret = props.getProperty("sharedSecret");
+    if (sharedSecret == null) {
+      throw new RuntimeException("The properties do not contain sharedSecret");
+    }
 
     serverType = tempServerType;