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

AliasBasedTokenStateService does not revoke all aliases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.6.0
    • Server
    • None

    Description

      While testing KNOX-2624 with AliasBasedTokenStateService I figured that removing (revoking) a token ended up removing the 'token' and 'token-max' aliases but the 'token-iss' and 'token-meta' aliases remained in the credential store.

       

      Steps to reproduce:

      • start the Knox Gateway w/o changing gateway-site.xml
      • generate a token on the tokengen UI
      • revoke that token on the token management UI
      • list the keystore content:
        keytool -list -keystore data/security/keystores/__gateway-credentials.jceks -storetype jceks -storepass ***
      81d9337d-ac69-427f-aefc-fb668784763e--iss, Jul 9, 2021, SecretKeyEntry, 
      81d9337d-ac69-427f-aefc-fb668784763e--meta, Jul 9, 2021, SecretKeyEntry, 
      knox.token.hash.key, Jul 8, 2021, SecretKeyEntry, 

      Attachments

        Issue Links

          Activity

            People

              smolnar Sandor Molnar
              smolnar Sandor Molnar
              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 - 1h 10m
                  1h 10m