Skip to content

chore(toolbox): bump pinned tools to clear the drift gate - #74

Merged
garymike merged 1 commit into
mainfrom
chore/tool-bumps-signed
Sep 30, 2026
Merged

garymike merged 1 commit into
mainfrom
chore/tool-bumps-signed

Conversation

@garymike

Copy link
Copy Markdown
Owner

Replaces #72. Byte-for-byte the same content (identical tree 306388c3ba55), re-landed as a signed commit.

Why a new PR

The weekly Tool bump job pushes its branch with GITHUB_TOKEN, which produces unsigned commits. main requires signed commits, so that branch can never merge without an admin bypass -- every week, forever. #72 passed all nine checks and was still refused by the base branch policy.

This branch was created with the GraphQL createCommitOnBranch mutation, which GitHub signs server-side (signature.state: VALID). No bypass needed.

Bumps

  • trufflehog 3.97.5 -> 3.97.9
  • snyk-agent-scan 0.6.4 -> 0.6.7
  • semgrep 1.177.0 -> 1.178.0 (skill-audit and sast pins)
  • checkov 3.3.19 -> 3.3.20

The bump job detected the drift, applied the patch/minor bumps, and validated by building the base and every domain image before pushing. Clears the red Tool drift scheduled gate.

Worth fixing in the job itself

tool-bump.yml should use createCommitOnBranch instead of git push, so the branch it produces each week is mergeable as-is. Otherwise this hand-off repeats every time the gate goes red.

Same content as the branch the weekly Tool bump job pushed, re-landed as a signed commit so it can merge without an admin bypass.

- trufflehog 3.97.5 -> 3.97.9
- snyk-agent-scan 0.6.4 -> 0.6.7
- semgrep 1.177.0 -> 1.178.0 (skill-audit and sast pins)
- checkov 3.3.19 -> 3.3.20

The bump job detected the drift, applied the patch/minor bumps and validated by building the base and every domain image before pushing. Clears the red Tool drift scheduled gate.
@garymike
garymike merged commit 08ae96b into main Sep 30, 2026
9 checks passed
@garymike
garymike deleted the chore/tool-bumps-signed branch September 30, 2026 02:33
garymike added a commit that referenced this pull request Sep 30, 2026
The Trivy publish gate rejected sast-toolbox and skill-audit-toolbox on the build for #74: CVE-2026-102268, CRITICAL, PyJWT 2.13.0, fixed in 2.14.0.

Not a regression from that bump. semgrep 1.177.0 -- the previous pin -- carries the identical pyjwt[crypto]~=2.13.0 constraint, and 1.178.0 is the newest release, so there is nothing to bump to. The CVE was published 2026-09-28 20:26Z, eight hours after the 12:25Z build that passed. The gate is firing on a pre-existing condition that just became known, which means the currently published sast-toolbox:latest and skill-audit-toolbox:latest already contain it.

The flaw is an HS/asymmetric confusion bypass: is_pem_format misses some PEM encodings, so a mutated public key is treated as an HMAC secret and anyone who knows the public key can forge tokens. It needs an application that mixes HMAC and asymmetric algorithms AND accepts caller-supplied raw key bytes. semgrep touches PyJWT only to authenticate to Semgrep AppSec Platform; these workflows supply no SEMGREP_APP_TOKEN and run OSS rule packs via --config, so no JWT is ever decoded.

So it is defensible as not_affected, and .trivy/toolbox.openvex.json is where that would go. It is not going there: that file's own standard is that a fixable finding is fixed, not excepted, and upstream marks this one fixed in 2.14.0. PyJWT 2.15.1 is installed over semgrep's constraint with --no-deps instead, so the vulnerable code is gone rather than argued about.

pyjwt is recorded in tools.lock under both image sections, so the weekly drift check tracks it and the ARG follows apply-tool-bumps.py's naming (PYJWT_VERSION). Drop the override once semgrep relaxes its pin and pip resolves 2.14.0+ on its own.

dogfood-scan builds both images from source and runs semgrep against this repo, so CI is the functional check that the override does not break it.
garymike added a commit that referenced this pull request Sep 30, 2026
…igned

