Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passwords should be stored in docker secrets #85

Open
kafeinnet opened this issue Oct 16, 2017 · 5 comments
Open

Passwords should be stored in docker secrets #85

kafeinnet opened this issue Oct 16, 2017 · 5 comments

Comments

@kafeinnet
Copy link

Hi,

Env vars are insecure. So, passwords like the mysql one should be retrieved from docker secrets instead of env vars.

Maybe the entrypoint script could source secret if any is provided (/run/secrets/*), then get password from env var if no secret is present, then default to a random value.

\fab

@jjethwa
Copy link
Owner

jjethwa commented Oct 16, 2017

Thanks for the issue, @kafeinnet

Docker secrets is available in docker 1.13 or higher. I primarily use CoreOS to host my containers and docker 1.13 is not available just yet (see: https://coreos.com/releases ). I can make the suggested changes. Would you be OK with the entrypoint script checking for the existence of secrets using the same naming convention as the environment variables? Example:

/run/secrets/DATABASE_ADMIN_PASSWORD

@kafeinnet
Copy link
Author

Yep, that would be perfect.

jjethwa pushed a commit that referenced this issue Oct 18, 2017
@jjethwa
Copy link
Owner

jjethwa commented Oct 18, 2017

Hi @kafeinnet

Please check the newest version of the latest tag and let me know if it works for you 😄

@kafeinnet
Copy link
Author

There is a typo (some spaces around =) when you read the content of the secret files which cause an error. Beside that, it works perfectly.

I made a pull request ( #87 ) with the typo corrected and a new option I needed for my setup. Fell free to merge it.

\fab

@jjethwa
Copy link
Owner

jjethwa commented Oct 18, 2017

Hi @kafeinnet

Oops! Thanks for finding and fixing it 👍

adarobin pushed a commit to adarobin/rundeck that referenced this issue Dec 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants