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.