-
Notifications
You must be signed in to change notification settings - Fork 62
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
Validate LastUsedAt for Token and ClusterAuthToken #520
Validate LastUsedAt for Token and ClusterAuthToken #520
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine. Feel free to ignore all my remarks, as they're all nits.
d4fd383
db74631
to
6d59d44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes looking ok
Issue:
rancher/rancher#45732
Related work
This is #480 (re)opened against the main branch. An original PR was opened against and erroneously merged to release/v0.5.
Problem
A new optional field
lastUsedAt
was added to Token and ClusterAuthToken of typemetav1.Time
.Solution
Validate that if set the
lastUsedAt
field of Token and ClusterAuthToken contains a valid RFC3339 date time value.CheckList