SAP-archive / karydia

Kubernetes Security Walnut
Other
77 stars 10 forks source link

Admission for pod security context #145

Closed dacappo closed 5 years ago

dacappo commented 5 years ago

Description

A new security setting karydia.gardener.cloud/podSecurityContext is introduced to set the SecurityContext of pods secure-by-default. When nobody is configured for this setting, the user and group id of a pod's containers is set to id 65534 resp. nobody. This is accomplished by mutating the SecurityContext of each pod that does not explicitly define a SecurityContext.

Checklist

Before submitting this PR, please make sure:

dacappo commented 5 years ago

Probably should add the new feature to the overview table in "docs/features.md" in the karydia admission section.

I agree with you that the feature is missing there. In fact, it can be seen as a part of the karydia admission feature - which itself isn't really a feature but a means to implement it. Probably we should restructure the entire features doc to give readers a better overview.