Join our Newsletter — 33% off our NHI Course
Home› Guides› Service Mesh for Beginners: How the Parts of…
Guide Cloud & Workload Identity

Service Mesh for Beginners: How the Parts of an App Talk Safely

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 12 min read
On this page

A service mesh is a layer that checks, protects and records the messages between the parts of an app.

This guide is for new developers, new cloud staff and anyone who has heard the term in a meeting. You do not need to run one yourself to be affected: if your company builds apps from many small parts, a mesh may be what keeps their messages private.

In short

  • Modern apps are often split into many small programs, called services, that send each other messages all day.
  • A service mesh puts a small helper beside each service to handle those messages, so the app's own code does not have to.
  • The helpers can check who is calling, scramble the message on the way and keep a record of each call.
  • A mesh only protects what it is set up to protect. Default settings can still allow unchecked or unscrambled traffic.

What you will learn

  • Explain what a service mesh is in one sentence.
  • Spot the difference between a helper (proxy) and the control centre.
  • Check whether a mesh is really enforcing its rules or only watching.
  • Ask the right questions before a team says "the mesh handles security".
Small app part (service)
one small program that does one job, such as taking payments, inside a bigger app.
Message helper (proxy)
a small program that sits beside a service and passes its messages in and out.
Two-way ID check (mutual TLS)
both sides of a connection prove who they are, and the message is scrambled on the way.

What is a service mesh?

Think of the post room in a large office. Every department sends its letters through it. The post room checks the sender's badge, seals each envelope and writes the delivery in a log book.

Many modern apps are not one big program. They are built from many small ones, called microservices, that each do one job and work together.[2] An online shop might have one service for the basket, one for payments and one for stock. They send each other messages all the time.

A service mesh manages that traffic between services.[1] In the common design, each service gets a small helper program, called a proxy, that sits beside it. The proxy handles the service's messages. A separate control centre, called the control plane, tells every proxy what the rules are.

The point is that developers do not have to build security and record keeping into every service by hand. The mesh adds it from outside the code.[3] A US government guide on microservices describes the same benefit: the same security rules applied everywhere, without changing each service.[7]

Where the comparison stops working: a post room is one room that everyone can see. A mesh is spread across hundreds of tiny helpers, and a gap in one of them is much harder to notice.

Why does it matter?

When an app has hundreds of parts, each one is a possible way in. If one part is taken over, an attacker may try to call all the others. A mesh can make each service prove who it is before others will answer.

If you are a new developer

What could happen: you assume the mesh checks every caller, but your service is still open to anyone inside the network.

Check this: ask whether your service only accepts checked, scrambled traffic, or whether plain traffic is still allowed.

Next: Mutual TLS for Beginners

If you are new to a cloud or platform team

What could happen: the control centre is set up with broad admin rights, so one mistake there changes the rules for every service.

Check this: find out who can change mesh settings and whether changes are reviewed.

Next: Container Security for Beginners

If you manage a product or a team

What could happen: you are told "the mesh handles security", and nobody checks what it actually covers.

Check this: ask for a one-page summary of which services are in the mesh and which rules are switched on.

Next: Zero Trust for Beginners

What does it look like?

Teams often keep mesh rules in short settings files. Here is a made-up summary of the rules for a lettings app, written in plain words rather than real settings.

Example only. All values are made up.

# Mesh rules summary: example-lettings app
services in mesh:  listings, bookings, payments
connection mode:   accept checked OR plain traffic   (1)
who may call payments:  (no rule set)                (2)
proxy certificates: renewed automatically            (3)
call records:      kept for 30 days                  (4)
  1. In a real file, this line would set whether services must use the two-way ID check, or may still talk in plain text.
  2. In a real file, this line would list which services may call payments. Here it is empty.
  3. Each proxy gets a short-lived digital ID card that the mesh renews for it.
  4. The mesh keeps a record of who called whom, which helps when something goes wrong.

