System Design
11. Microservices ArchitectureAnimated
Service-to-Service Authentication
Services prove who they are to each other.
The idea
Use mutual TLS or signed tokens so each side verifies the other.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- current message
- earlier
- failure or attack
Each sidecar gets a short-lived identity certificate from the mesh.
- step:
- 1/5
- from:
- Service A (sidecar)
- to:
- Mesh CA
1/5
Time runs downward. Solid arrows are requests, dashed arrows are replies.
Step by step
- 1Each service has an identity certificate
- 2They perform a mutual TLS handshake
- 3Verify the peer
- 4Then exchange requests
Where it is used
Zero-trust networks.
Watch out for
Certificate rotation must be automated.