Skip to content

Conversation

nathanjsweet
Copy link
Member

Cilium does not currently support port ranges in
network policies.

policy: Cilium will not process or enforce network policies with port ranges or Kubernetes network policies that use "EndPort".

@nathanjsweet nathanjsweet added the release-note/minor This PR changes functionality that users may find relevant to operating Cilium. label Oct 19, 2023
@nathanjsweet nathanjsweet requested a review from a team as a code owner October 19, 2023 21:20
@joestringer
Copy link
Member

I think the subtle question here is exactly what behaviour we want on upgrade. Currently the policy with endport will put endpoints into default deny and therefore lock down the endpoints. If we reject the policy completely, that could mean the policy is ineffective and opens up the endpoints completely if that's the only policy. It may be safer to accept but log, given this is long-standing behaviour (?)

@joestringer joestringer added the upgrade-impact This PR has potential upgrade or downgrade impact. label Oct 20, 2023
Cilium does not currently support port ranges in
network policies.

Signed-off-by: Nate Sweet <nathanjsweet@pm.me>
@nathanjsweet nathanjsweet force-pushed the pr/nathanjsweet/add-endport-unsupported-error-when-endport-is-present branch from 7c5f4d6 to a69aee3 Compare November 1, 2023 03:57
@nathanjsweet nathanjsweet requested a review from joamaki November 1, 2023 16:30
@nathanjsweet
Copy link
Member Author

/test

Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

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

I think this makes sense, it's hard for me to argue for something better for the short term and the existing stable releases. I know the support for this feature is making some progress soon so hopefully we won't need a better solution to communicating this problem in the end. 👍

@nathanjsweet nathanjsweet dismissed joamaki’s stale review November 2, 2023 20:45

comments addressed.

@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 Nov 3, 2023
@joamaki joamaki merged commit d221e96 into main Nov 3, 2023
@joamaki joamaki deleted the pr/nathanjsweet/add-endport-unsupported-error-when-endport-is-present branch November 3, 2023 06:26
@jibi jibi mentioned this pull request Nov 7, 2023
15 tasks
@jibi jibi added backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. and removed needs-backport/1.14 labels Nov 7, 2023
@github-actions github-actions bot added backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. and removed backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. labels Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/minor This PR changes functionality that users may find relevant to operating Cilium. upgrade-impact This PR has potential upgrade or downgrade impact.
Projects
No open projects
Status: Released
Development

Successfully merging this pull request may close these issues.

4 participants