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

Hatchet ignores ClientTLSConfig with tls_stategy 'none' #329

Open
mattzque opened this issue Mar 9, 2025 · 0 comments
Open

Hatchet ignores ClientTLSConfig with tls_stategy 'none' #329

mattzque opened this issue Mar 9, 2025 · 0 comments

Comments

@mattzque
Copy link

mattzque commented Mar 9, 2025

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.

mattzque added a commit to mattzque/hatchet-python that referenced this issue Mar 24, 2025
Fix for hatchet-dev#329 "Hatchet ignores ClientTLSConfig with tls_stategy 'none'"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant