Securing Microservices
Our penultimate chapter of this book explores how to secure APIs within microservices, an increasingly important topic. Although this topic warrants a chapter of its own, this does not mean that the lessons you have learned about securing API thus far are no longer applicable to microservices. Securing APIs within microservices consists of applying the cornerstone principles we’ve learned so far, albeit in new and exciting ways.
Firstly, we will understand why microservices arose as a deployment model to understand the motivations for a new architecture better. Then, we’ll look at the foundations of microservices and how they can be secured. APIs are all about connectivity, and microservices present unique challenges to securing connections due to the sheer volume of components requiring interconnection in this new architecture. Similarly, access control poses new challenges within a microservices architecture due to the increased client landscape...