Skip to content

fix(security): the certificate check refuses TLS below 1.2 (CodeQL py/insecure-protocol) - #25

Merged
BenKalsky merged 1 commit into
mainfrom
fix/tls-minimum-version
Oct 27, 2026
Merged

BenKalsky merged 1 commit into
mainfrom
fix/tls-minimum-version

Conversation

@BenKalsky

Copy link
Copy Markdown
Member

Closes CodeQL #2 (py/insecure-protocol, high, scripts/security.py:353). Task: Digitizers/digitizer-tasks#195.

connect_public_tls() (the site audit's certificate-expiry check) wrapped its socket with a bare ssl.create_default_context(). On Python builds whose OpenSSL still allows TLS 1.0/1.1 that context negotiates them: on this machine its minimum_version is TLSv1. It now sets minimum_version = TLSv1_2.

Test first: DnsPinningTest.test_the_certificate_check_refuses_tls_below_1_2 captures the context passed to wrap_socket. It failed before the fix (TLSVersion.TLSv1 not >= TLSv1_2), passes after. Suite: 130 passed; npm test green.

🤖 Generated with Claude Code

…/insecure-protocol)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BenKalsky

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T23:25:04.483622Z 41e0a2a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 41e0a2af24

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@BenKalsky
BenKalsky merged commit c5bea1c into main Oct 27, 2026
7 checks passed
@BenKalsky
BenKalsky deleted the fix/tls-minimum-version branch October 27, 2026 00:12
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.

1 participant