controlplane: audit — full bodies for secret writes, metadata only for list/watch #49

Merged
sirius merged 1 commit from controlplane/apiserver-audit into master 2026-11-27 05:28:28 +00:00
Owner

Follow-up to #46, same live change on siriussec.

Measured the steady state instead of the post-restart burst: secret traffic is ~0.25 GB/day, so RequestResponse stays on for every secret verb except list/watch (those return the whole namespace corpus, 1.9 MiB per list). Net: secret writes keep their bodies again, so an out-of-band kubectl patch secret by a human or an attacker is reconstructable, not just metadata.

Steady state now 0.79 GB/day / ~420 events/min => ~6 days inside 48 x 100 MiB.

Re-verified live: create secret ... --dry-run=server records requestObject.data; get still 200 + responseObject.

Follow-up to #46, same live change on siriussec. Measured the steady state instead of the post-restart burst: secret traffic is ~0.25 GB/day, so `RequestResponse` stays on for **every** secret verb except `list`/`watch` (those return the whole namespace corpus, 1.9 MiB per list). Net: secret *writes* keep their bodies again, so an out-of-band `kubectl patch secret` by a human or an attacker is reconstructable, not just metadata. Steady state now 0.79 GB/day / ~420 events/min => ~6 days inside 48 x 100 MiB. Re-verified live: `create secret ... --dry-run=server` records `requestObject.data`; `get` still 200 + responseObject.
Measured on the live cluster: the 22.8 GB/day burst was driven by `list secrets`
(1.9 MiB per event — every secret in the namespace) and by helm-controller
rewriting its release blobs. Only list/watch give up their bodies now, so
"who rewrote this secret, and to what" stays reconstructable; steady state is
0.79 GB/day / ~420 events/min, i.e. ~6 days inside 48 x 100 MiB.

Re-verified after the change: create secret (server dry-run) records
requestObject.data; get/patch behave the same.
sirius merged commit f2c6de0ccb into master 2026-11-27 05:28:28 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/homek8s!49
No description provided.