-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: NO_PROXY does not seem to be respected #535
Comments
We rely on golang's http client to handle any proxy settings for us -- Witness itself doesn't do anything special regarding I don't see any changes to how we instantiate HTTP clients in the diffs between 0.7.0 and 0.6.0, so I wouldn't expect any changes as to how Witness regards proxy variables. I'll try this out locally and see if I can reproduce. |
@zprebosnyak-lm I think this will solve the issue but, I don't have a quick way to test it. In the last release, we moved from a deprecated GRPC function to a new one and probably got the connection options wrong. in-toto/go-witness#402 If you're comfortable pulling this down and testing the code, that would be great! If not, I can create a "beta" release with the binary to pull down directly. |
@jkjell Happy to help test! Unfortunately I am not familiar with golang. If you could provide the commands to build go-witness from the source code or create the "beta" release binary that'd be great |
Hi @zprebosnyak-lm! If you are familiar with git, you can do the following to run witness from a branch with go:
module github.com/in-toto/witness
go 1.23.2
+ replace github.com/in-toto/go-witness => ../go-witness // <- this is the relative path of `go-witness` repository
Thanks for the help @zprebosnyak-lm 🙏 |
@ChaosInTheCRD thank you for that! So I cloned fresh copies of both repos, switched to the go-witness
ran
Re ran witness 0.6.0 binary to verify token had not expired and it still was working |
Ignore the last part about not getting as far with proxies unset I realized I forgot to unset lower case http/s/no _proxy vars. Output with no proxies is actually
|
What steps did you take and what happened:
New Witness version 0.7.0 seems to not respect NO_PROXY value. Witness 0.6.0 works as intended with the same options. When running
witness run ...
the HTTPS_PROXY is read in but the NO_PROXY does not seem to be. If I am missing proxy settings please let me know, I checked the --help output as well as this doc but do not see anything about proxies.Pulled down the witness source code and debugging shows the proxy trying to be used for the internal Fulcio instance.
NO_PROXY
is set to.mycompany.com
Removing the proxy environment variables results in below output. The external time stamp server requires the proxy
$WITNESS_RUN_CLI_OPTS
is set to:What did you expect to happen:
Witness run to use the proxy for external time stamp server and not use it for internal fulcio instance
witness v0.6.0 output
Environment:
environment
locally and in pipelinegit,gitlab
The text was updated successfully, but these errors were encountered: