fix(driver): bypass Istio ambient inbound capture for sandbox pods#12
Closed
pdettori wants to merge 1 commit into
Closed
fix(driver): bypass Istio ambient inbound capture for sandbox pods#12pdettori wants to merge 1 commit into
pdettori wants to merge 1 commit into
Conversation
On OpenShift with Istio ambient mesh (HBONE mode), ztunnel intercepts inbound TCP to the pod and re-originates connections from the pod's main IP instead of preserving the sandbox veth source address. This breaks the proxy's /proc/net/tcp-based identity resolution because peer_addr() returns ztunnel's address, not the sandbox's 10.200.0.2. Always annotate sandbox pods with: ambient.istio.io/bypass-inbound-capture: "true" This tells Istio ambient to skip inbound interception, preserving the original source address on the veth pair so identity resolution can correlate sockets to sandbox processes. The sidecar-mode annotation (traffic.sidecar.istio.io/excludeInboundPorts) has no effect in ambient mode. Fixes: kagenti/kagenti#1855 Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: Paolo Dettori <dettori@us.ibm.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ambient.istio.io/bypass-inbound-capture: "true"so Istio ambient mode does not intercept inbound traffic to the pod's internal proxy portRoot Cause
On OpenShift with Istio ambient mesh (HBONE mode), ztunnel intercepts inbound TCP and re-originates connections from the pod's main IP (
10.128.x.x) instead of preserving the sandbox veth source address (10.200.0.2). This breaks the proxy's/proc/net/tcp-based identity resolution —peer_addr()returns ztunnel's address, and the port lookup in the sandbox network namespace's TCP table finds nothing.The sidecar-mode annotation (
traffic.sidecar.istio.io/excludeInboundPorts) has no effect in ambient mode — onlyambient.istio.io/bypass-inbound-captureworks.On Kind (upstream Istio 1.28), ztunnel already preserves source IPs through the REDIRECT, so this annotation is a harmless no-op there.
Test plan
go test ./internal/driver/passes (new test for annotation)Fixes: kagenti/kagenti#1855
Assisted-By: Claude Code