Skip to content

Conversation

@andreas-kupries
Copy link
Contributor

@andreas-kupries andreas-kupries commented Sep 25, 2025

Issue:

rancher/rancher#49041

Being on main this PR is for 2.13-to-be.

Associated Rancher PR is rancher/rancher#52103

Problem

The webhook checked new quotas against old used limit information.
This ignored the possibility that the users may supply bogus used-limit data, for example on project creation.
And further ignored that parts of the system make changes to used-limits.
With bogus used-limit in the project setting this back to good information fails because of the validation failure triggered by the use of the old bad data.

Solution

The webhook now checks the entire new project state, quotas and used-limit for consistency.

CheckList

  • Test - additional unit tests
  • Docs - no change, behaviour was wrong, not matching the docs

@andreas-kupries andreas-kupries self-assigned this Sep 25, 2025
@andreas-kupries andreas-kupries requested a review from a team as a code owner September 25, 2025 13:21
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.

looks sensible

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