controlplane: enable kube-apiserver audit logging (audit F1) #46
Loading…
Reference in a new issue
No description provided.
Delete branch "controlplane/apiserver-audit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Audit F1 of the 2026-11-27 cluster netsec audit: the apiserver had no audit config at all.
Live on siriussec now —
--audit-policy-file+--audit-log-path(JSON, 100 MiB x 48, maxage 7d, compressed), policy at/etc/kubernetes/audit/audit-policy.yaml, log at/var/log/kubernetes/audit/audit.log.Measured volume: first cut (RequestResponse for every secret verb) cost 22.8 GB/day because flux lists all secrets (1.9 MiB/list) and rewrites helm release blobs; list/watch/update of secrets are Metadata now, total ~2.5 GB/day.
Proof in the trail:
get forgejo/pg-superuser404 (the card's literal command — the secret is actuallyforgejo-pg-app),get forgejo/forgejo-pg-app200 with responseObject,create roles/audit-trail-probe(dryRun) 201,pods/execwith the full command line.The manifest is kubeadm-owned and NOT reconciled by Flux, so
kubeadm upgradesilently drops it;infrastructure/controlplane/audit/install-audit.sh --checkdetects that and re-apply is idempotent (verified byte-identical to the live manifest).No authorization mode, admission plugin or apiserver cert touched. Do not add logrotate for the audit path: the apiserver owns the fd and does its own rotation.