Skip to content

chore(deps): bump python from 3.12 to 3.14 in toolbox/base and toolbox/gha - #49

Merged
garymike merged 3 commits into
mainfrom
chore/bump-python-3.14
Jul 24, 2026
Merged

garymike merged 3 commits into
mainfrom
chore/bump-python-3.14

Conversation

@garymike

Copy link
Copy Markdown
Owner

Supersedes #6, which became permanently conflicting after toolbox/Dockerfile was split into subdirectories in #47/#48.

Bumps the Python base image from 3.12-slim-bookworm to 3.14-slim-bookworm (SHA-pinned) in both affected Dockerfiles:

  • toolbox/base/Dockerfile
  • toolbox/gha/Dockerfile

@garymike
garymike merged commit bb5b3b7 into main Jul 24, 2026
9 checks passed
@garymike
garymike deleted the chore/bump-python-3.14 branch July 24, 2026 19:25
garymike added a commit that referenced this pull request Jul 31, 2026
The ignore added in #39 to hold Python at 3.12 was bypassed by #49 five days later (digest pins do not match a semver ignore), and its premise expired when a yara-python wheel landed. Removed rather than repaired: the build-every-image-on-every-PR CI gate already catches a breaking runtime bump empirically.
garymike added a commit that referenced this pull request Nov 14, 2026
#113)

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.
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