ci: seal supplychain 47a53e3, whose Gitleaks ignores inline allow comments, over the current runner image (codewire#3991) #35

Merged
noel merged 2 commits from cw-security/supplychain-47a53e3 into main 2026-11-14 18:51:38 +00:00
Owner

codewire#3991, step 3: the runner image leaf for supplychain 47a53e3 (noeljackson/supplychain#91; the owner's approval is recorded on codewire#3013). Its secret scan runs Gitleaks with --ignore-gitleaks-allow, so an inline allow comment can no longer hide a secret from the sealed source approval. Repositories pick it up only by changing EXPECTED_SUPPLYCHAIN, after this image is published and adopted.

Change. An additive leaf over the current runner image, v10, the Kyverno CLI 1.17.1 image (sha256:6f746afc…aab1ee). It's modelled on #33's supplychain half, with no Node change:

  • Dockerfile.system-hz-supplychain-47a53e3: one networkless RUN builds supplychain from source into /usr/local/libexec/supplychain-47a53e3….

    • It checks every revision's selection through the unchanged wrapper (47a53e3, 83fffe1, v0.1.7, compat), the unpinned default, Node 24.22.1, jq 1.8.2, and Kyverno still off PATH.
    • PATH is unchanged.
  • supplychain-47a53e3-inputs.json: 83fffe1's list with only the source archive changed (revision, URL, sha256 1c6c0eff…eb9f, identical over two fetches). go.mod and go.sum are byte-identical to 83fffe1's, so Go 1.27.3 and semver v3.5.0 stay.

  • verify-installed-system-hz-supplychain-47a53e3.py, adapted from the Kyverno verifier. It checks:

    • the new binary's bytes;
    • the selection of each revision, the default, and the refusal of an unsealed revision;
    • behaviour: in a one-file Git tree, a derived, never-stored token beside the inline allow comment is reported by 47a53e3 and still hidden by 83fffe1;
    • Node, Kyverno off PATH, and Codewire's runner assertion;
    • the inherited scanner, wrapper, Kyverno, Node, provider and database bytes.

    16 commands. The file carries no literal marker.

  • README.system-hz-supplychain-47a53e3.md.

The binary's sha256, 35fd108b…d45153, is from a local build with exactly the Dockerfile's recipe and inputs. The same recipe reproduces 83fffe1's sealed bytes (955d42cf…) exactly, so the pin is the image's.

Next, after merge: the infra forgejo-runner-image dry run at the merged revision, promote (standing approval for CI and runner images), then the adopt PR in infra.

codewire#3991, step 3: the runner image leaf for supplychain 47a53e3 (noeljackson/supplychain#91; the owner's approval is recorded on codewire#3013). Its secret scan runs Gitleaks with `--ignore-gitleaks-allow`, so an inline allow comment can no longer hide a secret from the sealed source approval. Repositories pick it up only by changing `EXPECTED_SUPPLYCHAIN`, after this image is published and adopted. **Change.** An additive leaf over the current runner image, v10, the Kyverno CLI 1.17.1 image (`sha256:6f746afc…aab1ee`). It's modelled on #33's supplychain half, with no Node change: - **`Dockerfile.system-hz-supplychain-47a53e3`:** one networkless `RUN` builds supplychain from source into `/usr/local/libexec/supplychain-47a53e3…`. - It checks every revision's selection through the unchanged wrapper (47a53e3, 83fffe1, v0.1.7, compat), the unpinned default, Node 24.22.1, jq 1.8.2, and Kyverno still off `PATH`. - `PATH` is unchanged. - **`supplychain-47a53e3-inputs.json`:** 83fffe1's list with only the source archive changed (revision, URL, sha256 `1c6c0eff…eb9f`, identical over two fetches). `go.mod` and `go.sum` are byte-identical to 83fffe1's, so Go 1.27.3 and semver v3.5.0 stay. - **`verify-installed-system-hz-supplychain-47a53e3.py`,** adapted from the Kyverno verifier. It checks: - the new binary's bytes; - the selection of each revision, the default, and the refusal of an unsealed revision; - **behaviour:** in a one-file Git tree, a derived, never-stored token beside the inline allow comment is reported by 47a53e3 and still hidden by 83fffe1; - Node, Kyverno off `PATH`, and Codewire's runner assertion; - the inherited scanner, wrapper, Kyverno, Node, provider and database bytes. 16 commands. The file carries no literal marker. - **`README.system-hz-supplychain-47a53e3.md`.** **The binary's sha256, `35fd108b…d45153`,** is from a local build with exactly the Dockerfile's recipe and inputs. The same recipe reproduces 83fffe1's sealed bytes (`955d42cf…`) exactly, so the pin is the image's. **Next, after merge:** the infra `forgejo-runner-image` dry run at the merged revision, `promote` (standing approval for CI and runner images), then the adopt PR in infra.
ci: seal supplychain 47a53e3, whose Gitleaks ignores inline allow comments, over the current runner image (codewire#3991)
All checks were successful
Supply-chain scan / Supply-chain scan (pull_request_target) Successful in 23s
d865529fe7
Author
Owner

Review at d865529fe (runner images).

Checked and correct:

  • The change is additive: four new files and no existing file touched. The head contains main.
  • The base is today's job image, act-node-docker@sha256:6f746afc… (Kyverno 1.17.1), which is what the warm VMs preload.
  • Sealed inputs against 83fffe1's: only the source tarball changed (URL, sha256 and release notes). The Go 1.27.3 toolchain and Masterminds/semver v3.5.0 are identical.
  • The tarball pin is right: I downloaded codeload's archive for 47a53e3 independently, and it hashes to 1c6c0eff…7eb9f.
  • The verifier's inherited list pins every scanner byte the parent holds, 83fffe1's binary included, plus the wrapper, Kyverno and Node.
  • The verifier proves the behaviour: a hash-derived token beside a gitleaks:allow comment is reported by 47a53e3 and still hidden by 83fffe1.

One fix before merge (accuracy of the sealed record): 83fffe1..47a53e3 holds two supplychain commits, not one:

  • 47a53e3 (#91, Gitleaks ignores inline allow comments);
  • b44f362 (#90, "accept shared workstation token"). It reads the OSM token from OSM_API_KEY when SUPPLYCHAIN_OSM_TOKEN is unset, and scrubs both before starting any tool.

The Dockerfile comment and README describe only #91. Please name #90 too. It's harmless in CI today, because no workflow in infra, codewire or security sets OSM_API_KEY, so it changes no job. But the leaf ships it, and the record should say so.

With that doc fix, approved. Adoption is paced after v0.4.19's release runs, per the orchestrator.

Review at d865529fe (runner images). **Checked and correct:** - The change is additive: four new files and no existing file touched. The head contains main. - The base is today's job image, `act-node-docker@sha256:6f746afc…` (Kyverno 1.17.1), which is what the warm VMs preload. - Sealed inputs against 83fffe1's: only the source tarball changed (URL, sha256 and release notes). The Go 1.27.3 toolchain and `Masterminds/semver` v3.5.0 are identical. - The tarball pin is right: I downloaded codeload's archive for 47a53e3 independently, and it hashes to `1c6c0eff…7eb9f`. - The verifier's inherited list pins every scanner byte the parent holds, 83fffe1's binary included, plus the wrapper, Kyverno and Node. - The verifier proves the behaviour: a hash-derived token beside a `gitleaks:allow` comment is reported by 47a53e3 and still hidden by 83fffe1. **One fix before merge (accuracy of the sealed record):** 83fffe1..47a53e3 holds two supplychain commits, not one: - 47a53e3 (#91, Gitleaks ignores inline allow comments); - b44f362 (#90, "accept shared workstation token"). It reads the OSM token from `OSM_API_KEY` when `SUPPLYCHAIN_OSM_TOKEN` is unset, and scrubs both before starting any tool. The Dockerfile comment and README describe only #91. Please name #90 too. It's harmless in CI today, because no workflow in infra, codewire or security sets `OSM_API_KEY`, so it changes no job. But the leaf ships it, and the record should say so. With that doc fix, approved. Adoption is paced after v0.4.19's release runs, per the orchestrator.
Author
Owner

Approved at 6c188e32b (runner images). The delta from d865529fe: the Dockerfile changes only in comments; in the inputs record only the release text changed, and the tarball sha256 1c6c0eff…7eb9f is unchanged; the README now names #90 and #91; and the verifier adds one check, that with a synthetic OSM_API_KEY set, --help names the variable and never echoes its value. Merge when ready. Adoption into infra waits until v0.4.19's release runs are done.

Approved at 6c188e32b (runner images). The delta from d865529fe: the Dockerfile changes only in comments; in the inputs record only the release text changed, and the tarball sha256 `1c6c0eff…7eb9f` is unchanged; the README now names #90 and #91; and the verifier adds one check, that with a synthetic `OSM_API_KEY` set, `--help` names the variable and never echoes its value. Merge when ready. Adoption into infra waits until v0.4.19's release runs are done.
noel merged commit 9e7797f6ba into main 2026-11-14 18:51:38 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
noel/act-node-docker!35
No description provided.