Skip to content

[FEATURE] Add an option to turn on and off the certificate validation of llm connectors #4371

@akolarkunnu

Description

@akolarkunnu

Is your feature request related to a problem?
I was trying to connect to a model hosted in private network and it was failing with certificate verification irrespective of the security plugin is enabled or not.
So please provide an option to skip certificate verification

What solution would you like?
We can have a ML Commons settings parameter to turn on and off the certificate verification. By default, we can enable the certificate verification.
I tried by attaching below code in HttpClient creation code in the class MLHttpClientFactory.getAsyncHttpClient() and it skipped the certificate verification.
buildWithDefaults(AttributeMap.builder().put(SdkHttpConfigurationOption.TRUST_ALL_CERTIFICATES, true)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions