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 #480

Conversation

andreas-kupries
Copy link
Contributor

@andreas-kupries andreas-kupries commented Aug 16, 2024

Issue:

rancher/rancher#45732

Related work

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

@andreas-kupries andreas-kupries self-assigned this Aug 16, 2024
@andreas-kupries andreas-kupries requested a review from a team as a code owner August 16, 2024 12:46
@andreas-kupries andreas-kupries changed the title Validate field Token.LastUsed Validate field Token.LastUsedAt Aug 16, 2024
@andreas-kupries andreas-kupries changed the base branch from main to release/v0.5 August 16, 2024 14:20
JonCrowther
JonCrowther previously approved these changes Aug 16, 2024
ericpromislow
ericpromislow previously approved these changes Aug 16, 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.

LGTM

Copy link
Contributor Author

@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.

Looks ok to me.

@pmatseykanets pmatseykanets changed the title Validate field Token.LastUsedAt Validate LastUsedAt for Token and ClusterAuthToken Oct 1, 2024
@pmatseykanets pmatseykanets requested a review from crobby October 2, 2024 16:35
Copy link
Contributor

@crobby crobby 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

@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 with the changes since last review

@pmatseykanets pmatseykanets merged commit 2d732bc into rancher:release/v0.5 Oct 8, 2024
2 checks passed
pmatseykanets added a commit to pmatseykanets/webhook that referenced this pull request Oct 8, 2024
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.

5 participants