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

Validate LastUsedAt for Token and ClusterAuthToken #520

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

pmatseykanets
Copy link
Contributor

@pmatseykanets pmatseykanets commented Oct 8, 2024

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 type metav1.Time.

Solution

Validate that if set the lastUsedAt field of Token and ClusterAuthToken contains a valid RFC3339 date time value.

CheckList

  • Test
  • Docs

crobby
crobby previously approved these changes Oct 8, 2024
andreas-kupries
andreas-kupries previously approved these changes Oct 8, 2024
docs.md Show resolved Hide resolved
docs.md Show resolved Hide resolved
ericpromislow
ericpromislow previously approved these changes Oct 8, 2024
Copy link
Contributor

@ericpromislow ericpromislow left a 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.

Copy link
Contributor

@ericpromislow ericpromislow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@andreas-kupries andreas-kupries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes looking ok

@pmatseykanets pmatseykanets merged commit 7faaa62 into rancher:main Oct 9, 2024
2 checks passed
@pmatseykanets pmatseykanets deleted the validate-token-lastusedat branch October 9, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants