Repository navigation
docs(toolbox): correct the base OS note in tools.lock, wrong since #49 - #113
Merged
Merged
Conversation
tools.lock recorded the base OS as python:3.12-slim-bookworm at digest 8a7e7cc0..., while every FROM line has been python:3.14-slim-bookworm@sha256:48b13b00... since #49 bumped it on 2026-07-24. Two minor versions out and a digest that matches nothing, in the file whose stated job is to be the record and which says "Keep in sync with the ARG values in the toolbox Dockerfiles" three lines from the top. Also drops "(all stages)", which was never true. base pins it in both stages and gha in its downloader stage; mcp-review, sast, iac and skill-audit pin nothing and inherit it through FROM ${BASE}. The note now names the files that pin it, because that is what makes the next bump movable, and Dependabot raises one PR per Dockerfile. Nothing catches this. check-tool-updates.sh watches the twelve tool pins, and check-image-pins.py hashes this file without reading it, so the only thing that would have found a four-month-old wrong digest is someone reading the line. This costs a pin move. check-image-pins.py fingerprints tools.lock with git ls-files -s, so a comment-only edit changes the blob and all five pins go behind: 5 of 5 not current with this staged. Hashing the blob rather than trying to tell comments from content is the conservative choice and worth keeping, but it makes the follow-up move mandatory once the rebuild publishes.
garymike
added a commit
that referenced
this pull request
Nov 14, 2026
…blished (#114) The follow-up half of #113, which corrected the base OS note in tools.lock. That edit changed no build step, only a comment, but the build-inputs fingerprint covers the whole tracked blob, so all five images rebuilt to new digests and every caller was left resolving a pre-#113 one. Image pins went red on main at d7baf21 for exactly that reason. Permitted rather than forced. check-image-pins.py reported 5 of 5 behind before the move, which is the state the mover's guard requires, so no --force was needed: gha-security.yml inputs bc9f92273a9d -> 3814fda70f2b iac-security.yml inputs 0c18852ac420 -> 9335b2a6f700 sast.yml inputs b9fc98f99889 -> c43802823eaa security-scan.yml inputs ff1cbae74dd2 -> ad7263c8eac8 skill-audit.yml inputs 310214430f4d -> 0f70a0c57551 Digests resolved from the per-commit sha-d7baf21676be tag rather than latest, and each one's build-inputs label read back out of the registry and compared with the fingerprint this repo computes now. All five matched before anything was written. gha-toolbox 76856c846d01 -> edef6c3c715e iac-toolbox d55bcbf3e8e0 -> c56d06a80c8c sast-toolbox f3f951735d14 -> 5b937edab76b security-toolbox-base 823b15f26d41 -> 19b34739f55a skill-audit-toolbox e59ab35ba46e -> 4a5ef990284a Verified against the pinned digests rather than a local build, because the dogfood scan proves the content at a commit and not the published image. Pulled security-toolbox-base@19b34739f55a, which also checks the claim #113 just corrected: Python 3.14.8 Debian GNU/Linux 12 (bookworm) osv-scanner version: 2.7.1 syft 1.57.1 So the note now matches the image: 3.14 on bookworm, not the 3.12 it claimed from #49 until today. The two tool pins from #105 are also still what tools.lock records. Pulled skill-audit-toolbox@4a5ef990284a and ran the proof against that digest: SkillSpector v2.13.4, semgrep 1.184.0 gate-proof.sh: 16 assertions PASS, 0 FAIL, exit 0 gecko-demo 64/100 exit 1, BLOCKS gecko-hook-demo 76/100 exit 1, BLOCKS config-injection-demo 100/100 exit 1, BLOCKS sibling-config-demo 51/100 exit 1, BLOCKS memory-poisoning-demo 27/100 exit 0, does NOT block Five non-blank score lines, which is the check that separates a real pass from a harness whose containers never started, plus a separate assertion of zero command-not-found lines: the shim that makes podman usable from git-bash is the part most likely to be silently missing, and when it is, six assertions read a failed container start as "blocked". The proof output is byte-identical to the one taken against the digests #107 pinned. That is both the expected result and the useful one: a comment-only edit moved all five pins while changing nothing a caller can observe. The fingerprint reads the tracked blob, not its meaning, so prose inside tools.lock costs a pin move. Worth knowing before reading a red Image pins run as evidence that scanner behaviour changed.
garymike
added a commit
that referenced
this pull request
Nov 17, 2026
…116) The comment on the /toolbox/gha entry said the two Python pins are "built by the same CI gate, so a drift between them fails the build rather than shipping". Nothing compares them and nothing fails. #110 bumps the gha downloader stage to 3.15 against a 3.14 base and is green on all nine checks, which is how this surfaced. The claim was also aimed at the wrong thing. toolbox/gha's downloader stage runs no Python at all: it curls actionlint, checksum-verifies it and installs the binary, and the final stage builds FROM ${BASE}. The Python that ships in gha-toolbox is security-toolbox-base's, never that pin's, so a difference between the two is cosmetic rather than a runtime drift. Keeping them equal is housekeeping, one fewer upstream digest to follow, and not an invariant. Comment-only. The parsed YAML is asserted identical before and after, and no build input changed, so the five image pins stay current. Verified with the edit staged, because the build-inputs fingerprint reads the index and not the working tree: checking before `git add` is how a stale green gets reported. Unlike #113 this needs no follow-up pin move. One consequence worth stating plainly: #110 is safe to merge on its own. It was being held back on the grounds that it would create a drift this file said must not happen, and that reasoning rested entirely on the sentence being corrected here.
garymike
added a commit
that referenced
this pull request
Nov 17, 2026
…blished (#117) The follow-up half of #110, which took toolbox/gha's downloader stage to Python 3.15. Only gha-toolbox's fingerprint covers toolbox/gha, so unlike #113 this put 1 of 5 pins behind rather than all five: gha-security.yml inputs 3814fda70f2b -> 5fba9b54ee96 All five still move. The mover repoints every pin to the named commit's build once any one of them is behind, and that build rebuilt all six images, so the other four get functionally identical rebuilds at new digests. That is the same behaviour as the previous moves, not a change. gha-toolbox edef6c3c715e -> 4a82e44e8339 iac-toolbox c56d06a80c8c -> e09d25c28658 sast-toolbox 5b937edab76b -> 883b6720c8ac security-toolbox-base 19b34739f55a -> 92acc672ef2d skill-audit-toolbox 4a5ef990284a -> ef278f70d57a Pinned to 4f487a4 and not to current main, deliberately. #116 landed after #110 and is now main, but Build toolbox images is path-filtered to toolbox/** and .github/workflows/build-toolbox.yml, and #116 changed only .github/dependabot.yml. No build ran for it, so there is no sha-fb56f228 tag to resolve and naming the newest commit would simply fail. #116 changed no build input either, so the fingerprints are identical at both commits and 4f487a4's build is the right one to name. Verified against the pinned digests. Every build-inputs label read back matches the fingerprint this repo computes now: gha 5fba9b54ee96, skill-audit 0f70a0c57551, base ad7263c8eac8. The useful check this time is on gha, since #110 is what moved it: Python in gha-toolbox 3.14.8, Debian 12 (bookworm) zizmor 1.32.0 actionlint 1.7.12, built with go1.26.1 shellcheck 0.9.0 So the image ships base's 3.14 even though its downloader stage now builds on 3.15, which is what #116 corrected the dependabot.yml comment to say. That stage runs no Python and only produces the actionlint binary, and the binary works. The claim is now measured rather than reasoned. security-toolbox-base Python 3.14.8, osv-scanner 2.7.1, syft 1.57.1 skill-audit-toolbox SkillSpector v2.13.4, semgrep 1.184.0 gate-proof.sh 16 assertions PASS, 0 FAIL, exit 0 gecko-demo 64/100 exit 1, BLOCKS gecko-hook-demo 76/100 exit 1, BLOCKS config-injection-demo 100/100 exit 1, BLOCKS sibling-config-demo 51/100 exit 1, BLOCKS memory-poisoning-demo 27/100 exit 0, does NOT block Five non-blank score lines and zero command-not-found lines, both asserted separately, because a missing podman shim makes six assertions read a dead container as "blocked". The proof output is byte-identical to the one taken against the digests #114 pinned, which is the expected result: no scanner version changed, only the gha downloader's base image. Note for whoever reads the Tool drift badge next: it is red on real drift, not the zero-job case. betterleaks 1.10.1, trufflehog 3.99.9, semgrep 1.185.0, checkov 3.4.5 and skillspector 2.13.5 are all available. That is separate work and this commit does not touch it.
garymike
added a commit
that referenced
this pull request
Nov 17, 2026
Applied by scripts/apply-tool-bumps.py from a freshly emitted drift file, so tools.lock
and the matching Dockerfile ARG moved together in every case:
betterleaks 1.10.0 -> 1.10.1 tools.lock, toolbox/base
trufflehog 3.99.8 -> 3.99.9 tools.lock, toolbox/base
syft 1.57.1 -> 1.57.2 tools.lock, toolbox/base
semgrep 1.184.0 -> 1.185.0 tools.lock x2, toolbox/sast, toolbox/skill-audit
checkov 3.4.3 -> 3.4.5 tools.lock, toolbox/iac
Re-measured rather than taken from the failing Tool drift run, and that mattered. That run
was from 2026-11-16 and listed four tools; upstream has moved since. syft 1.57.2 appeared
and was not in it, and skillspector advanced from the 2.13.5 that run reported to 2.13.6.
Acting on the log would have shipped a bump that was already stale and missed one
entirely.
Verified after applying: every pin's tools.lock entry and Dockerfile ARG now read the same
version, checked per tool rather than trusting the script's own summary, and a second
check-tool-updates.sh run reports every tool current.
skillspector is not here, deliberately. check-tool-updates.sh keeps it out of the
auto-bump queue because its ARG is SKILLSPECTOR_REF, a commit SHA, so apply-tool-bumps.py
would rewrite tools.lock, match nothing in the Dockerfiles, and report a half-bump as
applied. It also changes measured scanner behaviour that tests/gate-proof.sh hard-asserts
and docs/threats/developer-execution.md quotes by number. 2.13.4 -> 2.13.6 needs the
fixtures re-measured first and gets its own change.
semgrep is the one to watch here. It is the test-file-gate's malice engine as well as the
SAST scanner, so 1.185.0 can move what the gate blocks. This PR's Build toolbox and scan
this repo job builds every image from source and runs gate-proof.sh against the freshly
built skill-audit image, which is the check that would catch it. Reading that result is
the point of the PR.
These are build inputs, so merging this puts the five image pins behind and a pin move
follows, same as #110 and #113.
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.
tools.lockrecorded the base OS aspython:3.12-slim-bookwormat digest8a7e7cc0…, while everyFROMline has beenpython:3.14-slim-bookworm@sha256:48b13b00…since #49 bumped it on 2026-07-24. Two minor versions out and a digest matching nothing, in the file whose stated job is to be the record, three lines below its own instruction to "keep in sync with the ARG values in the toolbox Dockerfiles".What changed
(all stages)was never true.basepins it in both stages andghain its downloader stage;mcp-review,sast,iacandskill-auditpin nothing and inherit throughFROM ${BASE}. The note now names them, since that is what makes the next bump movable and Dependabot raises one PR per Dockerfile.Why it went unnoticed for four months
Nothing checks it.
check-tool-updates.shwatches the twelve tool pins and stops there;check-image-pins.pyhashes this file without reading it. The only thing that would have caught a stale digest here is a person reading the line.This costs a pin move
check-image-pins.pyfingerprintstools.lockviagit ls-files -s, so a comment-only edit changes the blob and every pin goes behind:Hashing the blob instead of trying to separate comments from content is the conservative choice and worth keeping, but it makes the follow-up move mandatory rather than optional once the rebuild publishes.
One local-only gotcha found while checking this: because the fingerprint reads the index, running the check on an edited-but-unstaged tree reports green. It is accurate in CI, where the tree is always committed.