You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/06/23 09:12:00 UTC

[jira] [Commented] (KNOX-2747) RemoteAliasService generates password without checking if it already exists

    [ https://issues.apache.org/jira/browse/KNOX-2747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17557911#comment-17557911 ] 

ASF subversion and git services commented on KNOX-2747:
-------------------------------------------------------

Commit e2bfa1535317186c3e7b69de188f998aeb864431 in knox's branch refs/heads/dependabot/npm_and_yarn/knox-token-management-ui/minimist-1.2.6 from Attila Magyar
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=e2bfa1535 ]

KNOX-2747 RemoteAliasService generates password without checking if it already exists (#581)



> RemoteAliasService generates password without checking if it already exists
> ---------------------------------------------------------------------------
>
>                 Key: KNOX-2747
>                 URL: https://issues.apache.org/jira/browse/KNOX-2747
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Attila Magyar
>            Assignee: Attila Magyar
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> RemoteAliasService:
> {code}
>     /* Generate a new password  */
>     if (generate) {
>       generateAliasForCluster(clusterName, alias);
>     }
> {code}
> DefaultAliasService checks first
> {code}
>       credential = keystoreService.getCredentialForCluster(clusterName, alias);
>       if (credential == null && generate) {
>         generateAliasForCluster(clusterName, alias);
>         credential = keystoreService.getCredentialForCluster(clusterName, alias);
>       }
> {code}
> This causes the Pac4jDispatcherFilter to regenerate the password at each topology change.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)