consul
consul copied to clipboard
Fix topoloy intention with mixed connect-native/normal services.
Description
If a service is registered twice, once with connect-native and once without, the topology views would prune the existing intentions. This change brings the code more in line with the transparent proxy behavior.
PR Checklist
- [x] updated test coverage
- [x] external facing docs updated
- [x] not a security concern
- [x] checklist folder consulted
@kisunji This is a follow up to #12098 -- would be great if you could give that a review
Hey @apollo13
Hope you're doing well! Apologies for the delayed review on this, looks like it slipped through the cracks. We'll get this triaged shortly! 😄
@Amier3 Friendly ping :) any chance of a review?
Hi @Amier3, @kisunji. Any chance of a review? I realize that this is a small fix in the grand scheme of things, but nevertheless would improve traefik integration quite a bit.
Hi @apollo13, I don't have the bandwidth to review at this time. If you could describe what the bug is that you are trying to fix (maybe replication steps if it is simple enough) it might help future reviewers understand what behavioral change you are making here.
Ok, here is a reproducer:
cfg.zip
Start with: consul agent -dev -config-dir=cfg
With the current main branch one will get the following result:
with my patch it properly shows the connection as allowed via intentions:
@Amier3 Any chance to get someone to review this?
I'm interested by seeing this commit validated to fix #14795
@kisunji I have rebased the code. Any chance you or someone else could spare the time to review this?
Thank you for your help! I have squashed the commits to reduce the noise (the later commits where just small fixes anyways) and will test if it works correctly (aside from the tests) over the weekend.
I have addressed the issues I ran over and successfully tested the changes in our cluster, jay :)
Backport failed @kisunji. Run: https://github.com/hashicorp/consul/actions/runs/5714489659
Backport failed @kisunji. Run: https://github.com/hashicorp/consul/actions/runs/5714489659
Thank you for reviewing and merging, much appreciated 👍
On Mon, Jul 31, 2023, at 14:11, Chris S. Kim wrote:
Merged #13023 https://github.com/hashicorp/consul/pull/13023 into main.
— Reply to this email directly, view it on GitHub https://github.com/hashicorp/consul/pull/13023#event-9963098227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAT5C42ATCE52NUBCRSYRTXS6OFTANCNFSM5VVLSYIQ. You are receiving this because you were mentioned.Message ID: @.***>