Podman secrets value of type env
revealed in container inspection
#23788
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
Values of secrets attached to containers with
type=env
option are available on container inspection (running or exited).It is not the case with secrets attached with
type=mount
option.I do not know if this is expected per specs?
Steps to reproduce the issue
Steps to reproduce the issue
printf 'secret value' | podman secret create mysecret -
podman container run --rm --secret mysecret,type=env -d alpine sleep 300
podman container inspect -l --format '{{ .Config.Env }}'
Describe the results you received
The value of the secret is disclosed on container inspection in the
Config.Env
attribute:[... mysecret=secret value]
It is not listed in the
Config.Secrets
attribute.Describe the results you expected
I’d expect it to not appear in the
Config.Env
attribute.I’d expect to find it (undisclosed) in the
Config.Secrets
attribute, like mount type secrets are.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: