-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix egress CIDR policy enforcement #3348
Conversation
f36fa59
to
ac1786a
Compare
test-me-please |
bpf/bpf_overlay.c
Outdated
@@ -1,4 +1,4 @@ | |||
/* | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove leading space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
ac1786a
to
10f8a6a
Compare
test-me-please |
1 similar comment
test-me-please |
10f8a6a
to
1f2afb5
Compare
test-me-please |
The existing egress CIDR enforcement lookup was performed correctly but relied on a later policy check enforcing a drop and thus only marked the packet to skip the policy check instead of dropping it directly. The latter policy check was removed and since broke the egress CIDR policy enforcement. The CI test is in-effective and thus did not catch this regression. This commit fixes the bug, the CI test will be fixed in a separate commit. Fixes: #3345 Fixes: #3340 Signed-off-by: Thomas Graf <thomas@cilium.io>
When policy enforcement is disabled, these lookup calls should always return a positive value to indicate a match. This bug had no effect so far as calls to these functions are currently protected by defines only defined when policy enforcement is enabled. Signed-off-by: Thomas Graf <thomas@cilium.io>
1f2afb5
to
4b6ab43
Compare
Fixed another bug that was hidden and added commit messages, doing another CI run. |
test-me-please |
No description provided.