The weekly bump branch could never merge. main requires signed commits; git commit inside Actions is signed by nobody, because GITHUB_TOKEN is not a signing key. #72 passed all nine checks and was still refused by the base branch policy, and the only way through was --admin.

That is not a stuck PR to force once. It is every week the gate goes red, and it trains whoever is on the other end to treat an admin bypass as routine in the repo that guards everything else.

createCommitOnBranch signs server-side, so the commit comes back Verified and merges under the rule like any other. Same GITHUB_TOKEN, same contents: write, no bot signing key to store or rotate. Verified on #74, which was the same content as #72 re-landed this way and merged without a bypass.

The helper asserts the commit came back VALID and fails if not. Silently producing an unmergeable branch is the failure being fixed here, and it stays invisible until someone tries to merge weeks later.

Preserved deliberately: the job still does not open the PR (that needs create AND approve, and GitHub does not split them), persist-credentials stays false so the docker builds cannot find a pushable token, and the single long-lived branch is still force-reset each week rather than leaving a trail.
garymike added a commit that referenced this pull request Sep 30, 2026
The Trivy publish gate rejected sast-toolbox and skill-audit-toolbox on the build for #74: CVE-2026-102268, CRITICAL, PyJWT 2.13.0, fixed in 2.14.0.

Not a regression from that bump. semgrep 1.177.0 -- the previous pin -- carries the identical pyjwt[crypto]~=2.13.0 constraint, and 1.178.0 is the newest release, so there is nothing to bump to. The CVE was published 2026-09-28 20:26Z, eight hours after the 12:25Z build that passed. The gate is firing on a pre-existing condition that just became known, which means the currently published sast-toolbox:latest and skill-audit-toolbox:latest already contain it.

The flaw is an HS/asymmetric confusion bypass: is_pem_format misses some PEM encodings, so a mutated public key is treated as an HMAC secret and anyone who knows the public key can forge tokens. It needs an application that mixes HMAC and asymmetric algorithms AND accepts caller-supplied raw key bytes. semgrep touches PyJWT only to authenticate to Semgrep AppSec Platform; these workflows supply no SEMGREP_APP_TOKEN and run OSS rule packs via --config, so no JWT is ever decoded.

So it is defensible as not_affected, and .trivy/toolbox.openvex.json is where that would go. It is not going there: that file's own standard is that a fixable finding is fixed, not excepted, and upstream marks this one fixed in 2.14.0. PyJWT 2.15.1 is installed over semgrep's constraint with --no-deps instead, so the vulnerable code is gone rather than argued about.

pyjwt is recorded in tools.lock under both image sections, so the weekly drift check tracks it and the ARG follows apply-tool-bumps.py's naming (PYJWT_VERSION). Drop the override once semgrep relaxes its pin and pip resolves 2.14.0+ on its own.

dogfood-scan builds both images from source and runs semgrep against this repo, so CI is the functional check that the override does not break it.
garymike added a commit that referenced this pull request Sep 30, 2026
…igned (#76)

The weekly bump branch could never merge. main requires signed commits; git commit inside Actions is signed by nobody, because GITHUB_TOKEN is not a signing key. #72 passed all nine checks and was still refused by the base branch policy, and the only way through was --admin.

That is not a stuck PR to force once. It is every week the gate goes red, and it trains whoever is on the other end to treat an admin bypass as routine in the repo that guards everything else.

createCommitOnBranch signs server-side, so the commit comes back Verified and merges under the rule like any other. Same GITHUB_TOKEN, same contents: write, no bot signing key to store or rotate. Verified on #74, which was the same content as #72 re-landed this way and merged without a bypass.

The helper asserts the commit came back VALID and fails if not. Silently producing an unmergeable branch is the failure being fixed here, and it stays invisible until someone tries to merge weeks later.

Preserved deliberately: the job still does not open the PR (that needs create AND approve, and GitHub does not split them), persist-credentials stays false so the docker builds cannot find a pushable token, and the single long-lived branch is still force-reset each week rather than leaving a trail.
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