Skip to content

policy: Remove Redundant Dualstack Identity Insertion #39471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025

Conversation

nathanjsweet
Copy link
Member

With #29958 the "world" entity-label automatically
encompasses the "world-ipv4" and "world-ipv6" labels.
These are automatically inserted into mapstate because
of their association with the world label, regardless
of whether Cilium is in dual-stack mode. This code is
a no-op and can be removed. The distillery tests
continued success shows that this code removal does
not matter (see Test_EnsureDeniesPrecedeAllows,
for world label <-> identity test examples).

Fixes: #22625

With 516612b the
"world" entity-label automatically encompasses
the "world-ipv4" and "world-ipv6" labels. These
are automatically inserted into mapstate because
of their association with the world label, regardless
of whether Cilium is in dual-stack mode. This code is
a no-op and can be removed. The distillery tests
continued success shows that this code removal does
not matter (see `Test_EnsureDeniesPrecedeAllows`,
for world label <-> identity test examples).

Signed-off-by: Nate Sweet <nathanjsweet@pm.me>
@nathanjsweet nathanjsweet requested a review from a team as a code owner May 9, 2025 17:49
@nathanjsweet nathanjsweet requested a review from bimmlerd May 9, 2025 17:49
@nathanjsweet nathanjsweet added release-note/misc This PR makes changes that have no direct user impact. affects/v1.15 This issue affects v1.15 branch affects/v1.16 This issue affects v1.16 branch affects/v1.17 This issue affects v1.17 branch labels May 9, 2025
@github-actions github-actions bot added the sig/policy Impacts whether traffic is allowed or denied based on user-defined policies. label May 9, 2025
@nathanjsweet
Copy link
Member Author

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 12, 2025
@julianwiedmann julianwiedmann added this pull request to the merge queue May 12, 2025
Merged via the queue into main with commit 2d0157f May 12, 2025
285 checks passed
@julianwiedmann julianwiedmann deleted the pr/nathanjsweet/remove-l4-world-identity-split branch May 12, 2025 10:18
@tklauser tklauser removed the affects/v1.15 This issue affects v1.15 branch label Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/v1.16 This issue affects v1.16 branch affects/v1.17 This issue affects v1.17 branch ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/policy Impacts whether traffic is allowed or denied based on user-defined policies.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants