Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5754

bootstrap.conf not found in NiFiPropertiesLoader with custom conf.dir value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      N/A
    • Flags:
      Important

      Description

      Issue in NiFiPropertiesLoader when trying to find "nifi.bootstrap.sensitive.key=" 

      When starting the nifi service, $NIFI_HOME/conf/bootstrap.conf is used.  When NiFiPropertiesLoader attempts to decrypt nifi.properties it guesses that bootstrap.conf exists in the same directory as nifi.properties.  This is not true if "conf.dir" has been defined in bootstrap.conf.

      Apparent problem is on NiFiPropertiesLoader line 113. Method extractKeyFromBootstrapFile() should call extractKeyFromBootstrapFile("$NIFI_HOME/conf/bootstrap.conf") by default as the method comment indicates.  Instead it calls this method with an empty string resulting in an IOException on service startup if the conf.dir has been customized.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jody_desroches Jody DesRoches
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: