Skip to content

Merge release/0.1.x into main: 0.1.1's certifi floor (the release commit 3574f144) - #108

Merged
brettheap merged 2 commits into
mainfrom
release/0.1.x
Nov 17, 2026
Merged

brettheap merged 2 commits into
mainfrom
release/0.1.x

Conversation

@brettheap

@brettheap brettheap commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Merges release/0.1.x back into main a second time, so main contains the 0.1.1 release commit 3574f1441172ca1d2f2f3b44753d6669bb0649a8.

Governing ruling: Brett Heap, 2026-11-17, opensoft/openXfactory#656 (comment), and its addendum opensoft/openXfactory#656 (comment) (0.1.1 carries a fourth change, and the merge-back is redone for the new release commit).

What it brings to main: #107 only — the certifi>=2026.10.18 floor in the runtime extra (pyproject.toml), tests/test_certifi_floor.py, and one row in tests/test_consumer_reach.py. The first merge-back (#106) already brought the lock's certifi pin and the version.

How to merge: with a merge commit, never squash or rebase; the release order depends on main containing the release commit itself.

Do not delete release/0.1.x after merging.

🤖 Generated with Claude Code

Summary by Sourcery

Enforce the first fixed certifi release across runtime installations to prevent vulnerable dependency retention during upgrades.

New Features:

  • Add a security floor requiring certifi 2026.10.18 or newer for the runtime extra.

Bug Fixes:

  • Prevent upgrades from affected 0.1.0 environments from retaining vulnerable certifi versions.

Enhancements:

  • Add comprehensive validation that the certifi requirement is consistently declared, propagated through extras and installed metadata, and satisfied by the lockfile.
  • Update runtime dependency reachability checks to account for certifi as a non-imported security dependency.

Tests:

  • Add tests covering the certifi floor, advisory-affected versions, lock compatibility, extra propagation, and installed package metadata.

Chores:

  • Update the 0.1.1 release rationale to include the certifi security floor.

Brett Heap and others added 2 commits November 17, 2026 08:46
…irst fixed release

The dependency lock moved `certifi` to 2026.10.23 for GHSA-6q48-6c7w-9gw2
(critical; affected ">= 2019.03.09, < 2026.10.18"), but the lock reaches only
the image and CI. The package's own metadata named no `certifi`: `httpx` and
`httpcore` require it with no version, so `pip install -U opendox[runtime]`
over a 0.1.0 environment kept the affected `certifi`. A local Codex review of
#105 found it before any tag.

- `pyproject.toml`: the `runtime` extra names `certifi>=2026.10.18`, the first
  fixed release as the advisory states it (GitHub's advisory database and
  certifi's own advisory agree), with the file's reason for naming a
  transitive dependency. It is named once: `local` and `test` reach `certifi`
  only through `opendox[runtime]`, and the base install does not reach it.
  The 0.1.1 passage above `version` now lists four changes; two comments that
  counted the extra's five lines say six.
- `tests/test_certifi_floor.py`: the floor is there once, unmarked, refuses
  every release the advisory covers (down to a pre-release of 2026.10.18) and
  is a floor rather than a ceiling or a pin; `local` and `test` reach it
  through `opendox[runtime]`; the lock's pin satisfies it; and the INSTALLED
  metadata carries it under `extra == "runtime"`.
- `tests/test_consumer_reach.py`: `RUNTIME_EXTRA` gains the row
  `"certifi": ()`. Its keys must equal the extra's distributions, and
  `opendox.runtime` imports no module of `certifi`, so the row exempts none.

The lock does not move: installed under the full lock, and re-resolved under
the lock less `certifi`, the freeze equals the lock line for line.

Ruling: opensoft/openXfactory#656 comment 6943000552 (the addendum to comment
6936600205).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0.1.1's fourth change: certifi>=2026.10.18 in the runtime extra, the new release commit (release/0.1.x)
@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 4 days and 15 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Add certifi>=2026.10.18 to the runtime extra as the first-fixed-release floor, and update the release and dependency-count comments to explain the change.

  • pyproject.toml L24-32, L232-245 (+2 small edits)

Tests

Add checks that the certifi floor is present once, rejects affected versions while admitting later fixed releases, flows through the relevant extras, agrees with the lock, and appears in installed metadata.

  • tests/test_certifi_floor.py L1-144

Add certifi to the runtime-extra reachability map without exempting any imported module, and document why the distribution has no corresponding import.

  • tests/test_consumer_reach.py L235-238, L245

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap merged commit 8bb9b53 into main Nov 17, 2026
4 checks passed
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