advisories: the scan runs in the image, and the three quinn advisories it found are fixed (macula-rust#2) #4

Closed
hygiea wants to merge 2 commits from hygiea/2-advisories-in-the-image into master
Member

Refs macula-rust#2. This is the fix for dry run 3203 (release-core.yml on master 39135a78, task 8246 "rust in ." red, nothing published, publish never expanded).

What the red actually was

Not a crate and not a broken parse: the scan never ran. cargo audit exits 1 both for vulnerabilities and for a failed advisory-database fetch, and the advisories stand-in accepts 1 as "findings", then reads the empty stdout as a parse error — with the stderr that named the cause dropped. Reproduced locally with the workflow's own pinned binary in the macula-rust checkout:

shape exit stdout stderr
working 1 23,850 bytes of JSON, 22 s empty
HOME unwritable 1 0 bytes couldn't fetch advisory database: I/O operation failed: Permission denied
DB unreachable 1 0 bytes couldn't fetch advisory database: git operation failed

The last two are what 3203 looked like from the wrapper's side. The stand-in's blindness is filed separately upstream (macula-io/macula-ci-images), and the three carriers re-copy it after that lands; this PR does not touch the stand-in file.

What this PR does

  1. The scan runs in the image (all three call sites: ci.yml's audit, release-core.yml, release-ffi.yml): container: ghcr.io/macula-io/macula-ci-otp:20261031-2106@sha256:f2532c6a… and container-options: '--user 1000:1000' — the public ghcr mirror, so no credentials ride along; HOME is /tmp inside it, writable; the job never writes a root-owned workspace (the stand-in refuses uid 0 first).
  2. The three advisories the environment was hiding are fixed: quinn-proto 0.11.18 → 0.11.19 and quinn-udp 0.5.15 → 0.5.16, both inside the range Cargo.toml already allows (quinn = "0.11"), so the change is Cargo.lock only.
RUSTSEC-2026-0523  quinn-proto 0.11.18  MAX_STREAM_DATA frame can open streams beyond the stream limit
RUSTSEC-2026-0524  quinn-proto 0.11.18  Long Retry token can panic or exhaust memory in a QUIC client
RUSTSEC-2026-0538  quinn-udp   0.5.15   Receive loop can spin after a truncated datagram

No waiver row is involved and nothing is being waived.

Proof

The stand-in's own script (its pinned cargo-audit 0.22.2, sha256 verified) run inside that image by digest, --user 1000:1000, HOME=/tmp, against this tree:

  • at master 39135a787: 3 advisory finding(s), 0 waived, 3 left, rc 1 — the gate working;
  • with the lock bumped: 0 advisory finding(s), 0 waived, 0 left, rc 0, stderr empty.

cargo check --locked --workspace on the bumped lock is the compile proof and is reported in the HANDOFF.

After it lands

The lander re-dispatches release-core.yml once on master (the Supervisor's word: no new GO, Actions are already on). Its publish job then proves what the port was built for: the Bearer token expression from 723a076, against the forge's Cargo registry.

Refs macula-rust#2. This is the fix for dry run 3203 (release-core.yml on master 39135a78, task 8246 "rust in ." red, nothing published, publish never expanded). ## What the red actually was Not a crate and not a broken parse: the scan never ran. `cargo audit` exits 1 both for vulnerabilities and for a failed advisory-database fetch, and the advisories stand-in accepts 1 as "findings", then reads the empty stdout as a parse error — with the stderr that named the cause dropped. Reproduced locally with the workflow's own pinned binary in the macula-rust checkout: | shape | exit | stdout | stderr | |---|---|---|---| | working | 1 | 23,850 bytes of JSON, 22 s | empty | | HOME unwritable | 1 | 0 bytes | `couldn't fetch advisory database: I/O operation failed: Permission denied` | | DB unreachable | 1 | 0 bytes | `couldn't fetch advisory database: git operation failed` | The last two are what 3203 looked like from the wrapper's side. The stand-in's blindness is filed separately upstream (macula-io/macula-ci-images), and the three carriers re-copy it after that lands; this PR does not touch the stand-in file. ## What this PR does 1. **The scan runs in the image** (all three call sites: `ci.yml`'s `audit`, `release-core.yml`, `release-ffi.yml`): `container: ghcr.io/macula-io/macula-ci-otp:20261031-2106@sha256:f2532c6a…` and `container-options: '--user 1000:1000'` — the public ghcr mirror, so no credentials ride along; HOME is `/tmp` inside it, writable; the job never writes a root-owned workspace (the stand-in refuses uid 0 first). 2. **The three advisories the environment was hiding are fixed**: `quinn-proto` 0.11.18 → 0.11.19 and `quinn-udp` 0.5.15 → 0.5.16, both inside the range `Cargo.toml` already allows (`quinn = "0.11"`), so the change is `Cargo.lock` only. ``` RUSTSEC-2026-0523 quinn-proto 0.11.18 MAX_STREAM_DATA frame can open streams beyond the stream limit RUSTSEC-2026-0524 quinn-proto 0.11.18 Long Retry token can panic or exhaust memory in a QUIC client RUSTSEC-2026-0538 quinn-udp 0.5.15 Receive loop can spin after a truncated datagram ``` No waiver row is involved and nothing is being waived. ## Proof The stand-in's own script (its pinned cargo-audit 0.22.2, sha256 verified) run inside that image by digest, `--user 1000:1000`, `HOME=/tmp`, against this tree: - at master 39135a787: `3 advisory finding(s), 0 waived, 3 left`, rc 1 — the gate working; - with the lock bumped: `0 advisory finding(s), 0 waived, 0 left`, rc 0, stderr empty. `cargo check --locked --workspace` on the bumped lock is the compile proof and is reported in the HANDOFF. ## After it lands The lander re-dispatches `release-core.yml` once on master (the Supervisor's word: no new GO, Actions are already on). Its publish job then proves what the port was built for: the `Bearer` token expression from 723a076, against the forge's Cargo registry.
Dry run 3203's red was the scan's environment, not a crate: on the runner's
default job image cargo audit's HOME and advisory database are nobody's known
thing, and a database fetch that failed read as a broken JSON parse with the
stderr that named it thrown away.

The scan now runs in ghcr.io/macula-io/macula-ci-otp:20261031-2106 by digest —
the public mirror, so no registry credentials ride along — with HOME under /tmp
inside it and --user 1000:1000, so the workspace it writes is never root-owned
(the stand-in refuses uid 0). Same call in ci.yml's audit job, release-core.yml
and release-ffi.yml, so the three cannot drift.
deps: quinn-proto 0.11.19 and quinn-udp 0.5.16, for three published advisories (macula-rust#2)
Some checks failed
CI / rustfmt (pull_request) Successful in 16s
CI / clippy (deny warnings) (pull_request) Successful in 2m52s
CI / builds for Android (arm64-v8a, x86_64) (pull_request) Has been skipped
CI / key files without hard links (as on Android) (pull_request) Has been skipped
CI / test (pull_request) Failing after 6m13s
CI / uniffi bindings (kotlin generates and compiles) (pull_request) Has been skipped
CI / Android Keystore round trip (emulator) (pull_request) Has been skipped
CI / docs (deny broken links) (pull_request) Successful in 3m21s
CI / Lint tests/teststation (structural floor) (pull_request) Successful in 1m14s
CI / rust in . (pull_request) Has been skipped
CI / Lint scripts/cross-verify-macula (structural floor) (pull_request) Successful in 2m14s
CI / rust in . (container) (pull_request) Successful in 25s
CI / Dependency advisories (pull_request) Successful in 0s
CI / coverage floor (lines) (pull_request) Failing after 7m40s
CI / keystore on Windows (Credential Manager) (pull_request) Has been cancelled
CI / uniffi bindings (swift generates and type-checks) (pull_request) Has been cancelled
CI / builds for iOS (device and simulator) (pull_request) Has been cancelled
Sealed interop / sealed interop (macula 17.2.0) (pull_request) Has been cancelled
df8812c71f
The scan in the image, against master 39135a787, reported what the environment had
been hiding:

  RUSTSEC-2026-0523  quinn-proto 0.11.18  MAX_STREAM_DATA can open streams beyond the limit
  RUSTSEC-2026-0524  quinn-proto 0.11.18  Long Retry token can panic or exhaust memory
  RUSTSEC-2026-0538  quinn-udp   0.5.15   Receive loop can spin after a truncated datagram

All three are fixed in patch releases inside the ranges Cargo.toml already allows
(quinn = "0.11"), so this is a lock update and no source change: quinn-proto
0.11.19, quinn-udp 0.5.16. The same scan on the updated tree reports 0 findings.
Member

Done-when, checked against the landed tree (master 56312fa2d0f23112fa645aaa73e83d90d40f6bab, fast-forwarded from 06f09502; PR 9):

  • The scan runs in the image, at all three call sites. ci.yml's audit, release-core.yml and release-ffi.yml each pass container: + container-options: '--user 1000:1000'. The image is the forge's public macula-pub copy of the same digest every other job here runs on — git.macula.io/macula-pub/macula-ci-otp@sha256:3e202cf7… — not the ghcr.io mirror the issue body above names (Jupiter's review round, 56312fa): the forge pulls it anonymously, no registry credentials ride along, and nothing is fetched from ghcr.io.
  • The scan is green on the landed tip. ci.yml run 6469, the only run for 56312fa, is success: test, coverage floor (lines), Lint tests/teststation, Dependency advisories, rust in . (container), docs, rustfmt, clippy all green. The three skips (key files/hard links, uniffi bindings, rust in .) are the same three skipped on run 6468, so they are the workflows' own shape, not this tip.
  • It ran where it was meant to, and found nothing. The scan job's own log: Start image=git.macula.io/macula-pub/macula-ci-otp@sha256:3e202cf7…, running as uid 1000 in /tmp, then dependency advisories: rust in /workspace/macula-io/macula-rust/., by cargo audit → 0 advisory finding(s), 0 waived, 0 left → Job succeeded.
  • The three quinn advisories stay fixed. Cargo.lock carries quinn-proto 0.11.19 and quinn-udp 0.5.16, inside Cargo.toml's existing quinn = "0.11"; no waiver row, none waived.

Still owed after this close, and tracked on #2: the lander's one dispatch of release-core.yml on master, whose publish job proves the Bearer token expression against the forge's Cargo registry.

Done-when, checked against the landed tree (master `56312fa2d0f23112fa645aaa73e83d90d40f6bab`, fast-forwarded from `06f09502`; PR 9): - **The scan runs in the image, at all three call sites.** `ci.yml`'s `audit`, `release-core.yml` and `release-ffi.yml` each pass `container:` + `container-options: '--user 1000:1000'`. The image is the **forge's public macula-pub copy** of the same digest every other job here runs on — `git.macula.io/macula-pub/macula-ci-otp@sha256:3e202cf7…` — not the ghcr.io mirror the issue body above names (Jupiter's review round, `56312fa`): the forge pulls it anonymously, no registry credentials ride along, and nothing is fetched from ghcr.io. - **The scan is green on the landed tip.** `ci.yml` run 6469, the only run for `56312fa`, is success: `test`, `coverage floor (lines)`, `Lint tests/teststation`, `Dependency advisories`, `rust in . (container)`, `docs`, `rustfmt`, `clippy` all green. The three skips (key files/hard links, uniffi bindings, `rust in .`) are the same three skipped on run 6468, so they are the workflows' own shape, not this tip. - **It ran where it was meant to, and found nothing.** The scan job's own log: `Start image=git.macula.io/macula-pub/macula-ci-otp@sha256:3e202cf7…`, `running as uid 1000 in /tmp`, then `dependency advisories: rust in /workspace/macula-io/macula-rust/., by cargo audit` → `0 advisory finding(s), 0 waived, 0 left` → `Job succeeded`. - **The three quinn advisories stay fixed.** `Cargo.lock` carries quinn-proto 0.11.19 and quinn-udp 0.5.16, inside `Cargo.toml`'s existing `quinn = "0.11"`; no waiver row, none waived. Still owed after this close, and tracked on #2: the lander's one dispatch of `release-core.yml` on master, whose publish job proves the `Bearer` token expression against the forge's Cargo registry.
titan closed this pull request 2026-12-01 18:14:45 +00:00
Some checks failed
CI / rustfmt (pull_request) Successful in 16s
CI / clippy (deny warnings) (pull_request) Successful in 2m52s
CI / builds for Android (arm64-v8a, x86_64) (pull_request) Has been skipped
CI / key files without hard links (as on Android) (pull_request) Has been skipped
CI / test (pull_request) Failing after 6m13s
CI / uniffi bindings (kotlin generates and compiles) (pull_request) Has been skipped
CI / Android Keystore round trip (emulator) (pull_request) Has been skipped
CI / docs (deny broken links) (pull_request) Successful in 3m21s
CI / Lint tests/teststation (structural floor) (pull_request) Successful in 1m14s
CI / rust in . (pull_request) Has been skipped
CI / Lint scripts/cross-verify-macula (structural floor) (pull_request) Successful in 2m14s
CI / rust in . (container) (pull_request) Successful in 25s
CI / Dependency advisories (pull_request) Successful in 0s
CI / coverage floor (lines) (pull_request) Failing after 7m40s
CI / keystore on Windows (Credential Manager) (pull_request) Has been cancelled
CI / uniffi bindings (swift generates and type-checks) (pull_request) Has been cancelled
CI / builds for iOS (device and simulator) (pull_request) Has been cancelled
Sealed interop / sealed interop (macula 17.2.0) (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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
macula-io/macula-rust!4
No description provided.