env-file with # Character in value #20255
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
In an env-file that contains several environment variables to mount into a container. One could be a password. If the env Variable value contains a
#
, the#
and following characters are ignored.This is only seen in 4.7.0 and not in previous releases.
Steps to reproduce the issue
Steps to reproduce the issue
test.env
with the following contentsDB_PASSWORD=thisIs*a#Test
--env-file
.podman run -it --rm --env-file test.env fedora:38 printenv | grep DB_PASSWORD
Describe the results you received
In 4.7.0, any value in the env vars file, if a
#
is part of the value, it will remove any values after the#
Describe the results you expected
In a Podman 4.6.2 release, the full value is present:
podman info output
The text was updated successfully, but these errors were encountered: