Securing Spring Cloud services

In this section, we will secure our Spring Cloud configuration and for simplicity purposes, temporarily free the Journaler API from security limits. We will demonstrate the basic principles of securing microservices and guide you step by step in achieving this.

Each of our modules must support Spring Security and Spring sessions. For that purpose, extend each build.gradle configuration with Spring Security and Spring session support dependencies:

...  
dependencies { 
    compile 'org.springframework.boot:spring-boot-starter-security' 
} 
...  

We will store all of our sessions in memory. For that purpose, we will use the Redis in-memory database. We have to extend each of our applications to support it by extending ...

Get Building Applications with Spring 5 and Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.