tenv icon indicating copy to clipboard operation
tenv copied to clipboard

Support of plain HTTP proxy

Open kvendingoldo opened this issue 1 year ago • 2 comments

Describe the solution you'd like tfswitch support --mirror command that can be used with local proxy. E.g.: ["tfswitch", "--mirror", "https://localhost-archive/mirror/terraform", "--bin", f"{os.getcwd()}/bin/terraform"]

Looks like that it should work via TFENV_REMOTE, but we have to check HTTP compatibility.

kvendingoldo avatar May 22 '24 09:05 kvendingoldo

Found in https://github.com/MatthewJohn/terrareg/issues/42

kvendingoldo avatar May 22 '24 09:05 kvendingoldo

Setting a value for on of the <TOOL>_REMOTE env var change the behavior of tenv, because it is considered that the user will access an http proxy to download artifact.

However tenv still call api (github or hashicorp) to list those artifact. do you think it would be better to change the default proxy mode ? (list from the proxy when <TOOL>_LIST_MODE is not forced to "api")

dvaumoron avatar May 22 '24 16:05 dvaumoron

I think yes, it's more obvious way. WDYT?

kvendingoldo avatar May 24 '24 18:05 kvendingoldo

Ok

dvaumoron avatar May 24 '24 20:05 dvaumoron