Kubernetes Manifests 1.35
Last reviewed Sep 6, 2026
Prompt Details
Prompt Composition
1prompt
- Kubernetes Manifests 1.35117 lines · 4.7K tokens
CWE Coverage
- 15
- 20
- 78
- 94
- 214
- 250
- 269
- 287
- 306
- 312
- 347
- 459
- 522
- 526
- 532
- 613
- 636
- 732
- 770
- 778
- 807
- 829
- 863
- 918
- 923
- 1395
Prompt Preview
Apply these rules to manifests targeting Kubernetes 1.35. Apply the secure coding prompt for each deployed application as well; Kubernetes policy, workload identity, network isolation, and application authorization are separate controls.
Namespace and policy boundaries
- Put production workloads in purpose-specific namespaces; never treat the
defaultnamespace or labels alone as a tenant boundary. - Apply
ResourceQuota,LimitRange, default-deny network policy, and admission policy to every workload namespace before admitting workloads. - Label namespaces with
pod-security.kubernetes.io/enforce: restrictedandpod-security.kubernetes.io/enforce-version: v1.35; use equivalently pinnedauditandwarnlabels during rollout. - Do not mistake
auditorwarnfor enforcement. Pod Security Admission enforces resulting Pods, not workload templates, so retain audit/warn checks and validate controller templates in CI. - Keep Pod Security Admission exemptions for usernames, RuntimeClasses, and namespaces exceptional and narrowly enumerated; an exemption skips enforce, audit, and warn evaluation. Do not exempt controller identities whose workloads untrusted users can create.
- Prevent application principals from creating namespaces or changing namespace security, network-selection, quota, and ownership labels.
- Have admission reject workloads in namespaces that are missing the required Pod Security, quota, and network-policy bootstrap rather than relying on operators to add controls later.
Service accounts and tokens
- Assign each workload a dedicated