-
Notifications
You must be signed in to change notification settings - Fork 9
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
service-mesh: blackhole traffic destined for the TPROXY port #1171
service-mesh: blackhole traffic destined for the TPROXY port #1171
Conversation
3u13r
commented
Jan 21, 2025
•
edited
Loading
edited
- blackhole traffic that would cause the envoy to infinitely connect to itself
- add tests for the envoy config
ac085b5
to
47b9850
Compare
b62d878
to
85a7740
Compare
85a7740
to
5a6afdd
Compare
func TestMain(m *testing.M) { | ||
goleak.VerifyTestMain(m) | ||
} |
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.
Did you introduce this for a specific reason? This binary looks pretty serial...
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.
No, I thought we would just add this per convention for new tests, since e.g.,
contrast/internal/fsstore/fsstore_test.go
Line 17 in 5a6afdd
func TestMain(m *testing.M) { |
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.
I don't, was just curious.
5a6afdd
to
68a224f
Compare
Traffic to the TPROXY port (15006/15007) led to a traffic storm as envoy used the original destination to forward the traffic to, therefore forwarding it again to the TPROXY port where envoy listens. This commit introduces a Blackhole cluster where we send traffic to, that arrives on the TPROXY listeners and which original destination port is the TPROXY.
With increasing envoy config complexity it gets more difficult to parse the final envoy config. Therefore we introduce tests which compare the envoy config for specific scenarios with golden JSON representations of the expected output.
68a224f
to
e938b27
Compare