Repository navigation
Conversation
Add istio.io/dataplane-mode: ambient label to the authbridge namespace in all demo deployment manifests. This ensures ztunnel enrolls all pods by default, so end-to-end tests exercise the ambient mesh code path (HBONE delivery via OUTPUT chain) and surface issues that only appear with ztunnel in the loop. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Hai Huang <huang195@gmail.com>
huang195
force-pushed
the
feat/enable-ambient-mesh-testing
branch
from
February 19, 2026 21:11
44423e6 to
fd2765d
Compare
anatolykoyfman
pushed a commit
that referenced
this pull request
Aug 26, 2026
Realign the pass-through PDP Policy Library unit tests to the new ALLOW/DENY policy-model shape. aiac.pdp.policy.library.api imports AgentPolicyModel / PolicyModel straight from the canonical aiac.policy.model.models, so the delta is test-only: - Replace the stale _AGENT_POLICY_DICT fixture (old target_scopes / inbound_rules / outbound_rules fields, silently dropped by extra="ignore") with a new-shape model built from real Role/Scope objects: 8 entity×effect rule lists, split target_allow_scopes / target_deny_scopes, effect-agnostic identity maps, and a DENY tuple. - Add TestModelShape asserting PolicyRule carries role/scope/effect (default ALLOW), AgentPolicyModel exposes the split maps + 8 rule lists and no longer carries the pre-ALLOW/DENY target_scopes / inbound_rules / outbound_rules. - Add TestRoundTrip covering a lossless AgentPolicyModel / PolicyModel round trip including a DENY tuple (effect=DENY survives, deny-only role still resolvable via the effect-agnostic map). - Preserve HTTP-client coverage unchanged (verb/path/body, RuntimeError on non-2xx, URL fallback, no ?realm=) — transport stays a pass-through model_dump() per #120. Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: Oleg Blinder <oblinder@gmail.com> Signed-off-by: Anatoly Koyfman <anatoly@il.ibm.com>
anatolykoyfman
pushed a commit
that referenced
this pull request
Aug 26, 2026
Realign the pass-through PDP Policy Library unit tests to the new ALLOW/DENY policy-model shape. aiac.pdp.policy.library.api imports AgentPolicyModel / PolicyModel straight from the canonical aiac.policy.model.models, so the delta is test-only: - Replace the stale _AGENT_POLICY_DICT fixture (old target_scopes / inbound_rules / outbound_rules fields, silently dropped by extra="ignore") with a new-shape model built from real Role/Scope objects: 8 entity×effect rule lists, split target_allow_scopes / target_deny_scopes, effect-agnostic identity maps, and a DENY tuple. - Add TestModelShape asserting PolicyRule carries role/scope/effect (default ALLOW), AgentPolicyModel exposes the split maps + 8 rule lists and no longer carries the pre-ALLOW/DENY target_scopes / inbound_rules / outbound_rules. - Add TestRoundTrip covering a lossless AgentPolicyModel / PolicyModel round trip including a DENY tuple (effect=DENY survives, deny-only role still resolvable via the effect-agnostic map). - Preserve HTTP-client coverage unchanged (verb/path/body, RuntimeError on non-2xx, URL fallback, no ?realm=) — transport stays a pass-through model_dump() per #120. Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: Oleg Blinder <oblinder@gmail.com> Signed-off-by: Anatoly Koyfman <anatoly@il.ibm.com>
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
istio.io/dataplane-mode: ambientlabel to theauthbridgenamespace in all 5 demo deployment manifests (single-target, multi-target, with/without SPIFFE, targets)Motivation
During testing of PR #126, we discovered that bugs in the iptables/Envoy interaction with ztunnel (e.g., HBONE delivery path, mTLS cert issues, outbound routing through ztunnel) only surface when ambient mesh is active. Without this label, end-to-end tests only exercise the simpler PREROUTING path and miss issues on the OUTPUT chain path that ztunnel uses for inbound delivery.
Test plan
test-authbridge.sh --context kind-kagenti— verify all 3 tests pass (no token, invalid token, valid token)🤖 Generated with Claude Code