Skip to content

server: scope IPv6 security group member rules to the exact host - #14037

Open
nagaboinaramgopal wants to merge 1 commit into
apache:4.20from
nagaboinaramgopal:fix/secgroup-ipv6-host-cidr
Open

server: scope IPv6 security group member rules to the exact host#14037
nagaboinaramgopal wants to merge 1 commit into
apache:4.20from
nagaboinaramgopal:fix/secgroup-ipv6-host-cidr

Conversation

@nagaboinaramgopal

Copy link
Copy Markdown

Description

When a security group rule references another security group, each member VM
should be authorized as an exact host. The IPv4 address is correctly pinned to a
/32, but the IPv6 address was expanded to /64, opening the whole subnet the
member sits in rather than just that member. This silently broadens the rule to
every address in the member's /64.

Pin the IPv6 member to /128 to match the IPv4 behaviour.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Feature/Enhancement Scale or Bug Severity

Bug Severity

  • Minor

How Has This Been Tested?

Added a unit test asserting an IPv6 security-group member is authorized as a /128
host and not the whole /64. Also built the standard packages and deployed on a KVM
advanced zone.

@wido wido left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. This is a very common IPv6 oversight of people. Good catch! Lets merge this one quickly

@DaanHoogland

Copy link
Copy Markdown
Contributor

Code looks good. This is a very common IPv6 oversight of people. Good catch! Lets merge this one quickly

but in the 4.20 branch. by the looks of it this has been in since 4.19.4?

When a security group rule references another security group, each member VM
should be authorized as an exact host. The IPv4 address is correctly pinned to
a /32, but the IPv6 address was expanded to /64, opening the whole subnet the
member sits in rather than just that member. Pin the IPv6 member to /128 to
match the IPv4 behaviour.
@wido

wido commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Code looks good. This is a very common IPv6 oversight of people. Good catch! Lets merge this one quickly

but in the 4.20 branch. by the looks of it this has been in since 4.19.4?

I did not check. But lets make sure it at least goes into 4.20 and onwards

@nagaboinaramgopal
nagaboinaramgopal force-pushed the fix/secgroup-ipv6-host-cidr branch from 8358dfa to 8c6df72 Compare September 3, 2026 16:56
@DaanHoogland
DaanHoogland changed the base branch from main to 4.20 September 3, 2026 17:05
@DaanHoogland DaanHoogland added this to the 4.20.4 milestone Sep 3, 2026
@DaanHoogland DaanHoogland moved this from Backlog to Ready in CloudStack Testing Sep 3, 2026
@DaanHoogland

Copy link
Copy Markdown
Contributor

tnx guys

@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 19.78%. Comparing base (2cd8c5e) to head (8c6df72).

Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #14037      +/-   ##
============================================
+ Coverage     16.34%   19.78%   +3.43%     
- Complexity    13574    19992    +6418     
============================================
  Files          5669     6371     +702     
  Lines        501368   575899   +74531     
  Branches      60903    70495    +9592     
============================================
+ Hits          81964   113940   +31976     
- Misses       410219   449522   +39303     
- Partials       9185    12437    +3252     
Flag Coverage Δ
uitests 3.53% <ø> (-0.62%) ⬇️
unittests 21.05% <ø> (+3.85%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19090

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Ready

Development

Successfully merging this pull request may close these issues.

4 participants