Skip to content
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

Fix proxy authentication #688

Merged
merged 2 commits into from
Oct 20, 2023
Merged

Fix proxy authentication #688

merged 2 commits into from
Oct 20, 2023

Conversation

basil
Copy link
Member

@basil basil commented Oct 20, 2023

While testing #677 I noticed that proxy authentication was broken even on trunk, no matter which combination of entrypoints and parameters I tried. If we advertise a -proxyCredentials flag, then it should at least work. This PR gets the flag to work as advertised.

Testing done

Set up a Squid forward proxy that required authentication, then ran:

java -Djdk.http.auth.tunneling.disabledSchemes= -Dhttp.proxyHost=${IP_ADDRESS} -Dhttp.proxyPort=3128 -jar target/remoting-999999-SNAPSHOT.jar -url ${JENKINS_URL} -secret ${SECRET} -name test -proxyCredentials ${USERNAME}:${PASSWORD}

Before this PR it either failed either in the isPortVisible method or when trying to actually establish the tunnel. Now it works in both places.

@basil basil added the bug For changelog: Fixes a bug. label Oct 20, 2023
@jglick jglick enabled auto-merge (squash) October 20, 2023 18:03
@jglick jglick merged commit 3dd999d into jenkinsci:master Oct 20, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants