Interview › Security & DevSecOps
How do you apply least privilege to service-to-service communication (e.g., with Istio mTLS)? [Intermediate]
Answer
For service-to-service least privilege, I authenticate workloads with strong identities, encrypt traffic with mTLS, authorize only required service pairs and methods, and restrict network paths. With Istio, that means PeerAuthentication, AuthorizationPolicy, and optionally NetworkPolicy together.
Technical explanation
mTLS proves workload identity and encrypts traffic, but authorization policies decide who can call what.
Policies should be namespace/service/method scoped rather than allowing all mesh traffic.
NetworkPolicy still matters because it limits traffic at the network layer even if application policy is misconfigured.
Hands-on example
Istio example: enable STRICT PeerAuthentication in the namespace. Create an AuthorizationPolicy allowing checkout service account to call payment POST /authorize only. Deny all other callers by default, then verify with curl from allowed and disallowed pods.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- What is secrets management, and how does HashiCorp Vault work at a high level? [Intermediate]
- What is encryption at rest versus in transit, and how do you ensure both? [Advanced]
- What is OPA, and what is the Rego language used for? [Intermediate]
- What is the difference between symmetric and asymmetric encryption? [Advanced]
- What is workload identity, and how does it remove static credentials? [Intermediate]
- What is certificate management, and how do tools like cert-manager help? [Advanced]
- What is the difference between authentication and authorization? [Advanced]
- What are Linux capabilities, and why drop them in containers? [Advanced]