api icon indicating copy to clipboard operation
api copied to clipboard

Add ambient mode caveats

Open Stevenjin8 opened this issue 6 months ago • 1 comments

Sidecar, ServiceEntry.exportTo and VirtualService.*.source_* are not used at all. While ServiceEntry wildcard hostnames also aren't supported.

Stevenjin8 avatar Jun 09 '25 17:06 Stevenjin8

😊 Welcome @Stevenjin8! This is either your first contribution to the Istio api repo, or it's been a while since you've been here.

You can learn more about the Istio working groups, Code of Conduct, and contribution guidelines by referring to Contributing to Istio.

Thanks for contributing!

Courtesy of your friendly welcome wagon.

istio-policy-bot avatar Jun 09 '25 17:06 istio-policy-bot

no stale

Stevenjin8 avatar Jul 22 '25 18:07 Stevenjin8

https://docs.google.com/document/d/1JjsPzOMJfu_evzgiRp-aJf1KDpa9ImyYrew__y5CTao/edit?tab=t.0#heading=h.8vlgwrna7yow for the broader terminology discussion

craigbox avatar Jul 30 '25 00:07 craigbox

The most common issue is the service entry related. @craigbox wdy think of just adding the service entry caveates for now (with more specific terminology)

Stevenjin8 avatar Sep 15 '25 19:09 Stevenjin8

@craigbox PTAL

Stevenjin8 avatar Sep 16 '25 17:09 Stevenjin8

Ambient does not support exportTo, it seems like a security risk, ztunnek/waypoint can make acccess escalation

@hzxuzhonghu could you speak a bit more? To me exportto is about discoverability, not security, so I'm having trouble seeing the connection

Stevenjin8 avatar Sep 26 '25 15:09 Stevenjin8

Think about a SE reside in test1 namespace, and exported to only test1, iiuc, then a caller resides in test2 can access it via a ztunnel now

hzxuzhonghu avatar Sep 29 '25 01:09 hzxuzhonghu

I agree with Steven: lack of service discovery config sent to a sidecar is NOT a security boundary. exportTo on its own doesn't even limit calling the service from a different namespace; it has to be paired with REGISTRY_ONLY in meshconfig which is also not a security boundary.

keithmattix avatar Sep 29 '25 01:09 keithmattix