How can my spring boot application running inside a container access docker secrets mounted as a volume inside that same container?
Commonly suggested methods I DO NOT want to use:
- Echo the secret into an environment variable - this is insecure.
- Pass the secret in as a command line argument - this is messy with multiple secrets and hurts the local dev experience
- Manually read the secret from a file by implementing my own property loader - Spring must have a native way to do this