community.crypto icon indicating copy to clipboard operation
community.crypto copied to clipboard

NO_PROXY option

Open santoshsonavale opened this issue 8 months ago • 1 comments

SUMMARY
ISSUE TYPE
  • Feature Idea
COMPONENT NAME

no_proxy

ADDITIONAL INFORMATION

There are parameters call proxy_host & proxy_port available with module, but there is no option available to bypass or not to use proxy for specific url's. As an alternative solution, there are environment variables for proxy eg. http_proxy, https_proxy & no_proxy which we can set at playbook & at task level. But crypto module not able to understand environment variable set in play/task.

Please add no_proxy option parameter in module eg. proxy_host & proxy_port.


santoshsonavale avatar Mar 26 '25 11:03 santoshsonavale

Are you talking about the community.crypto.get_certificate module? That module does not use a proxy by default. It uses socket.create_connection() to connect if no proxy is configured with proxy_host and proxy_port.

felixfontein avatar Mar 26 '25 16:03 felixfontein

Thanks for your output. I will be using proxy host and port parameter. But challenge is that local/intranet url is not whitekisted. Only internet urls will be whitelist in proxy. Hence requsted for exclusion parameter eg. No prpxy for intranet url or private ips.

Thanks,

Santosh Sonavale

santoshsonavale avatar Apr 09 '25 05:04 santoshsonavale