Skip to content

Commit

Permalink
fix missing args
Browse files Browse the repository at this point in the history
  • Loading branch information
Asaf Cohen committed Sep 29, 2024
1 parent 82372a5 commit 85ecf72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion horizon/startup/blocking_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import requests

from horizon.startup.exceptions import InvalidPDPTokenException
from opal_common.config import opal_common_config
from opal_common.security.sslcontext import (
get_custom_ssl_context_for_mtls,
CustomSSLContext,
Expand All @@ -18,7 +19,14 @@ def __init__(
k: v for k, v in (extra_headers or {}).items() if v is not None
}
custom_ssl_context: Optional[CustomSSLContext] = (
get_custom_ssl_context_for_mtls()
get_custom_ssl_context_for_mtls(
client_cert_file=opal_common_config.MTLS_CLIENT_CERT,
client_key_file=opal_common_config.MTLS_CLIENT_KEY,
ca_file=opal_common_config.MTLS_CA_CERT,
)
if opal_common_config.MTLS_CLIENT_CERT is not None
and opal_common_config.MTLS_CLIENT_KEY is not None
else None
)
self._ssl_kwargs = {}
if custom_ssl_context is not None:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ ddtrace
sqlparse==0.5.0
httpx==0.27.0
protobuf>=3.20.2 # not directly required, pinned by Snyk to avoid a vulnerability
opal-common==0.7.13rc2
opal-client==0.7.13rc2
opal-common==0.7.13rc3
opal-client==0.7.13rc3

0 comments on commit 85ecf72

Please sign in to comment.