Skip to content

Support setKeystore setTrustore operations on clients [java] #5211

Closed
@chicobento

Description

@chicobento

Background
Current client builders such as OtlpHttpSpanExporterBuilder provides operations (generally named setClientTls and setTrustredCertificates) for handling the mTLS certificates that takes only the raw pem files as byte array. The conversion of pem->key/trustores is then handled internally.

In some scenarios, the pem->trust/keystore conversion is handled externally, so ideally all clients should accept the already-built key/trustores.

Solution
Provide overloaded setClientTls and setTrustedCertificates methods for passing the *stores.

ps: Although this issue is referring specifically to OtlpHttpSpanExporterBuilder, a similar pattern is being followed by other classes that interacts with external nodes, hence this ideally should be fixed on all similar cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestSuggest an idea for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions