subresource
A Kubernetes API endpoint under an object, such as a pod's exec, log or status, with its own permissions.
In more detail
Its path adds a name after the object, such as /pods/web/exec. Audit queries select objectRef.subresource == "exec" to find shells opened inside pods, and RBAC can grant pods/exec separately from pods.
Related terms
- kubectl exec — The kubectl command that runs a command, such as a shell, inside a running container.
- Kubernetes audit policy — The rules telling the Kubernetes API server what to record for each request, from None through Metadata and Request to RequestResponse.
Taught in
- Allowed Registries: Admission That Refuses Images — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Audit Policy: Choosing What The Cluster Remembers — Certified Kubernetes Security Specialist (CKS) Exam Prep
- CloudTrail Logging, Integrity Validation & Athena — Cloud Security & DevSecOps Engineering
- Who Read The Gateway Key? Audit Logging — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- One Pod Away: Network Attackers And Sensitive Data — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep