Skip to content

Commit 2b54551

Browse files
committed
fix(workers): use cached tls context for sdk client
Signed-off-by: Fatih Acar <[email protected]>
1 parent b33955f commit 2b54551

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/infrahub/workers/dependencies.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ def get_component_type() -> ComponentType:
3434

3535

3636
def build_client() -> InfrahubClient:
37-
return InfrahubClient(config=Config(address=config.SETTINGS.main.internal_address, retry_on_failure=True))
37+
client_config = Config(address=config.SETTINGS.main.internal_address, retry_on_failure=True)
38+
client_config.set_ssl_context(context=get_http().verify_tls())
39+
return InfrahubClient(config=client_config)
3840

3941

4042
@inject

0 commit comments

Comments
 (0)