Validate and sanitize input to the OperatingSystemConfiguration
#144
Labels
area/os
Operation system related
kind/enhancement
Enhancement, improvement, extension
os/suse-chost
Related to SUSE Container Host OS
How to categorize this issue?
/area os
/kind enhancement
/os suse-chost
What would you like to be added:
For this extension, when using an OS image of type
memoryone-chost
, it is possible to supply configuration parameters by means of anOperatingSystemConfiguration
.Right now, this configuration only supports the fields
memoryTopology
andsystemMemory
but both fields are strings. This comes with two drawbacks:memoryTopology
which will be treated as an integer), the extension will fail to unmarshal this YAML into its corresponding go structs. This happens fairly late in tthe Shoot reconcilation process ultimately causing it to fail and affects new as well as existing clusters;
(something likememoryTopology: "2;feature_enable=0x4"
- we already saw that in the wild). Since these values ultimately end up in the user-data that gets supplied to the cloud-providers, not sanitizing the input is a potential security risk.As a result, this extensions should provide an input validation that will reject an input that is invalid or potentially malicious so that it gets caught early and does not interfere with the reconcilation of Shoot clusters.
Why is this needed:
explained above
The text was updated successfully, but these errors were encountered: