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

Various proxy changes #5178

Merged
merged 2 commits into from
Jun 1, 2023
Merged

Various proxy changes #5178

merged 2 commits into from
Jun 1, 2023

Conversation

shawkins
Copy link
Contributor

@shawkins shawkins commented May 26, 2023

Description

Fix #5086
Fix #1335

  • Addresses Add support for socks proxies #5086 by allowing socks proxy urls to be used. A new config HttpClient.Builder property called proxyType was added for this. Based upon the implementations I used an enum, but you could also consider using a just a string to capture support for things like socks5h.

  • There was also a bug with the vertx client and proxy support - the auth header was not being applied for websocket requests. The common interceptor was refactored and applied to vertx as well

  • Addresses NO_PROXY settings #1335 / Add support for socks proxies #5086 by ensuring that additionalConfig can be used consistently across the client types - and applied just before the final client is built so that its changes are not overriden. The changes also try to infer when it's okay to default the proxy configuration to whatever is supported to the client - we'll only force "no proxy" on the client when HttpConfigUtils determines our no.proxy / NO_PROXY setting is applicable. If that seems too broad, then we'll need to introduce yet another config property.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • I Added CHANGELOG entry regarding this change
  • I have implemented unit tests to cover my changes
  • I have added/updated the javadocs and other documentation accordingly
  • No new bugs, code smells, etc. in SonarCloud report
  • I tested my code in Kubernetes
  • I tested my code in OpenShift

@shawkins shawkins force-pushed the iss1335 branch 2 times, most recently from 46ce011 to cfb20eb Compare May 26, 2023 16:43
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

59.4% 59.4% Coverage
0.0% 0.0% Duplication

@manusa manusa added this to the 6.7.0 milestone Jun 1, 2023
@manusa manusa merged commit 59986c5 into fabric8io:master Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for socks proxies NO_PROXY settings
2 participants