-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kuma-dp): fix conntrack collisions (#3459)
* fix(kuma-dp): fix conntrack collisions Vendors this fix (istio/istio#33572) from Istio Signed-off-by: John Harris <john.harris@konghq.com> * chore(*): adjust changes to kuma environment As our e2e tests for universal are done from inside of a docker container, to make the networking work, we are bridging docker network to the host, which results in additional iptables rules inside every container within this network. Problem with these rules is that it's doing some NAT'ing for DNS udp datagrams with addition of randomly picked (during the container startup) port. It's problematic for this conntrack change as it works inside the `raw` table and among others `PREROUTING` chain and expects the datagrams from known port (53), which the earlier described NAT'ing is changing. This probably could be fixed by rethinking some of the rules, but as it's an edge case, after consultation with the team I decided it's not worth the time needed to properly solve it and instead I introduced to a `--skip-dns-conntrack-zone-split` flag for `kumactl install transparent-proxy`, which allows us to skip attaching the conntrack-collision iptables rules. This change was necessary for making some of the tests to work (univeral). I also fixed the code to include our flag for capturing all dns traffic and instead of hardcoding port `15053`, to use the one from the configuration. Signed-off-by: Bart Smykla <bartek@smykla.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Bart Smykla <bartek@smykla.com>
- Loading branch information
1 parent
3628ff7
commit 45a6d5a
Showing
41 changed files
with
379 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,6 +158,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,6 +212,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
nodeSelector: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,6 +143,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,6 +151,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,6 +153,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,6 +152,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,6 +151,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,6 +162,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,6 +162,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,6 +162,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,6 +162,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,6 +162,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,6 +167,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,6 +174,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,6 +175,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,6 +174,7 @@ spec: | |
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
runAsGroup: 0 | ||
runAsUser: 0 | ||
volumes: | ||
|
Oops, something went wrong.