Skip to content

Feat: Enable Istio ambient mesh for authbridge demo namespaces - #128

Closed
huang195 wants to merge 2 commits into
rossoctl:mainfrom
huang195:feat/enable-ambient-mesh-testing
Closed

huang195 wants to merge 2 commits into
rossoctl:mainfrom
huang195:feat/enable-ambient-mesh-testing

Conversation

@huang195

Copy link
Copy Markdown
Member

Summary

  • Add istio.io/dataplane-mode: ambient label to the authbridge namespace in all 5 demo deployment manifests (single-target, multi-target, with/without SPIFFE, targets)
  • Ensures ztunnel enrolls all pods by default when Istio ambient is installed on the cluster

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

  • Deploy single-target demo with Istio ambient installed — verify ztunnel enrolls authbridge pods
  • Run test-authbridge.sh --context kind-kagenti — verify all 3 tests pass (no token, invalid token, valid token)
  • Verify ztunnel logs show HBONE connections for inbound traffic

🤖 Generated with Claude Code

huang195 and others added 2 commits February 18, 2026 14:28
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
huang195 force-pushed the feat/enable-ambient-mesh-testing branch from 44423e6 to fd2765d Compare February 19, 2026 21:11
@huang195 huang195 closed this Feb 19, 2026
@huang195
huang195 deleted the feat/enable-ambient-mesh-testing branch February 19, 2026 21:11
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>
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.

1 participant