-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for proxies #2
Description
Hi!
I started testing and using restsh and face the challenge to use HTTPs proxies with authentication to access F5s. I was already able to work my way around with environment variables to use a proxy and pass or ignore the proxy certificate, but inserting or adding user:pass credentials is more tricky via environment vars. I could only think about a netrc file, but would like to avoid this.
Can you add support for a proxy configuration to be able to set:
proxy_host:port
proxy_cacert and / or proxy_insecure
proxy_user
proxy_pass
Where as user and pass are different from the RESTSH_USER / RESTSH_PASS.
I think if a proxy_host is set in the host configuration file then a prompt for proxy_user / proxy_pass would be fine before prompting for the host user / pass credentials and keeping the creds for the session. If all could be set via environment vars would make it then perfect for CICD!
I'm happy to assist or test if needed.
Greetings from Austria!
Erich