-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Consul Connect: Fix validation with multiple local_bind_socket_paths #22312
Consul Connect: Fix validation with multiple local_bind_socket_paths #22312
Conversation
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.
Hi @sundbry! Thanks for this fix. I've left a comment about reusing the map. Also:
- You'll want to
gofmt -s
the file when you're done to make the lint check happy - Can you run
make cl
to create a changelog entry?
5c15ed3
to
0fe2a8a
Compare
Hi @tgross, thanks for the review - I have resubmitted it after changes + added a changelog entry. |
When a consul connect sidecar service is defined with multiple local_bind_socket_path upstreams, validation would fail due to duplicate socket address bindings on `:0` being detected. Validate local_bind_socket_path sockets separately from IP address sockets.
0fe2a8a
to
5a9becc
Compare
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.
LGTM! Thanks @sundbry!
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
When a consul connect sidecar service is defined with multiple local_bind_socket_path upstreams, validation fails due to duplicate socket address bindings on
:0
being detected:This patch validates
local_bind_socket_path
upstreams separately fromlocal_bind_address
sockets.