Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2747

RemoteAliasService generates password without checking if it already exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      RemoteAliasService:

          /* Generate a new password  */
          if (generate) {
            generateAliasForCluster(clusterName, alias);
          }
      

      DefaultAliasService checks first

            credential = keystoreService.getCredentialForCluster(clusterName, alias);
            if (credential == null && generate) {
              generateAliasForCluster(clusterName, alias);
              credential = keystoreService.getCredentialForCluster(clusterName, alias);
            }
      

      This causes the Pac4jDispatcherFilter to regenerate the password at each topology change.

      Attachments

        Issue Links

          Activity

            People

              amagyar Attila Magyar
              amagyar Attila Magyar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m