XenitAB / gatekeeper-library

Collection of OPA Gatekeeper policies that can be used in your Kubernetes cluster.
MIT License
14 stars 7 forks source link

Disable a deployment from being able to update it's service account using noupdateserviceaccount #95

Open NissesSenap opened 1 year ago

NissesSenap commented 1 year ago

If someone get's in to a deployment with access to to update other deployments they shouldn't be able to update there own deployment and point to another service account. This is a simple way of escalating your access in a cluster.

https://github.com/open-policy-agent/gatekeeper-library/tree/master/library/general/noupdateserviceaccount