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
In #2053 and #2228, the dagger CLI was patched in order to use the host http_proxy and https_proxy env. vars from the host.
However, with the recent release of the GO SDK, the same errors shows up again (see log output). However, the APKINDEX.tar.gz is reachable since I'm able to curl it.
Should we handle this throw the host's HTTP_* vars or should we expose this in the SDK itself?
I'd prefer it's in our actual API somehow. Applying host HTTP_* vars by default to commands that are running on (possibly remote) containers doesn't seem easy to work with.
If it's not in the API itself then yeah it could be arguments to dagger.Connect, but even that seems really restrictive (what if you want the proxy for some calls but not another, or need different proxy settings).
seems like it will cover the most cases (including future ones involving extensions) and it will also be the least work for our SDKs since it can just be picked up through codegen rather than manually coded into each SDK.
Reacted by Guillaume de Rouville and Nipuna Perera
The gist is, that the shim docker image is not built on the fly anymore. It's included with the engine and that solves the shim image proxy issue. For subsequent containers you could always pass in the proxy via container.withEnvVariable.
Activity
aluzzardi commentedon Nov 15, 2022
/cc @sipsma @vito @grouville
Should we handle this throw the host's
HTTP_*vars or should we expose this in the SDK itself?sipsma commentedon Nov 15, 2022
I'd prefer it's in our actual API somehow. Applying host
HTTP_*vars by default to commands that are running on (possibly remote) containers doesn't seem easy to work with.If it's not in the API itself then yeah it could be arguments to
dagger.Connect, but even that seems really restrictive (what if you want the proxy for some calls but not another, or need different proxy settings).Putting it in the API like:
seems like it will cover the most cases (including future ones involving extensions) and it will also be the least work for our SDKs since it can just be picked up through codegen rather than manually coded into each SDK.
grouville commentedon Nov 15, 2022
100% Agreeing with Erik's comment
nipuna-perera commentedon Nov 15, 2022
juaruipav commentedon Nov 20, 2022
Ey Dagger Team, thanks for addressing this issue. We're super interested in trying this GO SDK in our company to replace our CICD pipeline.
However we can't use it because the proxy issue.
Do you have an idea about when you would have time to implement the patch?
Thanks 👍
JJ
nipuna-perera commentedon Nov 20, 2022
Hey @juaruipav , this was resolved for me with #3913 and that change should be in the next release which is this week I believe. If you are curious to try it now locally, you can follow the workaround in - https://discord.com/channels/707636530424053791/1031785076029128784.
The gist is, that the shim docker image is not built on the fly anymore. It's included with the engine and that solves the shim image proxy issue. For subsequent containers you could always pass in the proxy via
container.withEnvVariable.nipuna-perera commentedon Nov 20, 2022
@aluzzardi , can this be closed with #3913 or are you waiting for a generic proxy solution?