Why this is risky: lines 1 and 2 mean the mesh is mostly watching, not enforcing. In some meshes, plain traffic is accepted unless someone switches it off, and a service with no access rule may accept requests from any caller.[4]

The safer way: once every service has its helper, switch to "checked traffic only". Then add a rule for each service that names who may call it, and block everything else.

How does it work?

Here is what happens when the basket service asks the payments service to take a payment.

  1. The ID card. The control centre gives each service's proxy a digital ID card, called a certificate. It is tied to the service's identity, which is a kind of workload identity.[4]
  2. The handover. The basket service sends its message to its own proxy, not straight to payments.
  3. The two-way check. The basket proxy and the payments proxy show each other their ID cards. This is mutual TLS. Once both are happy, the message is scrambled (encrypted) on the way.[5]
  4. The rule check. The payments proxy looks up the rules. If basket is allowed to call payments, the message goes through. If not, it is refused.[4]
  5. The record. Both proxies note the call, so the team can see who talked to whom and spot odd traffic.[3]
  6. The renewal. ID cards are short-lived and renewed automatically. In one popular mesh, Linkerd, they expire after 24 hours.[5]
Diagram titled How a service mesh passes one message. At the top, a box labelled Control centre (control plane) hands out ID cards and rules, with dashed lines down to two proxies. Below, on the left, the Basket service sends its message to its own proxy (step 1). The basket proxy and the payments proxy check each other's ID cards and send the message scrambled (step 2, mutual TLS). The payments proxy checks the rule that basket may call payments (step 3) and passes the message to the Payments service (step 4). A green bar says the services do not talk to each other directly: their helpers check, scramble and record each call.
Figure 1. One message through a mesh: the helpers check IDs, scramble the message and apply the rules.

Not every mesh puts a helper beside each service. Some newer designs share one helper per computer, with an extra helper only where detailed rules are needed. Istio calls this ambient mode.[6] The idea is the same: checking and scrambling happen outside the app's code.

Before and after diagram titled Watching or enforcing. Left panel, labelled Watching only: three services in the mesh, plain and checked traffic both accepted, and no rule on who may call payments, so an unknown caller from inside the network reaches payments. Right panel, labelled Enforcing: checked traffic only, and a rule that only basket may call payments, so the unknown caller is refused. A note says a common path is to watch while services move in, then switch to enforcing.
Figure 2. A mesh that only watches still lets unchecked callers through. Enforcing mode refuses them.

A worked example

Dana Tanaka has just joined the platform team at Linden Lettings, a fictional letting agency with an online booking app. The app is built from about forty small services.

In her first week, a manager tells her, "Don't worry about security between services. The mesh does it."

Dana remembers the post room. A post room only helps if every letter goes through it, and if someone checks the badges. So she asks to see the mesh rules.

She finds two gaps. First, the connection mode still accepts plain traffic. It was left that way during the move into the mesh, and nobody switched it over. Second, the payments service has no rule about who may call it.

She checks the call records. Every call to payments in the records comes from the bookings service, as expected. She sees no unexpected callers in the records available to her.

Dana writes a short plan. Switch one quiet service to "checked traffic only" first and watch for errors. Then add a rule that only bookings may call payments. Then roll the change out to the rest, a few services at a time.

Two services break on the first try, because they were never added to the mesh. The team adds them, and the switch goes through.

At the next team meeting, the manager changes the line. "The mesh does it, and Dana checked."

Myths and mistakes

What people thinkWhat is true
Installing a mesh makes the app secure.A mesh only enforces the rules it is given. Some default settings accept plain traffic and allow callers with no rule.[4]
Every message is now scrambled.Traffic to or from services outside the mesh, or on skipped ports, may not be covered.[5]
A mesh replaces logins and access checks in the app.The mesh checks which service is calling. The app still needs to check which person is asking and what they may see.
The control centre is just plumbing.It hands out every ID card and rule. Treat access to it like access to the keys of the whole building.
A mesh is the same as an API gateway.A gateway mainly guards traffic coming in from outside. A mesh mainly handles traffic between services inside.

