skuzzle / cmp

Create and share public counters
https://countmy.pizza
MIT License
6 stars 1 forks source link

Allow to set secrets from file #42

Closed skuzzle closed 4 years ago

skuzzle commented 4 years ago

Docker Swarm secrets can not set environment variables directly. It would be great if there was a way to read the contents for a spring boot property from file. Something like

services:
  cmpbackend:
    ...
    environment:
    - "spring.security.oauth2.client.registration.google.client-secret=$fromFile(/run/secrets/cmp_google_client_secret)"

There is most likely a way in Spring to configure this

skuzzle commented 4 years ago

https://github.com/spring-projects/spring-boot/issues/20842