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

Unlimited token generation - Wrong expiration time is shown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • TokenGenerationUI
    • None

    Description

      Steps to reproduce

      • set the knox.token.ttl to -1 in the homepage topology for the KNOXTOKEN service
      • set knox.token.lifespan.input.enabled = false in the homepage topology for the KNOXTOKEN service

      Actual results

      With KNOX-3017 in place, the token is generated, but the expiration is wrong, see attached screenshots.
      In addition to this UI bug, the background reaper thread removes this token the next time it's triggered. This is also incorrect: unlimited tokens should never be removed automatically as they never expire.

      Expected result

      Token expiration should indicate an unlimited lifespan and unlimited tokens should not be revoked automatically.

      Attachments

        1. Screenshot 2024-03-11 at 14.25.27.png
          194 kB
          Sandor Molnar
        2. Screenshot 2024-03-11 at 14.25.04.png
          493 kB
          Sandor Molnar

        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 - 20m
                  20m