Closed
Description
Problem Statement
Hi,
I am configuring Nginx as load balancer in front of Sentry and 2-way SSL authentication is enabled.
I can visit the web GUI as usual after I add the client cert and key to the browser. But the server can't receive the log messages, and I notice that in sentry-python it doesn't support two-way SSL authentication as a client - from the source code no client cert related options are passed to the urllib3.PoolManager:
- sentry-python/sentry_sdk/transport.py at 69ecd87aa4539de03754af5afb4af4be53efd260 · getsentry/sentry-python
- sentry-python/sentry_sdk/transport.py at 69ecd87aa4539de03754af5afb4af4be53efd260 · getsentry/sentry-python
The document of urllib3.PoolManager:
Solution Brainstorm
From these lines of options defined, I think it can be configured in the same way:
-
options["ca_certs"] = ( ca_certs # User-provided bundle from the SDK init or os.environ.get("SSL_CERT_FILE") or os.environ.get("REQUESTS_CA_BUNDLE") or certifi.where() )
Example:
options["cert_file"] = ( cert_file # User-provided bundle from the SDK init or os.environ.get("CLIENT_CERT_FILE") ) options["key_file"] = ( key_file # User-provided bundle from the SDK init or os.environ.get("CLIENT_KEY_FILE") )
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status