Warning
This release changes the Network Policy Agent events eBPF binary.
When the agent starts with a changed events binary, it reinstalls the node's global eBPF maps, including the conntrack map, with default (empty) state. Connection-tracking entries for connections opened before the upgrade are lost. Return traffic for those in-flight connections can be dropped on pods with network policies applied, unless policy explicitly allows that return traffic. New connections are not affected.
This applies to any upgrade path that crosses this release, including upgrades that skip versions (for example, upgrading from a version earlier than this one to a later version).
Recommendation: Upgrade during a maintenance window, or roll nodes gradually, and make sure your applications retry dropped connections.
What's Changed
- test: return nil from DeleteNetworkPolicy once the policy is gone by @aaithal in #757
- fix(controllers): key reconciles and state by slice name and parent policy by @zac-nixon in #729
- fix(ebpf): Re-evaluating established connections in strict mode involving NPs and CNPs by @ishani-das in #682
- fix(fwruleprocessor): canonicalize CIDRs before sorting by prefix length by @pcbeingused33 in #748
- test(cyclonus): tolerate transient kubectl failures while polling the cyclonus job by @cdirubbio in #779
- test(leak): stop CronJob runs from overlapping and bail on stalled churn by @Pavani-Panakanti in #783
- test(leak): keep worker nodes from being autoscaled away before the BPF check by @Pavani-Panakanti in #787
- fix(fwruleprocessor): skip self-overlap when several CNP rules share a CIDR by @pcbeingused33 in #778
- docs: add AGENTS.md and a review guide by @aaithal in #730
- test(strict): wait for IPv6 DAD on the second replica's host veth before probing by @Pavani-Panakanti in #786
- test(scripts): use the framework's image registry for ginkgo suites by default by @Pavani-Panakanti in #785
- test: name the kernel-test switch BPF_KERNEL_TESTS by @aaithal in #794
- docs: proposal for answering denied TCP SYNs with a RST by @aaithal in #793
- fix(fwruleprocessor): deduplicate L4 rules by protocol value by @bfs2021 in #776
- test: stop CNP tests from false-passing on exec failures and deleted map entries by @jupdec in #792
- perf(events): faster policy event path and DENY ring buffer drop counter by @ishani-das in #762
- fix(controllers): ignore PolicyEndpoint pods outside the PolicyEndpoint's namespace by @Pavani-Panakanti in #801
- test(ebpf): run the ct-deny spec's pods as Deployments from the test registry by @aaithal in #806
- fix(events): avoid panic when CloudWatch stream creation fails by @pcbeingused33 in #798
- Answer denied TCP SYNs with a RST, behind --enable-tcp-reset-on-deny by @aaithal in #782
- fix(fwruleprocessor): canonicalize except CIDRs per cluster family by @srikanthjg in #768
- fix(logger): buffer the log file writer and share it between loggers by @zac-nixon in #808
- test(agentflags): use the framework's Deployment helpers, and fix the flag-off flake by @aaithal in #815
- ci: clean up leaked ENIs and stacks after test cluster deletion by @emilyhuaa in #709
- fix(startup): reconnect to ipamd within 0.5s so npa.sock is served before the first pod by @shvartz311 in #822
- TC filter gap when a pod's program is attached again (#790): design and regression test by @aaithal in #818
- conntrack: look up the agent's own entries instead of dumping the table by @aaithal in #754
- build: drop the kfunc prototypes bpftool 7.5+ writes to vmlinux.h by @aaithal in #833
- feat(events): add --policy-event-logs-scope for DENY-only events by @ishani-das in #763
- fix(ebpf): attach a pod's TC programs with replace instead of detaching by @Pavani-Panakanti in #821
- feat: apply a PolicyEndpoint only to the pods of its target group by @haouc in #800
- fix(config): fail startup on an invalid --policy-event-logs-scope by @ishani-das in #834
- perf: move per-reconcile and per-entry logs to debug level by @zac-nixon in #788
- fix(utils): treat an IPv6 /32 as a network in IsNonHostCIDR by @zac-nixon in #840
- build(deps): bump google.golang.org/grpc from 1.84.0 to 1.85.0 by @dependabot[bot] in #845
- build(deps): bump golang.org/x/sys from 0.49.0 to 0.50.0 by @dependabot[bot] in #844
- build(deps): bump github.com/prometheus/client_model from 0.6.2 to 0.6.3 by @dependabot[bot] in #843
- build(deps): bump github.com/onsi/gomega from 1.39.1 to 1.44.0 by @dependabot[bot] in #842
- bump deps by @zac-nixon in #850
New Contributors
- @pcbeingused33 made their first contribution in #748
- @bfs2021 made their first contribution in #776
- @shvartz311 made their first contribution in #822
Full Changelog: v1.5.0...v1.6.0