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

Client configuration build accepts TrustContextFactory #2611

Merged
merged 7 commits into from
Apr 25, 2023

Conversation

jpcorreia99
Copy link
Contributor

@jpcorreia99 jpcorreia99 commented Apr 25, 2023

Currently, if consumers of this library want to build a client configuration but also be able to provide their own SSLSocketFactory and TrustManagers, the only option they have to do so, is via this call which does not allow the consumers to provide any extra configuration.

This PR overloads the of method to allow for a TrustContextFactory to be passed alongside the normal ServiceConfiguration, letting the caller have control both over SSL related classes and configuration.

Also overloads the createTrustContext methods to allow a security Provider class to be passed.

After this PR

==COMMIT_MSG==
Overload client config creation method to allow a TrustContextFactory to be passed as well.
==COMMIT_MSG==

Possible downsides?

The factory may get abused and provide SSL related classes that do not exactly match the security settings in the provided config.

@jpcorreia99 jpcorreia99 requested a review from carterkozak April 25, 2023 12:40
@changelog-app
Copy link

changelog-app bot commented Apr 25, 2023

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Overload client config creation method to allow a TrustContextFactory to be passed as well.

Check the box to generate changelog(s)

  • Generate changelog entry

@jpcorreia99 jpcorreia99 changed the title Client configuration build accepts TrustContext provider Client configuration build accepts TrustContextFactory Apr 25, 2023
@bulldozer-bot bulldozer-bot bot merged commit 9d1418f into develop Apr 25, 2023
@bulldozer-bot bulldozer-bot bot deleted the jcorreia/ProviderOverload branch April 25, 2023 14:21
@svc-autorelease
Copy link
Collaborator

Released 7.55.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants