# How to collect Kubernetes compliance evidence for auditors

DevFeed: [How to collect Kubernetes compliance evidence for auditors](<https://devfeed.tech/articles/how-to-collect-kubernetes-compliance-evidence-for-auditors-119464.md>)

Original publisher: [Read original article](<https://nirmata.com/2026/11/03/how-to-collect-kubernetes-compliance-evidence-for-auditors/>)

Author: Ritesh Patel

Published: 2026-11-03T23:00:00Z

Content type: tutorial

Language: en

Sources: [Nirmata](<https://devfeed.tech/sources/nirmata.md>)

Topics: [audit](<https://devfeed.tech/topics/audit.md>), [Kyverno](<https://devfeed.tech/topics/kyverno.md>), [API Logging](<https://devfeed.tech/topics/api-logging.md>)

Tags: [audit](<https://devfeed.tech/tags/audit.md>), [audit-trail](<https://devfeed.tech/tags/audit-trail.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [continuous-compliance](<https://devfeed.tech/tags/continuous-compliance.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-security](<https://devfeed.tech/tags/kubernetes-security.md>), [kyverno](<https://devfeed.tech/tags/kyverno.md>), [kyverno-sharp-kubernetes](<https://devfeed.tech/tags/kyverno-sharp-kubernetes.md>), [policy-as-code](<https://devfeed.tech/tags/policy-as-code.md>)

## AI overview

Use Kyverno policy reports for the cluster's current rule results and kube-apiserver audit logs for recorded request activity; neither alone establishes control adequacy. Export reports on a schedule as dated, protected snapshots and retain policy sources, exception manifests, approvals, and a control-to-evidence mapping. Audit logging requires a policy with rules and both audit flags; static-Pod deployments need host mounts for policy and log files. Rule order matters because the first match sets the event's detail level, and logging increases API server memory use. Reports have no history, while audit logs do not show exception approvals. A `skip` can reflect unmet preconditions or an exception, so the result alone does not explain it. Enable PolicyExceptions with the documented flags and retain their approval records; the article says to use `policies.kyverno.io` because the legacy `kyverno.io` type is deprecated.

## Source excerpt

Pair Kyverno policy reports, which show current state, with the API server audit log, which shows history. Reports alone are not an audit trail by themselves.