Skip to content

Option disable ssl verify hostname as a boolean. - #629

Merged
gsaluja9 merged 8 commits into
developfrom
option_disable_ssl_verify
Oct 9, 2025
Merged

gsaluja9 merged 8 commits into
developfrom
option_disable_ssl_verify

Conversation

@gsaluja9

@gsaluja9 gsaluja9 commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@luisremis
luisremis requested a review from Copilot October 7, 2025 23:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread aperturedb/Configuration.py Resolved
Comment thread aperturedb/Configuration.py Resolved
Comment thread aperturedb/ConnectorRest.py Resolved
Comment thread aperturedb/Configuration.py Resolved
bovlb
bovlb previously approved these changes Oct 8, 2025

@bovlb bovlb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one major comment about the parameters to create_aperturedb_key.

This code seems much more fragile that it ought to be.

Comment thread aperturedb/Configuration.py Resolved
Comment thread aperturedb/Configuration.py Resolved
Comment thread aperturedb/Connector.py Resolved
Comment thread aperturedb/Connector.py Resolved
Comment thread aperturedb/cli/keys.py Resolved
@gsaluja9
gsaluja9 merged commit 190eb89 into develop Oct 9, 2025
@gsaluja9
gsaluja9 deleted the option_disable_ssl_verify branch October 9, 2025 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants