RousselTMLEARNING

Observability

Security Posture Management in Dynatrace

Assessing Kubernetes compliance with Dynatrace Security Posture Management: standards (CIS, NIST, DISA STIG…), configuration collection, passed and failed rules, prioritization, remediation as code and tracking over time.

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.

Security Posture Management

Standards #

StandardContent
CIS Kubernetes Benchmarkconfiguration best practices for control plane, nodes and workloads
NIST, DISA STIGsecurity requirements for regulated environments
Sector requirementsdepending 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 #

Compliance cycle
  1. Choose the right standard and check the compliance rate per cluster.
  2. Sort failed rules by severity and number of affected resources.
  3. For each rule, read the rationale and recommended fix, then fix in code (manifests, Helm charts, admission policies), not by hand.
  4. Track the compliance rate over time and make it a team objective.

Common rule examples #

FindingFix
privileged container or privilege escalationsecurityContext: { privileged: false, allowPrivilegeEscalation: false }
container running as rootrunAsNonRoot: true, dedicated user
service account with broad rightsminimal 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 status
  • kubectl -n dynatrace get ds : node configuration collector
  • fetch security.events | summarize count(), by: { event.type } : explore findings in Grail
  • runAsNonRoot: 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.

Related articles

Time-based vs event-based SLO: understanding, computing and choosing (with the Qonto example)

Differences between time-based SLOs (time slices, uptime) and event-based SLOs (good events over total): defi…

The observability trilemma: cost, completeness and performance, and how solutions resolve it

Understanding the observability trilemma (cost, data completeness, query performance), its three trade-offs, …

Accessing the Dynatrace playground and getting started

The Dynatrace playground is a demo environment full of real data: how to access it, what it allows and does n…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!