From 59e19e7273c249736d49c4cb8bf751decded2f0b Mon Sep 17 00:00:00 2001 From: Garrett Allen Date: Wed, 14 Oct 2026 17:03:15 +0000 Subject: [PATCH] ci(deps): pin pysigma-backend-sqlite back to 2.0.0, cap it in Renovate (main is red) #354 bumped pysigma-backend-sqlite to 2.1.0, which moved to pySigma 2 (pysigma>=2.0.0,<3). zircolite-constraints.txt pins pysigma==1.5.1 and has to: sigma-cli 3.1.0, the splunk/elasticsearch/kusto backends in detections/requirements.txt and zircolite's own sysmon/windows pipelines all still require pysigma<2. The constrained install step in sigma-validation.yml has gone ResolutionImpossible on every push to main since (runs 219, 224), so the host plane fails before it runs a single rule. - zircolite-constraints.txt: back to ==2.0.0, the last release on pySigma 1.x and the one #334 proved; the header now records that 2.0.0 is a ceiling as well as a floor, and why. - renovate.json: allowedVersions <2.1.0 for the backend, so the grouped PR does not re-open the same conflict weekly. The pysigma-2 PR for both pin files drops the rule. - CHANGELOG: entry under [Unreleased] / Fixed. Verified: fresh venv, `pip install -c docker/validation/zircolite-constraints.txt -r /requirements.txt` resolves (pySigma 1.5.1, pyparsing 3.3.3, sqlite backend 2.0.0); run-sigma-validation.sh against that checkout: 123/123 passed, 93 with a true-negative, all 19 -outside-window rows included. Co-Authored-By: Claude Fable 5.1 --- CHANGELOG.md | 14 ++++++++++++++ docker/validation/zircolite-constraints.txt | 13 ++++++++++++- renovate.json | 6 ++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1601108..739ab46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,20 @@ under `[Unreleased]` from here. ### Fixed +- **The host validation plane was red on main from #354: `pysigma-backend-sqlite` goes + back to 2.0.0.** Renovate bumped the backend to 2.1.0, which moved to pySigma 2 + (`pysigma>=2.0.0,<3`), while `zircolite-constraints.txt` pins `pysigma==1.5.1` and must + (#322): sigma-cli 3.1.0, the splunk/elasticsearch/kusto backends and zircolite's + sysmon/windows pipelines all still require `pysigma<2`. The constrained install step in + `sigma-validation.yml` went `ResolutionImpossible`, the job failed before running a single + rule, and the PR was merged with that check red. 2.0.0 is the last release on pySigma 1.x + and the one #334 proved (upstream's notes say 1.x installs keep resolving to it), so the + pin returns there, the constraints header records that 2.0.0 is now a ceiling as well as a + floor, and `renovate.json` caps the package at `<2.1.0` so the same PR does not come back + weekly. The cap goes when pySigma 2 lands across the toolchain in both pin files. Full + run against zircolite v3.7.6 on the restored pin: 123/123, the 19 + `-outside-window` cases included. + - **`github_credential_backdoor` now also selects `personal_access_token.request_created` (#348).** This follows htpx's `gh-cred-audit` (htpx#139). GitHub logs the request only in orgs that require approval for diff --git a/docker/validation/zircolite-constraints.txt b/docker/validation/zircolite-constraints.txt index 1dffe2e..b6d458a 100644 --- a/docker/validation/zircolite-constraints.txt +++ b/docker/validation/zircolite-constraints.txt @@ -27,10 +27,21 @@ # at 2.0.0, not left to float: which version runs decides whether the timespan half of # every correlation rule is tested at all, and a float would move that verdict silently. # +# 2.0.0 is also the CEILING for as long as this toolchain runs pySigma 1.x, not just the +# floor. pysigma-backend-sqlite 2.1.0 (2026-10-10) moved to pySigma 2 (`pysigma>=2.0.0,<3`) +# and nothing else here can follow yet: sigma-cli 3.1.0, the splunk/elasticsearch/kusto +# backends in detections/requirements.txt and zircolite's own sysmon/windows pipelines all +# require `pysigma<2`. Renovate bumped the backend alone (#354), the constrained install in +# sigma-validation.yml went ResolutionImpossible against the pysigma==1.5.1 line below, and +# the host plane was red on main from that merge until the pin came back down. Upstream's +# release notes say it outright: installs on pySigma 1.x keep resolving to 2.0.0. So +# renovate.json caps this package at <2.1.0; the PR that moves pysigma to 2.x in BOTH files +# lifts that cap, and has to re-prove every correlation `-outside-window` case here. +# # Renovate watches this file through a managerFilePatterns entry in renovate.json — the # name is deliberately not *requirements*, because it is not our dependency list — and # bumps the pair in the same grouped PR as detections/requirements.txt, which pins the # same two for the sigma gate. Keep the two files agreeing (#322). pysigma==1.5.1 pyparsing==3.3.3 -pysigma-backend-sqlite==2.1.0 +pysigma-backend-sqlite==2.0.0 diff --git a/renovate.json b/renovate.json index c906d16..402b481 100644 --- a/renovate.json +++ b/renovate.json @@ -12,6 +12,12 @@ "semanticCommitType": "ci", "semanticCommitScope": "deps", "automerge": false + }, + { + "description": "pysigma-backend-sqlite 2.1.0 moved to pySigma 2 (pysigma>=2.0.0,<3) while sigma-cli, the splunk/elasticsearch/kusto backends and zircolite's pipelines still require pysigma<2, so bumping the backend alone makes the constrained install in sigma-validation.yml ResolutionImpossible (#354 did exactly that and main's host plane went red). Hold it below 2.1.0 until pySigma 2 lands across the toolchain; the PR that moves pysigma to 2.x in both files drops this rule.", + "matchManagers": ["pip_requirements"], + "matchPackageNames": ["pysigma-backend-sqlite"], + "allowedVersions": "<2.1.0" } ] }