You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to configure HTTP proxy server for CSI to access AWS services in environments where direct Internet access is restricted.
Describe the solution you'd like in detail
I tested mount-s3 binary with passing HTTPS_PROXY and HTTP_PROXY environment variables and it uses them to proxy the requests via the configured proxies. I could not find how to pass environment variables to mount systemd unit via driver configuration. So either allow passing env variables or create specific config for HTTP proxy.
Describe alternatives you've considered
Maybe in new approach with mounting via container(#279), it will be possible to just pass env variables to mountpoint container in a generic Kubernetes way and this would essentially cover this case?
The text was updated successfully, but these errors were encountered:
In our case, if Mountpoint is running in pod, it would use Pod network, which has access to the Internet. So we would not need any proxy config in such case. But maybe in different setups it would still be beneficial to configure proxy or pass env variables to mountpoint-s3.
Hey @spynode, thanks for the report! Seems like #279 would solve your use-case. We'd like to hear if you have other use-cases where you still need to pass specific environment variables to Mountpoint containers.
Meanwhile, to unblock yourself with current systemd approach, there is a way to modify Mountpoint's systemd units using drop-in files. This is kinda a bit hacky, but if you want to unblock yourself until #279 delivered, you might consider using it.
You can create a drop-in file at /etc/systemd/system/mount-s3-.service.d/ (as Mountpoint systemd units are named mount-s3-<mp-version>-<uuid>.service), and your drop-in files would be applied to Mountpoint systemd units during creation. For example:
/feature
Is your feature request related to a problem? Please describe.
I want to configure HTTP proxy server for CSI to access AWS services in environments where direct Internet access is restricted.
Describe the solution you'd like in detail
I tested mount-s3 binary with passing HTTPS_PROXY and HTTP_PROXY environment variables and it uses them to proxy the requests via the configured proxies. I could not find how to pass environment variables to mount systemd unit via driver configuration. So either allow passing env variables or create specific config for HTTP proxy.
Describe alternatives you've considered
Maybe in new approach with mounting via container(#279), it will be possible to just pass env variables to mountpoint container in a generic Kubernetes way and this would essentially cover this case?
The text was updated successfully, but these errors were encountered: