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
Cannot authenticate behind the proxy - connection refused #62
Comments
Finally I found workaround ! it seems that Jenkins as such by default does not use/respect system proxy. So even when you define environmental variable http_proxy or https_proxy it will not work . So Manage Jenkins / manage PLugins / advanced - this proxy configuration seems to work only for plugins installation + maybe only some of the plugins are able to use it ....depends As I am using docker for simulation of this issue in my case trick was to run jenkins using options to inject environmentable variables of http_proxy + https_proxy and java.net.useSystemProxies=true
Since then I was able to see in Fiddler that finally when Service Account Credentials option was selected , traffic went trough proxy and logged by Fiddler . Hope that this will help someone. |
HI All, Would be possible to update this plugin so we can define proxy for it ? For example in Configure System (Global settings) . Thanks Martin |
Can you clarify what you mean by a proxy for the plugin? Do you mean allow the proxy to be used by the plugin without defining JAVA_OPTS? Or would you like to define a proxy separate from the system proxy for that Google OAuth credential entry? |
Probably second option would be better "to define a proxy separate from the system proxy for that Google OAuth credential entry" |
Hi, @stephenashank , For me, that makes sense to take a look for global = environment = variables as well, Thank you so much. |
Have you tried: https://wiki.jenkins.io/display/JENKINS/JenkinsBehindProxy Manage Jenkins > Manage Plugins > Advanced. I'm trying to understand the issue at hand here, so I need to know if the above link will solve your issues or if this is more complex. |
Hi, @rachely3n , yes, we tried, but from my understanding, this settings is being taken only for plugins update, but we have actually same proxy setup over there as well.
All the jobs, and as well other plugins are accepting this setup (on proxy we have opened some several external URLs), but this plugin seems to have an issue once the job is being configured in jenkins, its failing due connection (which is whitelisted on proxy), as mentioned, only way, how google oauth is accepting proxy setup is to pass proxy setup into java opts directly |
Hi All,
Recently we have installed Google Kubernetes Engine plugin into Jenkins which is using Google Oauth plugin for authentication against google. We are behind quite restrictive firewall and despite the fact we have whitelisted googleapis.com and accounts.google.com , we are getting connection refused in stack trace.
Is there any list of endpoints which should be whitelisted to access google services ?
Thank you
regards
Martin
The text was updated successfully, but these errors were encountered: