Gergely Novák created NIFI-7219:
-----------------------------------

             Summary: Authentication fails if nifi.security.keyPasswd is empty
                 Key: NIFI-7219
                 URL: https://issues.apache.org/jira/browse/NIFI-7219
             Project: Apache NiFi
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 1.11.3
            Reporter: Gergely Novák


nifi.properties:
{code}
nifi.security.keyPasswd=
{code}

The 
[documentation|https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#security_configuration]
 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
{code}
Unknown user with identity 'anonymous'. Contact the system administrator.
{code}

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to