-
Notifications
You must be signed in to change notification settings - Fork 20
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
Ability to set NoProxy on the HTTP client #47
Comments
Will take a look in nearest time. thanks |
@deberhar I would like to implement the first approach, it looks reasonable. However, I'm struggling to write an integration test for it. Would you mind elaborating what are the preconditions when current version fails? |
Hi @MrZoidberg, In my opinion, it's not necessary to try to verify the actual HTTP client's proxy behavior in the unit test for the VaultSharp configuration provider; having the test verify that the hook method is (if installed) invoked and that the HttpClientHandler is passed in is probably sufficient. I've just sent you PR #52 for your consideration, which implements this change and the verify-invoked unit test. Unfortunately, I don't have Docker for Windows available -- would you please verify the new test is passing before merging? (if not, poke me and I'll fix it...) Thank you! |
Ability to set NoProxy on the HTTP client
Good afternoon, would it be possible to expose a way to set
NoProxy=true
on the underlying HttpClient? This would be helpful for working around proxy-configuration issues in our environment.VaultSharp itself offers
PostProcessHttpClientHandlerAction
as a way to perform arbitrary configuration on the HttpClient. One approach might be to expose access through a similarAction<HttpClientHandler>?
property added toVaultOptions
, which if set, could be invoked by VaultConfigurationProvider before the existingAcceptInsecureConnections
-handling code. This could then be leveraged by developers to adjust proxy settings (or make other HttpClient tweaks) as needed.An alternative approach might be to more narrowly add support for a NoProxy option in
VaultOptions
and apply that explicitly in VaultConfigurationProvider'sPostProcessHttpClientHandlerAction
handler, if you'd prefer.Happy to submit a PR for this; just let me know your preferred approach please.
The text was updated successfully, but these errors were encountered: