• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubeovn / kube-ovn / 23678567073
26%

Build:
DEFAULT BRANCH: master
Ran 28 Mar 2026 05:40AM UTC
Jobs 1
Files 205
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Mar 2026 05:37AM UTC coverage: 24.219% (+0.01%) from 24.207%
23678567073

push

github

web-flow
fix(controller): prevent invalid ACL generation for named ports and IPBlock except CIDRs (#6536)

* fix(controller): prevent invalid ACL generation for named ports and IPBlock except CIDRs

Fix three security-relevant bugs in NetworkPolicy ACL generation:

1. Named port not found in namedPortMap generates tcp.dst == 0 ACL instead
   of skipping (deny-all). This could allow unintended traffic on port 0.
2. Named port with EndPort range generates 0 <= tcp.dst <= N ACL due to
   IntVal being 0 for string-type ports. Now skipped with error log.
3. IPBlock except CIDRs not contained within the main CIDR are accepted
   without validation, producing semantically incorrect ACL rules. Now
   validated using util.CIDRContainsCIDR() and invalid excepts are skipped.

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>

* fix(controller): improve log context for named port and IPBlock except warnings

Address Copilot review feedback: add pgName/direction context to named
port error logs for easier troubleshooting in multi-policy environments,
and separate CIDRContainsCIDR error from non-containment warning to
preserve the actual error message.

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>

---------

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

28 of 36 new or added lines in 1 file covered. (77.78%)

2 existing lines in 1 file now uncovered.

13489 of 55696 relevant lines covered (24.22%)

0.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
77.81
-0.07% pkg/ovs/ovn-nb-acl.go

Coverage Regressions

Lines Coverage ∆ File
2
61.61
-0.62% pkg/ovs/ovn-nb-bfd.go
Jobs
ID Job ID Ran Files Coverage
1 23678567073.1 28 Mar 2026 05:40AM UTC 205
24.22
GitHub Action Run
Source Files on build 23678567073
  • Tree
  • List 205
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b54a6150 on github
  • Prev Build on master (#23672695880)
  • Next Build on master (#23679418589)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc