apps(netsec): hubble-flow-collector DaemonSet — filtered flow capture on siriussec #39
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/netsec-hubble-flow-collector"
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?
Phase 1a of the netsec program: a long-lived Hubble flow consumer on siriussec.
Why a DaemonSet, not a cron: the Cilium agent ring buffer holds ~4096 events per type — at the measured ~148 flows/s that is ~28 s of history, so
hubble observe --last Non a 5-minute timer loses almost everything.What it writes (
apps/base/netsec/):--type drop --type policy-verdict --type l7 --type trace:to-network. The 148/stracebulk (all other subtypes) never leaves the agent.filter.awk: drop / policy-verdict / l7 are always kept;trace:to-networkis kept only when a peer is outside10.244.0.0/16and10.10.0.0/24(the to-world beacon/exfil signal). Intra-cluster trace ACK chatter is discarded.collect.sh): <= 6 files x 150 MiB = 900 MiB, inside the 1 GiB cap, oldest deleted first, plus an independent total-bytes bound. Nothing else on the node is written; logs go to stdout.Blast radius: one namespace, one DaemonSet pinned to
siriussec, one root-owned directory/var/log/netsec. The socket is mounted as a single file (/var/run/cilium/hubble.sock, type Socket, read-only) — mounting/var/run/ciliumwould hand the podcilium.sock, i.e. cluster datapath admin. Image is the agent's own digest (v1.20.1@sha256:ae9ea21f…) so there is no protobuf/version skew.runAsUser: 0is required to open the root-owned 0660 socket; no capabilities, no API token, not privileged.No Service, no HTTPRoute, no Gateway port, no PVC, no change to
cilium-configords/cilium.Verification (post-merge, on the live node): rollout status,
ls /var/run/cilium/shows onlyhubble.sock,tail/du -sbof/var/log/netsec, per-class line counts,ds/ciliumstill 3/3.