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

SLVS-1694 Provide system proxy settings to the SlCore process #5898

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

gabriela-trutan-sonarsource
Copy link
Contributor

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource commented Dec 16, 2024

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title SLVS-1694 Provide system proxy settings to the SlCore process SLVS-1694 Provide system proxy settings to the SlCore process Dec 16, 2024
src/SLCore/Listener/Http/SelectProxiesResponse.cs Outdated Show resolved Hide resolved
src/SLCore/Listener/Http/SelectProxiesResponse.cs Outdated Show resolved Hide resolved
// no proxy was configured at system level
return null;
}
return new ProxyDto(ProxyType.HTTP, proxyUri.Host, proxyUri.Port);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Handle the case of SOCKS proxies
  2. Are https and http proxies both considered to be ProxyType.HTTP or?
  3. Handle unsupported proxy types

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handled the Socks proxies.

According to this, there is no value for https in the Java proxy type, which SlCore uses.

For unsupported proxy types: returning HTTP seemed the most appropriate, although I added a log for this case.

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource merged commit 94abf06 into master Dec 17, 2024
6 checks passed
@gabriela-trutan-sonarsource gabriela-trutan-sonarsource deleted the gt/proxy-settings branch December 17, 2024 13:00
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.

2 participants