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

Authentication fails if nifi.security.keyPasswd is empty

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.11.3
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None

      Description

      nifi.properties:

      nifi.security.keyPasswd=
      

      The documentation says that "if not set, the value of nifi.security.keystorePasswd will be used." This is true until 1.11.2, but in 1.11.3 with the above setup the authentication fails.

      When using the API, every (replicated) call, e.g. /flow/current-user, fails with

      Unknown user with identity 'anonymous'. Contact the system administrator.
      

      When using the UI, it always redirects to /nifi/login and then says "You are already logged in."

      Both of the following solves the issue:

      • downgrading to 1.11.2
      • removing nifi.security.keyPasswd from nifi.properties completely

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thenatog Nathan Gough
                Reporter:
                GergelyNovak Gergely Novák
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: