1. Security posture #
A compliant configuration, and proven.
The principle #
Good to know : Dynatrace SaaS, third-generation platform (Grail, AppEngine). The apps mentioned are in the app launcher; some depend on the licence (Dynatrace Platform Subscription).
Most Kubernetes security incidents come from misconfigurations: privileged containers, overpowered service accounts, poorly protected kubelet, missing network policies. The Security Posture Management app continuously assesses clusters and their nodes against recognized standards and lists passed and failed rules.
Standards #
| Standard | Content |
|---|---|
| CIS Kubernetes Benchmark | configuration best practices for control plane, nodes and workloads |
| NIST, DISA STIG | security requirements for regulated environments |
| Sector requirements | depending on the standards offered by your version (for example operational resilience for finance) |
Good to know : The exact list of available standards depends on the version: check it in the app.
2. Implementing #
Collecting configurations.
Enabling on a cluster #
# DynaKube: enable Kubernetes security posture collection (excerpt, depending on operator version)
apiVersion: dynatrace.com/v1beta5
kind: DynaKube
metadata: { name: prod, namespace: dynatrace }
spec:
apiUrl: https://<environment>.live.dynatrace.com/api
kspm: {} # Kubernetes Security Posture Management
templates:
kspmNodeConfigurationCollector: # reads node configuration (kubelet, files)
imageRef: { repository: public.ecr.aws/dynatrace/dynatrace-k8s-node-config-collector, tag: <version> }- The cluster must be monitored by the Dynatrace operator (DynaKube) with an ActiveGate for the Kubernetes API.
- The node configuration collector runs as a DaemonSet and reads node settings (kubelet, file permissions).
Watch out : DynaKube field names change with the operator version: start from the documentation example for your version.
3. Using the results #
From finding to fix.
The cycle #
- Choose the right standard and check the compliance rate per cluster.
- Sort failed rules by severity and number of affected resources.
- For each rule, read the rationale and recommended fix, then fix in code (manifests, Helm charts, admission policies), not by hand.
- Track the compliance rate over time and make it a team objective.
Common rule examples #
| Finding | Fix |
|---|---|
| privileged container or privilege escalation | securityContext: { privileged: false, allowPrivilegeEscalation: false } |
| container running as root | runAsNonRoot: true, dedicated user |
| service account with broad rights | minimal RBAC, automountServiceAccountToken: false if unused |
| kubelet anonymous authentication | --anonymous-auth=false |
4. Best practices #
Compliance as code.
Rules #
- Prevent regression: admission policies (Kyverno, Gatekeeper) aligned with the standard's rules.
- Create a ticket per failed rule and owning team with a workflow.
- Regularly export the compliance report for audits.
Commands to know #
Commands to know
kubectl -n dynatrace get dynakube: operator statuskubectl -n dynatrace get ds: node configuration collectorfetch security.events | summarize count(), by: { event.type }: explore findings in GrailrunAsNonRoot: true: common fix
Sources #
Based on the official Dynatrace documentation checked in November 2026: platform apps change every month, check labels, permissions and field names in your environment before relying on a detail.
