Skip to content

SSL settings not passed down to REST client #125

@EndlessReform

Description

@EndlessReform

ArizeClient exposes a lot of arguments for SSL, eg request_verify or adding custom CA files), which is very helpful for corporate or development environments. However, this is not working for REST (only for Feather and gRPC), which blocks a lot of the new v8 features from being used. In

cfg = gen.Configuration(host=self._sdk_config.api_url)
where the API client is created, only the host is passed from the SDK entrypoint, and all other settings revert to default.

You can work around this by just patching the client directly:

api_client = client._gen_client_factory.get_client()
api_client.configuration.verify_ssl = False # Or whatever feature you need
api_client.rest_client = rest.RESTClientObject(api_client.configuration)

But for production use or maintainability this is obviously pretty bad. Can the SSL verify and other similar features in SDK config be passed down to the REST client as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions