Skip to content

[v1.38] Backports 2026-11-12 - #2169

Open
jrajahalme wants to merge 3 commits into
v1.38from
remove-destination-filter-state-v1.38
Open

jrajahalme wants to merge 3 commits into
v1.38from
remove-destination-filter-state-v1.38

Conversation

@jrajahalme

@jrajahalme jrajahalme commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

@jrajahalme
jrajahalme requested a review from a team as a code owner November 12, 2026 17:19
@jrajahalme
jrajahalme requested review from nezdolik and removed request for a team November 12, 2026 17:19
@jrajahalme jrajahalme changed the title [v1.38] Remove destination filter state [v1.38] Backports 2026-11-12 Nov 12, 2026
@jrajahalme
jrajahalme force-pushed the remove-destination-filter-state-v1.38 branch 4 times, most recently from a08480c to b89b651 Compare November 13, 2026 11:01
firecow and others added 3 commits November 13, 2026 15:54
Listeners started accepting connections before the first NetworkPolicy
update was installed, so connections accepted in that window had no
policy for local endpoints and every request on them failed with 500
for the lifetime of the connection. The NPDS init target now becomes
ready when the first policy update is installed, or after 5 seconds at
most, and is shared by every listener.

Signed-off-by: Mads Jon Nielsen <madsjon@gmail.com>
…on check

[ upstream commit cc495ed ]

SourceAddressSocketOption skips restoring the ingress (or original)
source address when the upstream destination is local. The destination
locality must always be determined from the actual destination address
of the upstream connection. The destination filter state of the
downstream connection is racy with L7 LB, as the upstream connection
pool, and the socket option with it, is shared among many downstream
connections.

Use the remote address of the upstream socket, which Envoy sets before
STATE_PREBIND options are applied.

Fixes: 71e08fc ("bpf_metadata: Skip original source address for same node L7 LB destinations")
Fixes: cilium/cilium#49710
Signed-off-by: Filip Grzonkowski <grzonu@gmail.com>
[ upstream commit f0ad6d1 ]

Use of CiliumDestinationFilterState has been replaced with the socket
destination address that Envoy always sets before setting socket
options. Remove dead code no longer needed.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme
jrajahalme force-pushed the remove-destination-filter-state-v1.38 branch from b89b651 to 03f01d3 Compare November 13, 2026 14:54
@jrajahalme

Copy link
Copy Markdown
Member Author

rebased to fix lint wait for image timing out

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants