Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.3.0
Description
If the NiFi process is killed and autoRestart is enabled in the bootstrap process (RunNiFi.java) (enabled by default except when in run mode) and the instance is using encrypted configuration files, the sensitive.key file which contains the master encryption key is no longer available when restart occurs. This results in the application exiting.
To resolve this, the logic to prepare and generate the sensitive key file should be extracted to a method and invoked during initial start and during the auto-restart loop at https://github.com/apache/nifi/blob/master/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java#L1159 .