fix(NBE-1377): keep TLS when DIODE_SKIP_TLS_VERIFY is set - #113
jajeffries wants to merge 1 commit into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Coverage Report
|
||||||||||||||||||||||||||||||||||||||||
|
AI Code Review — risk tier: Advisory only. A human owns the merge decision. Summary — This is a net-positive change: it correctly stops downgrading to plaintext when Findings
🤖 AI Code Review · run · prompts: |
| context = ssl.create_default_context() | ||
| context.check_hostname = False | ||
| context.verify_mode = ssl.CERT_NONE | ||
| tls_sock = context.wrap_socket(raw_sock, server_hostname=host) |
|
Superseded by reticket to ENGHLP-1703; new PR will follow on branch fix/enghlp-1703-skip-tls-verify-parity. |
Summary
DIODE_SKIP_TLS_VERIFY: the connection stays ongrpcs/httpsand only certificate validation is skipped.h2c) and surface as 404 or protocol errors.What changed
parse_targetnow returns separateis_plaintextandtls_verifyflags instead of treating skip-verify as plaintext._open_grpc_channeluses TLS credentials with an optional peer certificate pin when verification is disabled; auth token URL scheme followsis_plaintext.skip_tls_verifyconstructor parameter and documentedDIODE_SKIP_TLS_VERIFYin the README.How tested
pytest tests/test_client.py -q(133 passed)ruff check netboxlabs/diode/sdk/client.py tests/test_client.pyLinear
Made with Cursor