-
Notifications
You must be signed in to change notification settings - Fork 3.4k
identity: Ensure ingress label is reserved label to be node-local #40791
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
identity: Ensure ingress label is reserved label to be node-local #40791
Conversation
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.
💚
Increasing the scope of the backport due to the severity. EDIT: Looks like actually it doesn't impact v1.17. |
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.
Fix LGTM, thanks!
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.
Thanks a lot
Looks like CI is kinda blocked on #40801 |
If this check is not present, then Cilium consider global identity to be node-local if there is a label called "ingress" in the label set. For example, a workload pod could have the label set: ``` k8s:foo=bar k8s:ingress=allowed ``` and Cilium will incorrectly assign it a node-local identity because the "ingress" label is present, without checking the source. Hence why we need to add a check for the reserved source. A unit test is added to validate this behavior. Fixes: 226a978 ("identity: Allow local identity for ingress label") Signed-off-by: Chris Tarazi <chris@isovalent.com>
82f8942
to
9e3f981
Compare
/test Edit: #36428 |
If this check is not present, then Cilium consider global identity to be
node-local if there is a label called "ingress" in the label set.
For example, a workload pod could have the label set:
and Cilium will incorrectly assign it a node-local identity because the
"ingress" label is present, without checking the source. Hence why we
need to add a check for the reserved source.
A unit test is added to validate this behavior.
Fixes: 226a978 ("identity: Allow local identity for ingress label")
Signed-off-by: Chris Tarazi chris@isovalent.com