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

Support systemd credentials out-of-the-box #381

Open
muety opened this issue Jun 21, 2022 · 0 comments
Open

Support systemd credentials out-of-the-box #381

muety opened this issue Jun 21, 2022 · 0 comments

Comments

@muety
Copy link
Owner

muety commented Jun 21, 2022

Systemd version 247 introduced credentials management, and version 250 made it even more convenient to use.

They suggest that:

[...] In an ideal world, well-behaved service code would directly support credentials passed this way, i.e. look for $CREDENTIALS_DIRECTORY and load the credential data it needs from there. [...]

This way, passwords, etc. wouldn't even have to be passed as env vars to the process. I'd like to support that in Wakapi. Env var would still take precedence if set, though.

Moreover, the example wakapi.service file should contain an example that uses these managed credentials for database credentials and password salt.

Something like:

LoadCredential=db_password:/etc/wakapi/db_password.txt
Environment=WAKAPI_DB_PASSWORD=%d/db_password

Version 250 doesn't seem to be as wide-spread, yet though.

Also, include a systemd-creds command example on how to create new (encrypted) creds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant