homek8s/infrastructure/controlplane/audit
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lance Walters 09faa710c7 audit(policy): drop bodies for secret reads, keep them for writes
The log was a second plaintext copy of every secret that had been read: of 3,527
secret events on the live log, 2,574 carried .data in responseObject (1,606 were
plain get). A get is fully described by objectRef + user + sourceIPs +
responseStatus; the body adds a credential and no forensic value, and root reading
the root-only log produces no audit event at all.

- rule 4a: secrets get/list/watch -> Metadata
- rule 4b: secrets create/update/patch/delete/deletecollection -> RequestResponse
  (the tampering verbs; the body there is the evidence)
- everything else untouched: pods/exec, tokenreviews, RBAC/cert writes, proxies

docs: rule table, read/write rationale, sensitivity + purge notes.
2026-11-27 00:49:13 -05:00
..
audit-policy.yaml audit(policy): drop bodies for secret reads, keep them for writes 2026-11-27 00:49:13 -05:00
install-audit.sh controlplane: enable kube-apiserver audit logging (audit F1) 2026-11-27 00:20:29 -05:00