liveBook · Manning

Service mesh

As explained in Software Security for Developers

A service mesh is an infrastructure layer that manages communication between distributed services, commonly providing traffic control, observability, and security.

Distributed services need authenticated, encrypted communication without making every application implement the same security controls. A service mesh moves this work into infrastructure: it secures internal service-to-service traffic with mutual TLS (mTLS), verifies service identity, and applies shared authorization rules outside application code. section 16.4 section 16.5

A protected internal call

When an inventory service calls another microservice, sidecars placed beside both services can encrypt the connection, authenticate each service, and enforce authorization rules transparently. The applications do not need to implement those transport controls themselves. section 3.1.2 section 16.4

Use the mesh as part of a layered service-authorization design:

  • Secure east-west traffic between internal services with automatic mTLS and consistent identity checks. section 16.4 section 16.5
  • Keep the API gateway at the system boundary for external, north-south requests; use it to check tokens and block unauthorized traffic. section 16.4
  • Retain detailed business authorization in the application, while infrastructure enforces baseline identity and access consistently. section 16.5

This arrangement reduces duplicated security code and human error, but it adds setup complexity and cannot express every business rule. Responsibility should follow team ownership: platform teams can manage shared infrastructure, while application teams keep service-specific decisions. section 16.4 section 16.5

How Software Security for Developers covers it

How deep it goes
Explains mTLS, sidecars, traffic direction, policy placement, and tradeoffs, but does not detail mesh configuration or protocol internals.
Examples
Uses inventory calls, sidecars, internal east-west traffic, external north-south traffic, API gateways, and Istio as concrete examples.
What it assumes
Assumes microservice communication and service identity, while introducing mTLS, sidecars, API gateways, and infrastructure-level authorization.
What you can do after
Evaluate authorization placement and apply a mixed model that combines mesh enforcement with application-level business rules.
How it connects
Connects service identity with mTLS, API gateways, sidecars, Kubernetes, SPIFFE, OAuth 2.0, X.509 certificates, and zero-trust architectures.

Also explained in

Compare how 6 books explain service mesh →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Software Security for Developers. The section links point to the parts of the book it draws on.