services / Google Cloud / Kubernetes Deployments
Control Kubernetes Deployment objects in a given cluster.
Deployments are declarative updates to Kubernetes Pods and ReplicaSets. They provide an abstraction layer that allows services to discover and connect to pods running within a Deployment. Applications can scale, load balance, and seamlessly handle changes in the underlying pod instances. Access to Deployments is sensitive because they are a primary interface for controlling applications running on Kubernetes. A Deployment specifies the container image to run, and may lead to arbitrary code execution in the cluster. A good mitigation strategy is to make Kubernetes clusters private, which effectively disables pulling images over the internet. Binary Authorization in GKE is an additional layer of security to defend against supply chain attacks. Secondly, creating or updating the replica count of Deployments drains the limited resources available to other Kubernetes workloads.
container.deployments.get
Describes detailed metadata about the Deployment, and Pods and Containers in it, such as ports, IP address, replicas, attached volumes, containers and the images they are running.
Risks
Scope: MEDIUM
This privilege may grant access to confidential data, or its exploit can incur operational cost.
Links
Contributed by P0 Security