Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Processing Docker Secrets into Spring Environment

License

Notifications You must be signed in to change notification settings

FrogDevelopment/docker-secrets-module

Repository files navigation

Release

How to use the docker-secrets-module on your project

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
Step 2. Add the dependency
	dependencies {
	        implementation 'com.frog-development:docker-secrets-module:1.0.0'
	}
Step 3. Use the Docker Secrets defined for your service.

For each secret file found on the secrets directory, a property will be constructed as docker-secrets.{file-name}. Here, for example, we have 2 secrets my_user and my_password, leading to this configuration:

docker-secrets:
    path: /run/secrets # by default, can be omitted

spring:
  security:
    user:
      name: ${docker-secrets.my_user}
      password: ${docker-secrets.my_password}

About

Processing Docker Secrets into Spring Environment

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages