Repository navigation
Configurable TLS verification of the Egeria platform certificate - #530
Merged
Merged
Conversation
…ificate pyegeria has always created its httpx clients with verify=False (_globals.enable_ssl_check), so it never checked the Egeria platform's certificate. It is now configurable, using the same layering as egeria_max_page_size: PYEGERIA_SSL_VERIFY / PYEGERIA_CA_BUNDLE (env or .env) override "Pyegeria SSL Verify" / "Pyegeria CA Bundle" under Environment in config.json. - Default stays off: the quickstart platforms use self-signed certificates. - Verify on, no bundle: httpx checks against certifi, which has the emSign G3 floor from 6.2.21. - Verify on with a bundle: an SSLContext that trusts that PEM file, e.g. the quickstart's own chain, to verify a self-signed platform. - A bundle path that doesn't exist raises at import rather than silently falling back to unverified. The three httpx client constructions read _globals.ssl_verify when a session is created, so a program can also set it in code. enable_ssl_check stays a bool for existing importers. Verified live against a 6.3-SNAPSHOT quickstart platform: off connects; on refuses with CERTIFICATE_VERIFY_FAILED (self-signed); on with the platform's chain as the CA bundle connects. Micro-tests: 0 failed of 1799. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
dwolfson
added a commit
that referenced
this pull request
Nov 6, 2026
6.2.22 ships #530 (configurable TLS verification of the Egeria platform certificate), #531 (overview metrics report unmeasured as None, not 0) and #532 (native count switch no longer sticky, native counts honour the client's time_out, count scope viewer/repository). Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pyegeria has always created its httpx clients with
verify=False(_globals.enable_ssl_check), so it never checked the Egeria platform's certificate. This PR makes that configurable, using the same layering asegeria_max_page_size:.envconfig.json(Environment)PYEGERIA_SSL_VERIFY"Pyegeria SSL Verify"FalsePYEGERIA_CA_BUNDLE"Pyegeria CA Bundle"SSLContextfrom that PEM file, so a self-signed platform can be verified with its own CA._globals.ssl_verifywhen they create a session, so programs can also set it in code.enable_ssl_checkstays a bool.config/README.md, with commented examples inconfig/env.Test plan
test_globals_ssl_verify.py: resolver, default, env on/off, CA bundle, env overriding config.json, and the value reaching httpx (12 tests)CERTIFICATE_VERIFY_FAILED, self-signed); on with the platform's chain as the CA bundle connects🤖 Generated with Claude Code