Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Key Expired date doesn't shows right at the first time when login as standard user #4863

Closed
xibuka opened this issue Feb 14, 2021 · 4 comments
Assignees
Milestone

Comments

@xibuka
Copy link

xibuka commented Feb 14, 2021

What kind of request is this (question/bug/enhancement/feature request):
bug

Steps to reproduce (least amount of steps as possible):

  1. log in as a standard user.
  2. create a new API key with an expired date.
    image
  3. Close the token/pass page and go back to the API & Keys page

Result:
The Expired column shows Never
image

Other details that may be helpful:

  • After a page refresh, the Expired column shows right date.

image

  • Admin users don't have this issue.

Environment information

  • Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
    v2.4.13

  • Installation option (single install/HA):
    single docker install

gz#14905

@xibuka
Copy link
Author

xibuka commented Jul 29, 2021

this issue also happened at rancher master-be7cdb89dea80ba70bbaa4dd78a3813c4f102da1-head.
which is a 2.6.x UI.

image

A page refresh can fix it.

image

@gaktive gaktive transferred this issue from rancher/rancher Jan 5, 2022
@gaktive gaktive added this to the v2.6.4 milestone Jan 5, 2022
@gaktive
Copy link
Member

gaktive commented Jan 5, 2022

Internal reference: SURE-2768

@richard-cox
Copy link
Member

Tagging relevant backend issue rancher/rancher#31509

@brudnak
Copy link
Member

brudnak commented Feb 7, 2022

My checks PASSED

Reproduction Environment

Component Version / Type
Rancher version v2.6.3
Rancher cluster type Docker
Docker version 20.10.7, build 20.10.7-0ubuntu5~20.04.2
Helm version v2.16.8-rancher1
Downstream cluster type not applicable
Downstream K8s version not applicable
Browser type Firefox
Browser version 96.0.3 (64-bit)

Reproduction steps

  1. Logged in as a Standard User
  2. Starting from the default Rancher homepage /dashboard/home
  3. Click the user icon in the top right corner of the screen -> click Account & API keys
  4. Click Create API key & fill out the form:
    • Description: MY_TOKEN
    • Scope: No Scope
    • Automatically expire: A year from now
    • Click Create
    • Click Done at the screen where token is displayed
  5. Observe the row of information about the newly created API token

RESULT

Even though expiration was set for 1 year. The expiration date says Expires: Never

EXPECTED RESULT

For the correct expiration time to be displayed without refreshing the page

WORKAROUND

Refresh the page and the correct expiration countdown is displayed


Validation Environment

Component Version / Type
Rancher version v2.6-948355cc596b8466a77aec5276640425a5935852-head
Rancher cluster type Docker
Docker version 20.10.7, build 20.10.7-0ubuntu5~20.04.2
Helm version v2.16.8-rancher1
Downstream cluster type not applicable
Downstream K8s version not applicable
Browser type Firefox
Browser version 96.0.3 (64-bit)

Validation steps

  1. Logged in as a Standard User
  2. Starting from the default Rancher homepage /dashboard/home
  3. Click the user icon in the top right corner of the screen -> click Account & API keys
  4. Click Create API key & fill out the form:
    • Description: MY_TOKEN
    • Scope: No Scope
    • Automatically expire: A year from now
    • Click Create
    • Click Done at the screen where token is displayed
  5. Observe the row of information about the newly created API token

RESULT

The Expires column correctly display the tokens information without having to refresh the page

Additional Info

@brudnak brudnak closed this as completed Feb 7, 2022
@zube zube bot removed the [zube]: Done label May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants