Istio
Hard
Security
The mesh-wide PeerAuthentication in istio-system sets STRICT. The namespace has one that sets PERMISSIVE. A workload-specific policy sets portLevelMtls to DISABLE for port 8080. Which mode applies to port 8080 of that workload?
Select your answer:
Show answer and explanation
Answer: DISABLE
Explanation
The most specific PeerAuthentication wins. A policy with a selector for the workload overrides the namespace policy, which overrides the mesh-wide one in the root namespace. Port-level settings override the policy's own mode for that port. So port 8080 accepts plain text, and the workload's other ports use the workload policy's mode, or PERMISSIVE from the namespace if it sets none.
More hard Istio questions
- An application in an Istio sidecar pod fails at startup because its first outbound calls happen before the Envoy sidecar is ready. Which setting fixes this?
- What is the purpose of Istio's WorkloadEntry resource?
- What is the purpose of Istio's WorkloadGroup resource?
- What is the purpose of Istio's 'consistentHash' load balancing in DestinationRule?
- How can you implement rate limiting in Istio?
- What is the purpose of Istio's 'locality' field in DestinationRule?