-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
SSL_CERT_FILE in podman machine's systemd environment #16041
Comments
A friendly reminder that this issue had no activity for 30 days. |
Related PR: #12748
Scripts in |
Passing /~https://github.com/containers/podman/blob/main/pkg/machine/qemu/machine.go#L566-L574 |
@ashley-cui @baude WDYT? |
Sounds reasonable to me! @bjorndown Would you be interested in opening a PR? |
@ashley-cui Yes, I will give it a try. #16413 does look related. Should I include |
…nvironment. Fixes containers#16041. Signed-off-by: Björn Mosler <dev@bjoern.mosler.ch>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I work in an environment that uses an interception proxy, meaning I need to set the normal proxy variables as well as the SSL_CERT_FILE variable when using podman machine on my mac. In recent podman releases, the certificate file gets copied into the VM correctly and almost all of the environment variables get set correctly, except one: the SSL_CERT_FILE variable does not get set at the systemd level to point at the copied-in certificate file. As a result, I am unable to pull images when on my corporate network:
The error on the last line is due to the proxy's certificate not being set for processes being spawned by systemd. By manually editing
/etc/systemd/system/envset-fwcfg.service
to force the SSL_CERT_FILE variable to be added to the systemd config and then restarting the podman machine I was able to successfully pull images:The changed line in
envset-fwcfg.service
:Successful pull afterward:
It looks to me like, if the SSL_CERT_FILE variable is set on the host, then the correct path to the copy in the VM needs to be added to the systemd environment at VM boot time.
Steps to reproduce the issue:
Start a podman machine on a mac with proxy and certificate variables set
Try to pull an image
Describe the results you received:
SSL certificate errors
Describe the results you expected:
Succesful image pull
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (/~https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: