Secure client

The same as for the service discovery, we may secure the Config Server with basic authentication. It can be easily enabled on the server side with Spring Security. In that case, all the client needs to set is the username and password in the bootstrap.yml file:

spring: cloud:   config:     uri: https://localhost:8889     username: user     password: secret

Get Mastering Spring Cloud 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.