Skip to content

Commit eb02b6f

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

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
@@ -35,7 +35,9 @@ def get_component_type() -> ComponentType:
3535

3636

3737
def build_client() -> InfrahubClient:
38-
client = InfrahubClient(config=Config(address=config.SETTINGS.main.internal_address, retry_on_failure=True))
38+
client_config = Config(address=config.SETTINGS.main.internal_address, retry_on_failure=True)
39+
client_config.set_ssl_context(context=get_http().verify_tls())
40+
client = InfrahubClient(config=client_config)
3941
# Populate client schema cache using our internal schema cache
4042
if registry.schema:
4143
for branch in registry.schema.get_branches():

0 commit comments

Comments
 (0)