Skip to content

Conversation

@JonCrowther
Copy link
Contributor

Problem

The username validation currently gets bypassed with the manage-users verb.

Solution

Move the validation check for usernames above the manage-users check

CheckList

  • Test
  • Docs

@JonCrowther JonCrowther self-assigned this Aug 6, 2025
@JonCrowther JonCrowther requested a review from a team as a code owner August 6, 2025 19:33
@JonCrowther JonCrowther requested a review from crobby August 6, 2025 20:09
@JonCrowther JonCrowther merged commit 2bafe7a into rancher:main Aug 7, 2025
2 checks passed
@JonCrowther JonCrowther deleted the username-validation-ignores-manage-users-verb branch August 7, 2025 14:16
JonCrowther added a commit to JonCrowther/webhook that referenced this pull request Aug 8, 2025
JonCrowther added a commit that referenced this pull request Aug 8, 2025
* Add update validation for User.UserName (#943)

* Add update validation for User.UserName

* Fix unit test

* Move username validation to happen before manage-users check (#1016)
JonCrowther added a commit to JonCrowther/webhook that referenced this pull request Aug 11, 2025
* Add update validation for User.UserName (rancher#943)

* Add update validation for User.UserName

* Fix unit test

* Move username validation to happen before manage-users check (rancher#1016)
JonCrowther added a commit to JonCrowther/webhook that referenced this pull request Aug 11, 2025
* Add update validation for User.UserName (rancher#943)

* Add update validation for User.UserName

* Fix unit test

* Move username validation to happen before manage-users check (rancher#1016)
JonCrowther added a commit that referenced this pull request Aug 12, 2025
* Add update validation for User.UserName (#943)

* Add update validation for User.UserName

* Fix unit test

* Move username validation to happen before manage-users check (#1016)
JonCrowther added a commit that referenced this pull request Aug 12, 2025
* Add update validation for User.UserName (#943)

* Add update validation for User.UserName

* Fix unit test

* Move username validation to happen before manage-users check (#1016)
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.

3 participants