You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my perspective this rules make nearly no sense at all. StatefulSets in Kubernetes are meant to store state.
A StatefulSet without storage would be a bigger indication for a missuse than one that has storage.
The "Code Sample without Vulnerability" also doesn't work as a volume needs to have storage set. Applying the yaml to a cluster will give the following errors events:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedCreate 5s (x12 over 16s) statefulset-controller create Claim www-web2-0 for Pod web2-0 in StatefulSet web2 failed error: PersistentVolumeClaim "www-web2-0" is invalid: spec.resources[storage]: Required value
Warning FailedCreate 5s (x12 over 16s) statefulset-controller create Pod web2-0 in StatefulSet web2 failed error: failed to create PVC www-web2-0: PersistentVolumeClaim "www-web2-0" is invalid: spec.resources[storage]: Required value
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
While integrating kics, I've stumbled across this query/rule https://docs.kics.io/latest/queries/kubernetes-queries/8cf4671a-cf3d-46fc-8389-21e7405063a2/
From my perspective this rules make nearly no sense at all. StatefulSets in Kubernetes are meant to store state.
A StatefulSet without storage would be a bigger indication for a missuse than one that has storage.
The "Code Sample without Vulnerability" also doesn't work as a volume needs to have storage set. Applying the yaml to a cluster will give the following errors events:
Beta Was this translation helpful? Give feedback.
All reactions