What can I do this week?

  • Ask which services are in the mesh and which are not.
  • Find out whether the mesh accepts plain traffic or checked traffic only.
  • Pick one important service and check who is allowed to call it.
  • Ask who can change the mesh settings, and whether changes are reviewed.
  • Look at the call records for one service and see whether the callers make sense.

Checklist

  • We know which services are inside the mesh and which are outside it.
  • Connections between services use checked, scrambled traffic only, once migration is done.
  • Each important service has a rule naming who may call it.
  • ID cards for services are short-lived and renewed automatically.
  • Access to the control centre is limited and changes are reviewed.
  • Call records are kept and someone looks at them.
  • The app still checks people's logins and permissions, as well as the mesh.

Common questions

Do I need a service mesh?

Not always. A mesh pays off when an app has many services that talk to each other and teams want the same security everywhere. A small app with a few parts may manage with simpler tools. A mesh adds moving parts that someone has to run and understand.

What is the difference between a service mesh and an API gateway?

A gateway mainly sits at the front door and handles requests coming in from outside, such as from a phone app. A mesh mainly handles messages between services inside the app. Many companies use both. See API Gateway vs Service Mesh.

What is a sidecar?

A sidecar is the name for a helper program that runs right next to one service, like a sidecar on a motorbike. It passes that service's messages in and out. Some newer meshes share helpers across a computer instead, to save resources.[6]

Does a service mesh involve non-human identities?

Yes. Each service gets its own identity and a digital ID card so it can prove who it is to other services. These are non-human identities (NHIs): digital identities that represent software rather than a person. They need owners, limits and renewal like any other.

Which service meshes are common?

Istio and Linkerd are two widely used open-source meshes, and cloud providers offer their own. They share the same basic idea of helpers plus a control centre. Their settings and defaults differ, so check the documentation for the one you use.

Where next?

Ready for the detail? Read the practitioner guide: Service Mesh Security Guide. It goes further into strict and permissive modes, writing access rules and protecting the control centre.

Also useful:

Related NHI Mgmt Group resources: Non-Human Identities for Beginners · Service Mesh Health Check · Cloud Workload Identity Guide

Key terms

Service mesh
A layer that manages, protects and records the messages between the services of an app.
Microservices
A way of building an app from many small, independent services that each do one job.
Proxy (sidecar)
A small helper program that passes a service's messages in and out and applies the mesh's rules.
Control plane
The control centre of a mesh that hands out ID cards and rules to every helper.
Mutual TLS
A connection where both sides prove who they are and the messages are encrypted.
Certificate
A digital ID card that proves which service or computer is which.
Workload identity
An identity given to a running program so it can prove who it is to other programs.

Sources and further reading

  1. Service mesh. Cloud Native Glossary, Cloud Native Computing Foundation. https://glossary.cncf.io/service-mesh/, accessed 28 Nov 2026.
  2. Microservices architecture. Cloud Native Glossary, Cloud Native Computing Foundation. https://glossary.cncf.io/microservices-architecture/, accessed 28 Nov 2026.
  3. The Istio service mesh. Istio project. https://istio.io/latest/about/service-mesh/, accessed 28 Nov 2026.
  4. Security concepts. Istio documentation, Istio project. https://istio.io/latest/docs/concepts/security/, accessed 28 Nov 2026.
  5. Automatic mTLS. Linkerd documentation, Linkerd project. https://linkerd.io/2-edge/features/automatic-mtls/, accessed 28 Nov 2026.
  6. Ambient mode overview. Istio documentation, Istio project. https://istio.io/latest/docs/ambient/overview/, accessed 28 Nov 2026.
  7. SP 800-204A, Building Secure Microservices-based Applications Using Service-Mesh Architecture. R. Chandramouli and Z. Butcher, National Institute of Standards and Technology, May 2020. https://csrc.nist.gov/pubs/sp/800/204/a/final, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.