QA
Senior LevelWeb Security & Cyber Defense

How does a Service Mesh (Istio, Linkerd) automate mTLS encryption and authorization policies across microservices?

❓ Interview Prompt: Explain Service Mesh architecture, Envoy sidecar proxies, automated mTLS, Istio `PeerAuthentication`, and `AuthorizationPolicy` definitions.

A Service Mesh (Istio, Linkerd) manages microservice-to-microservice communication via Envoy sidecar proxies running alongside containers:

Automated mTLS & Authorization:

1
Auto mTLS: Envoy sidecars intercept all inter-service traffic, automatically encrypting and authenticating calls with short-lived mTLS certificates without code modifications!
2
Declarative Authorization: Apply granular Istio 'AuthorizationPolicy' rules enforcing namespace and SPIFFE ID access permissions.

Code Implementation Example

yaml
# Istio AuthorizationPolicy restricting access to Payment Service
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
  name: payment-policy
  namespace: payments
spec:
  selector:
    matchLabels:
      app: payment-service
  action: ALLOW
  rules:
  - from:
    - source:
        principals: ["cluster.local/ns/checkout/sa/checkout-service"]
💡Istio AuthorizationPolicy restricting Payment Service access to Checkout Service SPIFFE identity.
🎯 Interview Key Takeaway

Deploy a Service Mesh (Istio) to automate mTLS encryption and enforce declarative zero-trust authorization policies across microservices.

#Service Mesh#Istio#mTLS#Microservices#Senior
Back to all Web Security & Cyber Defense Questions→

More Web Security & Cyber Defense Interview Questions

Beginner LevelSecurity & Web Security

Explain OWASP Top 10 vulnerabilities (XSS, CSRF, SQL Injection) and their defenses.

Beginner LevelSecurity & Web Security

What are the 3 types of XSS (Stored, Reflected, DOM-based) and how do they differ?

Beginner LevelSecurity & Web Security

How do Parameterized Queries (Prepared Statements) prevent SQL Injection attacks?