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
hubble: Display proxy redirects in policy verdict events #17411
hubble: Display proxy redirects in policy verdict events #17411
Conversation
Before this commit, Hubble was ignoring proxy redirection information from the policy-verdict events it received from the datapath. For example, a cilium monitor event such as: Policy verdict log: flow 0x0 local EP ID 1531, remote ID 35429, proto 17, egress, action redirect, match L3-L4, 10.240.0.62:37282 -> 10.240.0.63:53 udp would be displayed in hubble observe as: Sep 15 17:23:11.960: cilium-test/client-6488dcf5d4-f9kfl:37282 -> kube-system/coredns-d4866bcb7-zh5jv:53 L3-L4 FORWARDED (UDP) This commit adds a new verdict REDIRECTED to signal such event. Such events now appear as: default/pod-to-external-fqdn-allow-google-cnp-5ff4986c89-n87h2:58314 -> kube-system/coredns-755cd654d4-j4vzh:53 UNKNOWN 5 (UDP) A subsequent patch to the Hubble command line will display value 5 as "REDIRECTED". Signed-off-by: Paul Chaignon <paul@cilium.io>
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.
LGTM
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.
🚀
test-me-please Job 'Cilium-PR-K8s-1.19-kernel-5.4' failed and has not been observed before, so may be related to your PR: Click to show.Test Name
Failure Output
If it is a flake, comment |
To pull in cilium/cilium#17411 which defines Verdict_REDIRECTED. Signed-off-by: Paul Chaignon <paul@cilium.io>
To pull in cilium/cilium#17411 which defines Verdict_REDIRECTED. Signed-off-by: Paul Chaignon <paul@cilium.io>
To pull in cilium/cilium#17411 which defines Verdict_REDIRECTED. Signed-off-by: Paul Chaignon <paul@cilium.io>
This is required to avoid `unknown Cilium policy verdict event` spans that happen due to addition of new REDIRECTED verdict (see cilium/cilium#17411). New version of Hubble hasn't been released yet, but the change has been backported to v0.8 branch (cilium/hubble#639).
This is required to avoid `unknown Cilium policy verdict event` spans that happen due to addition of new REDIRECTED verdict (see cilium/cilium#17411). New version of Hubble hasn't been released yet, but the change has been backported to v0.8 branch (cilium/hubble#639).
Before this commit, Hubble was ignoring proxy redirection information from the policy-verdict events it received from the datapath. For example, a
cilium monitor
event such as:would be displayed in
hubble observe
as:This pull request adds a new verdict
REDIRECTED
to signal such event. Such events now appear as:A subsequent patch to the Hubble command line will display value 5 as
REDIRECTED
.