-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
area/osOperator system relatedOperator system relatedkind/enhancementEnhancement, improvement, extensionEnhancement, improvement, extensionlifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.os/suse-chostRelated to SUSE Container Host OSRelated to SUSE Container Host OS
Description
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 an OperatingSystemConfiguration.
apiVersion: memoryone-chost.os.extensions.gardener.cloud/v1alpha1
kind: OperatingSystemConfiguration
memoryTopology: "2"
systemMemory: "6x"Right now, this configuration only supports the fields memoryTopology and systemMemory but both fields are strings. This comes with two drawbacks:
- Should someone provide a non-string input to one of the fields (i.e. an unquoted 2 for
memoryTopologywhich 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 - These fields can be used to inject arbitrary values by just seperating them via
;(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
Metadata
Metadata
Assignees
Labels
area/osOperator system relatedOperator system relatedkind/enhancementEnhancement, improvement, extensionEnhancement, improvement, extensionlifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.os/suse-chostRelated to SUSE Container Host OSRelated to SUSE Container Host OS