Skip to content
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

egressgateway: Allow several CENPs with same egress IP #17773

Merged
merged 1 commit into from Nov 4, 2021

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented Nov 3, 2021

In commit a783f7c ("k8s/cilium Event handlers and processing logic for egress nat policy"), having several CENPs with the same egress IP was explicitly disallowed. As explained in #17678, the rationale was that those egress IPs are sometimes associated with security identities in external applications. However, this limitation is also preventing legitimate use cases. Users who would like to prevent this can implement it on top of Cilium.

This pull request removes the restriction.

Fixes: #15134.
Fixes: #17678.

In Commit a783f7c ("k8s/cilium Event handlers and processing logic for
egress nat policy"), having several CENPs with the same egress IP was
explicitly disallowed. As explained in [1], the rationale was that those
egress IPs are sometimes associated with security identities in external
applications. However, this limitation is also preventing legitimate use
cases. Users who would like to prevent this can implement it on top of
Cilium.

This commit removes the restriction.

1 - cilium#17678
Fixes: a783f7c ("k8s/cilium Event handlers and processing logic for egress nat policy")
Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno added kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium. needs-backport/1.10 feature/egress-gateway Impacts the egress IP gateway feature. labels Nov 3, 2021
@pchaigno pchaigno requested a review from jibi November 3, 2021 23:06
@pchaigno pchaigno requested a review from a team as a code owner November 3, 2021 23:06
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.10.6 Nov 3, 2021
@pchaigno
Copy link
Member Author

pchaigno commented Nov 3, 2021

/test

@pchaigno
Copy link
Member Author

pchaigno commented Nov 4, 2021

Tests are passing. Janitor review was only required because of missing CODEOWNER (fixed in #17774). Marking ready to merge.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 4, 2021
@nathanjsweet nathanjsweet merged commit b717428 into cilium:master Nov 4, 2021
@pchaigno pchaigno deleted the allow-cenp-with-same-egressip branch November 4, 2021 21:32
@anfernee
Copy link
Contributor

anfernee commented Nov 5, 2021

Thanks @nathanjsweet to make the change.

@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.10 in 1.10.6 Nov 12, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.10 in 1.10.6 Nov 12, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.10 to Backport done to v1.10 in 1.10.6 Nov 23, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.10 to Backport done to v1.10 in 1.10.6 Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/egress-gateway Impacts the egress IP gateway feature. kind/bug This is a bug in the Cilium logic. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
No open projects
1.10.6
Backport done to v1.10
Development

Successfully merging this pull request may close these issues.

Cannot create two CiliumEgressNATPolicy with the same egressSourceIP
6 participants