Best way of storing secrets in Karavan dev env #1553
-
Ask a questionI currently struggle on how to handle secrets in my development environment. The 2 most usual ways of handling secrets I found is via env variables (in projects docker-compose) or the application properties. However both files are synced to git. What is a convenient way of handling my secrets then? VariantWeb Application Container Management (if applicable)Docker Operating System (if applicable)MacOS Version4.10.2 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You could use .env file on the host and https://docs.docker.com/compose/how-tos/environment-variables/set-environment-variables/#use-the-env_file-attribute |
Beta Was this translation helpful? Give feedback.
-
Or you could use HashiVault |
Beta Was this translation helpful? Give feedback.
You could use .env file on the host and https://docs.docker.com/compose/how-tos/environment-variables/set-environment-variables/#use-the-env_file-attribute