You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by th...@apache.org on 2019/10/02 15:48:13 UTC

[nifi-registry] branch master updated: NIFIREG-323 Clear secret key when auto restarting in order to obtain new secret key from the NiFi Registry process

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

thenatog pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi-registry.git


The following commit(s) were added to refs/heads/master by this push:
     new a20694a  NIFIREG-323 Clear secret key when auto restarting in order to obtain new secret key from the NiFi Registry process
     new 6b9b6b3  Merge pull request #233 from bbende/NIFIREG-323
a20694a is described below

commit a20694a243fb6eae2573ee5af84bd069b77e1876
Author: Bryan Bende <bb...@apache.org>
AuthorDate: Mon Sep 30 15:13:19 2019 -0400

    NIFIREG-323 Clear secret key when auto restarting in order to obtain new secret key from the NiFi Registry process
---
 .../main/java/org/apache/nifi/registry/bootstrap/RunNiFiRegistry.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nifi-registry-core/nifi-registry-bootstrap/src/main/java/org/apache/nifi/registry/bootstrap/RunNiFiRegistry.java b/nifi-registry-core/nifi-registry-bootstrap/src/main/java/org/apache/nifi/registry/bootstrap/RunNiFiRegistry.java
index e7a46b7..af11fa4 100644
--- a/nifi-registry-core/nifi-registry-bootstrap/src/main/java/org/apache/nifi/registry/bootstrap/RunNiFiRegistry.java
+++ b/nifi-registry-core/nifi-registry-bootstrap/src/main/java/org/apache/nifi/registry/bootstrap/RunNiFiRegistry.java
@@ -1055,6 +1055,7 @@ public class RunNiFiRegistry {
                     }
 
                     defaultLogger.warn("Apache NiFi Registry appears to have died. Restarting...");
+                    secretKey = null;
                     process = builder.start();
                     handleLogging(process);