hermitcrab
hermitcrab copied to clipboard
Usage behind proxy
Hi!
I try to use hermitcrab alongside with burrito for provider caching.
Our cluster is behind a proxy for all internet trafic.
I tried to set HTTPS_PROXY or https_proxy but don't see any difference in hermitcrab logs:
D retry requesting GET https://registry.terraform.io/v1/providers/hashicorp/vault/versions after 2s
D retry requesting GET https://registry.terraform.io/v1/providers/hashicorp/vault/versions after 4s
D retry requesting GET https://registry.terraform.io/v1/providers/hashicorp/vault/versions after 8s
D retry requesting GET https://registry.terraform.io/v1/providers/hashicorp/vault/versions after 15s
D retry requesting GET https://registry.terraform.io/v1/providers/hashicorp/vault/versions after 15s
W reached limitation of retry requesting GET https://registry.terraform.io/v1/providers/hashicorp/vault/versions
Inside the hermitcrab pod, with curl the URL is well resolved using the proxy:
curl -vI https://registry.terraform.io/v1/providers/hashicorp/vault/versions
* Uses proxy env variable https_proxy == 'http://proxy.mycompany.private:3128/'
* Host proxy.service.mycompany.private:3128 was resolved.
* IPv6: (none)
* IPv4: 10.32.2.2, 10.32.2.1
* Trying 10.32.2.2:3128...
[...]
HTTP/2 200
How to configure hermitcrab to use a proxy?