Repository navigation
Option disable ssl verify hostname as a boolean. - #629
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
Adds a new verify_hostname boolean option to allow disabling SSL/TLS hostname (certificate) verification and propagates it through Configuration, Connector, ConnectorRest, CLI config loading, and key (de)serialization logic.
- Introduces FLAG_VERIFY_HOSTNAME in key encoding and adjusts bit packing/unpacking.
- Refactors SSL context creation (_build_ssl_context) and conditionally wraps sockets / mounts HTTP adapters.
- Updates tests with new encoded key values (all with hostname verification enabled).
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/test_Key.py | Updates expected encoded key strings and unpacks new verify_hostname flag. |
| aperturedb/cli/configure.py | Passes verify_hostname from config file into Configuration. |
| aperturedb/ConnectorRest.py | Adds verify_hostname parameter and conditionally mounts HTTPS adapter. |
| aperturedb/Connector.py | Adds verify_hostname support, factors SSL context creation into helper. |
| aperturedb/Configuration.py | Adds FLAG_VERIFY_HOSTNAME, serialization/deserialization of the new flag. |
| aperturedb/CommonLibrary.py | Propagates verify_hostname into connector creation. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
drewaogle
reviewed
Oct 8, 2025
bovlb
previously approved these changes
Oct 8, 2025
bovlb
left a comment
Contributor
There was a problem hiding this comment.
Looks good, one major comment about the parameters to create_aperturedb_key.
This code seems much more fragile that it ought to be.
Co-authored-by: bovlb <[email protected]>
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.
No description provided.