Files
cozystack/packages
IvanHunters 7451d97c14 fix(talos-log-collector): add CNI-agnostic NetworkPolicy fallback
Vector binds 0.0.0.0 inside the pod netns and exposes it as a containerPort,
so any pod could reach <podIP>:<listenPort> and inject forged talos_system
log lines. The ingress restriction is therefore load-bearing, not
defence-in-depth as the comment claimed. The CiliumNetworkPolicy only rendered
when the Cilium CRD was present, leaving the receiver unprotected on non-Cilium
variants (e.g. isp-hosted / noop networking). Correct the comment and, when the
Cilium CRD is absent, fall back to a default-deny-ingress networking.k8s.io/v1
NetworkPolicy so the socket is never offered without protection.

Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
2026-07-22 22:14:57 +03:00
..