common icon indicating copy to clipboard operation
common copied to clipboard

RFE: Support systemd credentials

Open ashley-cui opened this issue 4 years ago • 4 comments

Secrets sounds a lot like systemd "credentials". (Though we try a bit harder to lock them down via ramfs rather than tmpfs). Might be worth making them compatible by setting the CREDENTIALS_PATH env var implicitly in podman) By making podman secrets and systemd credentials compat you gain that you can pass them from podman to systemd running in the container further down the tree. - via twitter

freedesktop.org/software/systemd/man/systemd.exec.html#Credentials https://twitter.com/pid_eins/status/1381731529404071940

ashley-cui avatar Apr 21 '21 13:04 ashley-cui

@vrothberg @giuseppe any idea what we should do with @poettering tweet?

@poettering do you think we should set the CREDENTIALS_PATH to the path to secrets if the user creates a conainer with a secret?

I find very little documentation googling CREDENTIALS_PATH?

rhatdan avatar Jun 10 '21 09:06 rhatdan

Yes, if podman has a directory where it makes these secrets/credentials available as regular files, then it would be excellent if it would set the $CREDENTIALS_PATH env var to the path to this dir. That way program code could reference both podman secrets and systemd credentials the exact same way: if you look for some secret/credential "xyz" you'd open "$CREDENTIALS_PATH/xyz" and that's it.

The docs for the feature in systemd you find here:

https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Credentials

poettering avatar Jun 14 '21 12:06 poettering

@ashley-cui Could you look at this? We need to make sure that CREDENTIALS_PATH environment is not saved in the image, if the image was saved.

rhatdan avatar Jun 14 '21 14:06 rhatdan

@ashley-cui ping

vrothberg avatar Mar 22 '22 14:03 vrothberg