Microservices Security in Action

Front Cover
Simon and Schuster, Aug 4, 2020 - Computers - 616 pages
Microservices Security in Action teaches you how to address microservices-specific security challenges throughout the system. This practical guide includes plentiful hands-on exercises using industry-leading open-source tools and examples using Java and Spring Boot.

Summary
Unlike traditional enterprise applications, Microservices applications are collections of independent components that function as a system. Securing the messages, queues, and API endpoints requires new approaches to security both in the infrastructure and the code. Microservices Security in Action teaches you how to address microservices-specific security challenges throughout the system. This practical guide includes plentiful hands-on exercises using industry-leading open-source tools and examples using Java and Spring Boot.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the technology
Integrating independent services into a single system presents special security challenges in a microservices deployment. With proper planning, however, you can build in security from the start. Learn to create secure services and protect application data throughout development and deployment. As microservices continue to change enterprise application systems, developers and architects must learn to integrate security into their design and implementation. Because microservices are created as a system of independent components, each a possible point of failure, they can multiply the security risk. With proper planning, design, and implementation, you can reap the benefits of microservices while keeping your application data—and your company’s reputation—safe!
About the book
Microservices Security in Action is filled with solutions, teaching best practices for throttling and monitoring, access control, and microservice-to-microservice communications. Detailed code samples, exercises, and real-world use cases help you put what you’ve learned into production. Along the way, authors and software security experts Prabath Siriwardena and Nuwan Dias shine a light on important concepts like throttling, analytics gathering, access control at the API gateway, and microservice-to-microservice communication. You’ll also discover how to securely deploy microservices using state-of-the-art technologies including Kubernetes, Docker, and the Istio service mesh. Lots of hands-on exercises secure your learning as you go, and this straightforward guide wraps up with a security process review and best practices. When you’re finished reading, you’ll be planning, designing, and implementing microservices applications with the priceless confidence that comes with knowing they’re secure!
What's inside
  • Microservice security concepts
  • Edge services with an API gateway
  • Deployments with Docker, Kubernetes, and Istio
  • Security testing at the code level
  • Communications with HTTP, gRPC, and Kafka
About the reader
For experienced microservices developers with intermediate Java skills.
About the author
Prabath Siriwardena is the vice president of security architecture at WSO2. Nuwan Dias is the director of API architecture at WSO2. They have designed secure systems for many Fortune 500 companies.

Table of Contents

PART 1 OVERVIEW

1 Microservices security landscape

2 First steps in securing microservices

PART 2 EDGE SECURITY

3 Securing north/south traffic with an API gateway

4 Accessing a secured microservice via a single-page application

5 Engaging throttling, monitoring, and access control

PART 3 SERVICE-TO-SERVICE COMMUNICATIONS

6 Securing east/west traffic with certificates

7 Securing east/west traffic with JWT

8 Securing east/west traffic over gRPC

9 Securing reactive microservices

PART 4 SECURE DEPLOYMENT

10 Conquering container security with Docker

11 Securing microservices on Kubernetes

12 Securing microservices with Istio service mesh

PART 5 SECURE DEVELOPMENT

13 Secure coding practices and automation




 

Contents

PART
1
EDGE SECURITY
55
Accessing a secured microservice via a singlepage application
83
Engaging throttling monitoring and access control
109
Engaging 5 1 throttling monitoring and access control Throttling at the API gateway with Zuul 110
110
PART 3
135
1 Use eastwest cases for traffic with JWT
161
Securing reactive microservices
196
SECURE DEVELOPMENT
339
with Jenkins
355
appendix A OAuth 2 0 and OpenID Connect
367
appendix B JSON Web Token
386
Singlepage application architecture
397
appendix E Docker fundamentals
409
appendix F Open Policy Agent
448
appendix G Creating a certificate authority and related keys with
470

SECURE DEPLOYMENT
227
1 microservices on Kubernetes
262
Securing 12 1 Setting microservices up the Kubernetes with Istio deployment service mesh
296
appendix K Service mesh and Istio fundamentals
536
index
569
Copyright

Other editions - View all

Common terms and phrases

About the author (2020)

Prabath Siriwardena is the vice president of security architecture at WSO2, a company that produces open source software, and has more than 12 years of experience in the identity management and security domain.

Nuwan Dias is the director of API architecture at WSO2 and has worked in the software industry for more than 7 years, most of which he spent focusing on the API management domain. Both have helped build security designs for Fortune 500 companies including Boeing, Verizon, Nissan, HP, and GE.

Bibliographic information