chapter six
6 Securing service-to-service communication with certificates
This chapter covers
- Creating certificates and securing microservices with mutual Transport Layer Security (mTLS)
- The challenges in certificate management, trust bootstrap, and certificate revocation in a highly distributed system
- The solutions and workarounds to address the challenges in securing microservices with mTLS
In the past few chapters, we discussed how end-to-end security works in a typical microservices deployment and explored multiple options for securing the edge with an API gateway. Edge security deals with authenticating and authorizing the end user, which is a system accessing a microservice on behalf of a human user or another system. When the security screening at the edge is done, the end-user context is passed across to the downstream microservices. The focus of this chapter is securing communications among microservices with mutual Transport Layer Security (mTLS). mTLS is the most popular option for securing communications among microservices.