Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Hatchet ignores ClientTLSConfig with tls_stategy 'none' #329

@mattzque

Description

@mattzque

When running hatchet self-hosted with docker compose it mentions disabling TLS:

HATCHET_CLIENT_TLS_STRATEGY=none

It works, but when I try to set this programmatically it doesn't (with hatchet-sdk==0.47.0):

from hatchet_sdk import Hatchet, ClientConfig
from hatchet_sdk.loader import ClientTLSConfig

hatchet = Hatchet(
    config=ClientConfig(
        token='<token>',
        namespace='namespace',
        tls_config=ClientTLSConfig(
            tls_strategy="none",
            cert_file="",
            key_file="",
            ca_file="",
            server_name="",
        ),
    )
)

I get Handshake failed with error SSL_ERROR_SSL errors.

I noticed hatchet._client.config.tls_config.tls_strategy is 'tls' after running the above code.

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