Replies: 6 comments 10 replies
-
Why not pass them in as environment variables, then only the primary process gets them and it can choose whether to pass them on to other processes or to unset it from the environment. |
Beta Was this translation helpful? Give feedback.
-
I wasn't even aware that you could do that. That makes things easy. Thanks a lot 👍 |
Beta Was this translation helpful? Give feedback.
-
Where are podman secrets env vars written to in container. Unsetting the env vars only affects the current process and I want to make the changes permanent. My workflow would be:
Now in that exec process the secrets no longer exist but if later, I I could place the secret purge script in |
Beta Was this translation helpful? Give feedback.
-
Okay, it seems that in privileged containers, I can mount the secrets and then run As these are fuse mounts from outside the container, are there any commands that can be run on the host to interrupt and unmount them? |
Beta Was this translation helpful? Give feedback.
-
The umount method seems pretty great :) Would you happen to know if after unmounting the secret contents are no longer accessible in plaintext anywhere? While it is true that unmounting would make the secret inaccessible from within the container, I'm still wondering if the host machine would actually still have some volume somewhere holding the secret in plaintext while the container is still active? I'm just trying to ensure that the secret isn't lingering anywhere after I'm done using it in my container, I'd imagine unmounting would do this but I wasn't sure how exactly the secrets were getting mounted behind the scenes. If you have any insight I greatly appreciate it ! |
Beta Was this translation helpful? Give feedback.
-
I'm not sure because I do not know how the secrets are stored and mounted to the containers. The podman team would be better suited to answer your questions (and mine too hopefully). |
Beta Was this translation helpful? Give feedback.
-
Is there a way for secrets to be removed from a container once it is running and any services that use them have started? I don't mind this being an
exec
command that runs inside the container rather than a call to the container from the outside. I have tried removing them with rm but as they seem to be mounted with fuse, I get aDevice or resource busy
error.Beta Was this translation helpful? Give feedback.
All reactions