Rancher accepts negative values in cluster creation dialogue #13067
Labels
area/clusterprovisioningv2
area/form-validation
area/harvester
JIRA
kind/bug
priority/1
QA/dev-automation
Issues that engineers have written automation around so QA doesn't have look at this
regression
status/backport-candidate
Milestone
Internal reference: SURE-9603
Reported in 2.10.1
Issue description:
You can enter a negative value or zero in cpu/memory/disk fields of cluster creation dialogue which can lead to DOS of Rancher application. This is not possible in 2.8.x, but 2.9.x and 2.10.x are missing input validation.
Business impact:
By entering negative/zero values in cluster creation, Rancher application can become unavailable.
Troubleshooting steps:
Support reproduced with Harvester. In cluster management, create a cluster and enter values in cpu/memory/disk. If negative value is entered in machine count, the Harvester mutation webhook catches it and Rancher reports an error (see screenshots). In other cases it starts creating pods in fleet-default that error out with:
This goes on until Rancher is not available. Support reported also crashes of the Rancher pods
Repro steps:
Workaround:
None
Actual behavior:
It is possible to enter zero or negative values in cluster creation fields
Expected behavior:
It is not possible to enter zero or negative values in cluster creation fields
Additional notes:
Interrupt able to reproduce this issue in both harvester and digital ocean clusters.
The text was updated successfully, but these errors were encountered: