-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
The SSO integration does not consider HTTP_PROXY env vars when making requests #9259
Comments
The |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions. |
Still pending |
@sarahhenkens Do you like to submit the PR for the above change? |
We are impacted by the same issue. When can we get a resolution please? |
Hello. For us this is a blocker for upgrading. |
This is blocking us as well, thx. |
…ixes argoproj#9259 (argoproj#9760) fix: SSO integration not considering HTTP_PROXY env vars when making requests Signed-off-by: Rohan Kumar <rohan@pipekit.io> Signed-off-by: Rohan Kumar <rohan@pipekit.io> Signed-off-by: juchao <juchao@coscene.io>
@alexec @rohankmr414, this is still broken due to the custom // Create http client with TLSConfig to allow skipping of CA validation if InsecureSkipVerify is set.
httpClient := &http.Client{Transport: &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: c.InsecureSkipVerify}}} Which is used in: func (s *sso) HandleCallback(w http.ResponseWriter, r *http.Request)
...
oauth2Context := context.WithValue(ctx, oauth2.HTTPClient, s.httpClient)
oauth2Token, err := s.config.Exchange(oauth2Context, r.URL.Query().Get("code"), redirectOption) The |
…Fixes argoproj#9259 Signed-off-by: Sarah Henkens <shenkens@slack-corp.com>
Checklist
Summary
The
github.com/coreos/go-oidc/v3/oidc
library by default uses an http client that is not reading the env vars forHTTP_PROXY
variables. This results in SSO failing to initialize at startup.Diagnostics
I added several
log.Print
statements in my fork of therelease-3.3
branch and I discovered that the root cause is occuring within theoidc.NewProvider
call:By setting the context myself with the native http client of go, it works correctly:
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: