Interview Prep/DevSecOps/Secrets and Identity Management

Microservices talk over plain HTTP inside the cluster. Security wants service-to-service authentication. What are your options?

AdvancedScenarioSecrets and Identity Management
Answer

Situation read → The internal network is not a trust boundary. Each service needs a verifiable identity.

What I'd do →

  1. Service mesh with mTLS: Istio or Linkerd issue SPIFFE identities per service account and rotate certs automatically.
  2. Enforce strict mode, e.g. Istio PeerAuthentication with mtls.mode: STRICT, after a permissive rollout.
  3. Add authorization: Istio AuthorizationPolicy allowing only orders to call payments.
  4. Without a mesh: SPIRE for identities plus app-level mTLS, or signed JWTs between services.
  5. Keep NetworkPolicies as a second layer.

Why → mTLS gives encryption and identity; authorization policies turn identity into least privilege.

Interview tip → Roll out permissive first, watch metrics, then switch to strict.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets and Identity Management