Skip to content

Adds a EnvironmentPostProcessor to your spring project to use docker secrets in your application properties.

Notifications You must be signed in to change notification settings

DDS-GmbH/spring-docker-secrets-properties

Repository files navigation

Docker Secret Processor

The Docker Secret Processor can be included into a project to load docker secrets into spring boot application config files.

To use it, add it in your package management and set the below property in src/main/resources/META-INF/spring.factories

org.springframework.boot.env.EnvironmentPostProcessor=com.docutools.dockersecretprocessor.DockerSecretProcessor

Secrets have to be referenced with the prefix docker-secret-, so an example file should look like this:

db:
  user: test
  secret: ${docker-secret-db-password}

Designed with reference to kwonghung-YIP/spring-boot-docker-secret

About

Adds a EnvironmentPostProcessor to your spring project to use docker secrets in your application properties.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages