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

Removes should not change local traffic policy #12325

Merged
merged 2 commits into from Mar 22, 2024

Conversation

adleong
Copy link
Member

@adleong adleong commented Mar 21, 2024

Fixes: #12311

When the endpoint translator receives a remove call, it was updating it's local traffic policy based on the address set passed to remove. However, since remove is only meant to remove addresses and not change the address metadata, the endpoints watcher was not setting local traffic policy on these calls to remove. This can result in calls to remove temporarily turning off local traffic policy which will cause non-local addresses to be sent to clients.

Since remove should not change address metadata, we now disregard any metadata in the call to remove, including any changes to the local traffic policy.

Signed-off-by: Alex Leong <alex@buoyant.io>
@yc185050
Copy link
Contributor

Thanks. This looks great! I will close mine. Can we get it back port to 2.15 and 2.14 if possible?

@olix0r
Copy link
Member

olix0r commented Mar 22, 2024

@yc185050 we are not planning a 2.14 backport at this point, but i think this is a good candidate for a 2.15 backport.

@adleong adleong merged commit 2c2a96b into main Mar 22, 2024
36 checks passed
@adleong adleong deleted the alex/local-traffic-policy-remove branch March 22, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linkerd does not respect local traffic policy under certain circumstance
4 participants