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

Automated cherry pick of #5687: Fix NP not working on Hairpin #5701

Conversation

GraysonWu
Copy link
Contributor

Cherry pick of #5687 on release-1.14.

#5687: Fix NP not working on Hairpin

For details on the cherry pick process, see the cherry pick requests page.

Fix antrea-io#5681

Network policy didn't work when using a server Pod to establish a
connection to the service provided by itself. This hairpin service
connection initiated through a local Pod will be SNATed to the
gateway IP, which will prevent it from being correctly categorized by
the network policy during the Ingress rule enforcement.

This commit added a bypass flow to always allow the hairpin service
connection to address this issue. Given we don't consider self-access
blocking to be a valid case.

Signed-off-by: graysonwu <wgrayson@vmware.com>
@GraysonWu GraysonWu added the kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release label Nov 13, 2023
@GraysonWu GraysonWu requested a review from tnqn November 13, 2023 20:46
@tnqn
Copy link
Member

tnqn commented Nov 14, 2023

/skip-all

@tnqn tnqn merged commit ce28710 into antrea-io:release-1.14 Nov 14, 2023
48 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants