ci: add sealed Rust 1.100.0 runner leaf beside 1.93.0, 1.99.0 and 1.99.1 (codewire#6494) #37

Merged
noel merged 2 commits from ci/rust-1.100.0 into main 2026-11-25 13:16:33 +00:00
Owner

For codewire#6494: Rust 1.99 reached end of life on 2026-11-12, and Codewire's strict Supply-chain scans fail from 2026-12-12 until its toolchain moves.

This adds a sealed Rust 1.100.0 leaf over the current admitted runner image, v11 (68de3cca). It has the same shape as the 1.99.1 leaf (#29, #30).

What changes:

  • /opt/infra-rust/1.100.0, with the host bundle and five standard libraries from the official channel-rust-1.100.0.toml (2026-11-12, SHA-256 3051e859…). rust1100-inputs.json is generated from that manifest.
  • The selector now lists 1.93.0 1.99.0 1.99.1 1.100.0. That is a one-line change, and its new SHA-256 is pinned in the recipe and the test. The default stays 1.93.0, so adopting the image changes no repository's toolchain.

What stays:

  • The 1.93.0, 1.99.0 and 1.99.1 prefixes. The recipe checks each one's identities and read-only mode before and after the install.
  • The provider archive and the offline advisory databases, checked by hash before and after.

The installed verifier:

  • It runs Codewire's own assert-ci-runner-image.sh for each inherited toolchain. 1.99.1 joins 1.93.0 and 1.99.0, pinned from Codewire main 867dabfdba.
  • It builds and runs probes with all four toolchains, and a static arm64 musl probe with 1.99.0, 1.99.1 and 1.100.0, each linked by its own rust-lld.
  • Four Infra consumer files changed on Infra main since the 1.99.1 leaf (the R2 lifecycle module's providers.tf, variables.tf, tests/policy.tftest.hcl and its test script, Infra d1a10caca). Their pins are refreshed; the 27 mock-plan runs are unchanged.

Checks:

  • test-system-hz-rust1100.py against the official manifest: PASS, 26 tests, 45 source and 34 input mutations refused.
  • test-installed-system-hz-rust1100.py: OK, 16 tests.
  • The 1.99.1 installed test still passes. Its static test pins the previous selector, as the 1.99.0 one did after #29.

The image's dry run (build and installed verification) is running; its result will follow as a comment. Nothing is published until this merges.

For codewire#6494: Rust 1.99 reached end of life on 2026-11-12, and Codewire's strict Supply-chain scans fail from 2026-12-12 until its toolchain moves. This adds a sealed Rust 1.100.0 leaf over the current admitted runner image, v11 (`68de3cca`). It has the same shape as the 1.99.1 leaf (#29, #30). **What changes:** - `/opt/infra-rust/1.100.0`, with the host bundle and five standard libraries from the official `channel-rust-1.100.0.toml` (2026-11-12, SHA-256 `3051e859…`). `rust1100-inputs.json` is generated from that manifest. - The selector now lists `1.93.0 1.99.0 1.99.1 1.100.0`. That is a one-line change, and its new SHA-256 is pinned in the recipe and the test. The default stays 1.93.0, so adopting the image changes no repository's toolchain. **What stays:** - The 1.93.0, 1.99.0 and 1.99.1 prefixes. The recipe checks each one's identities and read-only mode before and after the install. - The provider archive and the offline advisory databases, checked by hash before and after. **The installed verifier:** - It runs Codewire's own `assert-ci-runner-image.sh` for each inherited toolchain. 1.99.1 joins 1.93.0 and 1.99.0, pinned from Codewire main 867dabfdba. - It builds and runs probes with all four toolchains, and a static arm64 musl probe with 1.99.0, 1.99.1 and 1.100.0, each linked by its own `rust-lld`. - Four Infra consumer files changed on Infra main since the 1.99.1 leaf (the R2 lifecycle module's `providers.tf`, `variables.tf`, `tests/policy.tftest.hcl` and its test script, Infra d1a10caca). Their pins are refreshed; the 27 mock-plan runs are unchanged. **Checks:** - `test-system-hz-rust1100.py` against the official manifest: PASS, 26 tests, 45 source and 34 input mutations refused. - `test-installed-system-hz-rust1100.py`: OK, 16 tests. - The 1.99.1 installed test still passes. Its static test pins the previous selector, as the 1.99.0 one did after #29. The image's dry run (build and installed verification) is running; its result will follow as a comment. Nothing is published until this merges.
ci: add sealed Rust 1.100.0 runner leaf beside 1.93.0, 1.99.0 and 1.99.1 (codewire#6494)
All checks were successful
Supply-chain scan / Supply-chain scan (pull_request_target) Successful in 10s
16d0d0107f
ci: pin the R2 lifecycle test whose leak control works on a read-only source (codewire#6494)
All checks were successful
Supply-chain scan / Supply-chain scan (pull_request_target) Successful in 9s
9d7a604f2b
Author
Owner

The image dry run passed at 9d7a604f, on 2026-11-25. It ran Infra's scripts/forgejo-runner-image dry-run from an Infra branch at main 3c1c851b7 plus one test fix (below).

  • Build: BuildKit with RUN networking disabled, on parent v11 68de3cca, with the six sealed archives. It's 38 layers, 3,593,546,752 bytes. Manifest sha256:2bfa059d19c696889d9783084d9e66beb40c98032e52f9e34a98abbde219d6d8, config sha256:7017398785c5….
  • Installed verification: passed with exactly 74 commands, guest exit 0, in 23.4 s. Verifier 1b070d15…. Codewire revisions: 1.93.0 b4a618db, 1.99.0 f9b84b50, 1.99.1 867dabfd.
  • Isolation: no credential was read and nothing was written to the registry.

The second commit: the first dry run passed every Rust, selector and scanner check. Then Infra's R2 lifecycle test failed in the sealed fixture. Its new native-credential leak control (Infra d1a10caca) overwrites providers.tf in its working copy. shutil.copy2 keeps the sealed source's read-only mode, so the write was refused. On the Infra side, the test now unlinks the copy before writing it; that change goes in the same Infra PR that adopts this image. The verifier pins that fixed script (1510c4c3…). Run against read-only sources in the built image, it passes: 27 mock plans and the native SDK qualification.

Next: publish under the standing approval for CI and runner images once this merges, then the Infra adoption PR.

The image dry run passed at 9d7a604f, on 2026-11-25. It ran Infra's `scripts/forgejo-runner-image dry-run` from an Infra branch at main 3c1c851b7 plus one test fix (below). - **Build:** BuildKit with `RUN` networking disabled, on parent v11 `68de3cca`, with the six sealed archives. It's 38 layers, 3,593,546,752 bytes. Manifest `sha256:2bfa059d19c696889d9783084d9e66beb40c98032e52f9e34a98abbde219d6d8`, config `sha256:7017398785c5…`. - **Installed verification:** passed with exactly 74 commands, guest exit 0, in 23.4 s. Verifier `1b070d15…`. Codewire revisions: 1.93.0 `b4a618db`, 1.99.0 `f9b84b50`, 1.99.1 `867dabfd`. - **Isolation:** no credential was read and nothing was written to the registry. **The second commit:** the first dry run passed every Rust, selector and scanner check. Then Infra's R2 lifecycle test failed in the sealed fixture. Its new native-credential leak control (Infra d1a10caca) overwrites `providers.tf` in its working copy. `shutil.copy2` keeps the sealed source's read-only mode, so the write was refused. On the Infra side, the test now unlinks the copy before writing it; that change goes in the same Infra PR that adopts this image. The verifier pins that fixed script (`1510c4c3…`). Run against read-only sources in the built image, it passes: 27 mock plans and the native SDK qualification. Next: publish under the standing approval for CI and runner images once this merges, then the Infra adoption PR.
Author
Owner

cw-security review of 9d7a604f2b: approved.

  • Inputs: I fetched channel-rust-1.100.0.toml myself. It hashes to 3051e859570f…9258 and is dated 2026-11-12. All six archives' xz_hash values (rust for x86_64-unknown-linux-gnu, and rust-std for the five targets) equal rust1100-inputs.json and the Dockerfile's sha256sum --check --strict pins.
  • Build: the single RUN is --network=none, with read-only bind mounts only. The selector's pinned sha256 e2b1b3d5… matches system-hz-rust-select.sh at this head.
  • Same shape as the 1.99.1 leaf: with versions normalised, the Dockerfile differs only in the base (68de3cca, current v11), the new pins and version strings, and the added checks that the inherited 1.99.1 prefix is intact and read-only. The verifier differs only in its pins and the extra probe.
  • Selector: it only adds 1.100.0 and the default stays 1.93.0, so adopting the image changes no repository's toolchain.
  • Second commit: one pin line, the sha256 of infra's R2 lifecycle test after its fix. The infra adoption PR carries that fix as its first commit.
cw-security review of 9d7a604f2b55223185d926995d464487a34ef562: approved. - **Inputs:** I fetched `channel-rust-1.100.0.toml` myself. It hashes to `3051e859570f…9258` and is dated 2026-11-12. All six archives' `xz_hash` values (rust for x86_64-unknown-linux-gnu, and rust-std for the five targets) equal `rust1100-inputs.json` and the Dockerfile's `sha256sum --check --strict` pins. - **Build:** the single `RUN` is `--network=none`, with read-only bind mounts only. The selector's pinned sha256 `e2b1b3d5…` matches `system-hz-rust-select.sh` at this head. - **Same shape as the 1.99.1 leaf:** with versions normalised, the Dockerfile differs only in the base (`68de3cca`, current v11), the new pins and version strings, and the added checks that the inherited 1.99.1 prefix is intact and read-only. The verifier differs only in its pins and the extra probe. - **Selector:** it only adds 1.100.0 and the default stays 1.93.0, so adopting the image changes no repository's toolchain. - **Second commit:** one pin line, the sha256 of infra's R2 lifecycle test after its fix. The infra adoption PR carries that fix as its first commit.
noel merged commit 567f1d4b7d into main 2026-11-25 13:16:33 +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!37
No description provided.