[
https://issues.apache.org/jira/browse/NIFI-11252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17700857#comment-17700857
]
ASF subversion and git services commented on NIFI-11252:
--------------------------------------------------------
Commit dfc031f0da5898d4c5c552fc0ba2b5af6583b458 in nifi's branch
refs/heads/main from Ryan Van Den Bos
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=dfc031f0da ]
NIFI-11252 Added OIDC Client Secret to sensitive Registry properties
This closes #7044
Signed-off-by: David Handermann <[email protected]>
> OIDC secret properties that are encrypted by default are not being decrypted
> in Nifi Registry
> ---------------------------------------------------------------------------------------------
>
> Key: NIFI-11252
> URL: https://issues.apache.org/jira/browse/NIFI-11252
> Project: Apache NiFi
> Issue Type: Bug
> Components: NiFi Registry
> Affects Versions: 1.20.0
> Reporter: Ryan
> Priority: Major
> Fix For: 1.21.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Since upgrading to 1.20.0 from 1.16.2 I have been getting the following
> error: {{Unable to exchange authorization for ID token: An error occurred
> while invoking the Token endpoint: Invalid client secret}}
> In version 1.20.0 {{nifi.registry.security.user.oidc.client.secret}} has been
> added to the default [list of
> properties|https://github.com/apache/nifi/blob/main/nifi-toolkit/nifi-toolkit-encrypt-config/src/main/groovy/org/apache/nifi/toolkit/encryptconfig/util/NiFiRegistryPropertiesEncryptor.groovy#L44]
> that are encrypted by the Nifi Toolkit's property encryption tool, however,
> it has not been added to the
> [ProtectedNiFiRegistryProperties|https://github.com/apache/nifi/blob/main/nifi-registry/nifi-registry-core/nifi-registry-properties-loader/src/main/java/org/apache/nifi/registry/properties/ProtectedNiFiRegistryProperties.java#L54]
> file which is used to read and decrypt these properties.
> This results in the encrypted string being passed to the OIDC provider
> resulting in the error above.
> I have gotten around this issue for the time being by setting the following
> property.
> {code:java}
> nifi.registry.sensitive.props.additional.keys=nifi.registry.security.user.oidc.client.secret
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)