Skip to content

serve: the image's runtime base moves to distroless cc-debian13 (010, 042) - #502

Merged
bartekus merged 1 commit into
mainfrom
impl/serve-base-debian13
Nov 4, 2026
Merged

bartekus merged 1 commit into
mainfrom
impl/serve-base-debian13

Conversation

@bartekus

@bartekus bartekus commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

The rustev-serve image's runtime base moves to gcr.io/distroless/cc-debian13:nonroot, on the owner's decision of 2026-11-03 (spec 060 decision 2).

  • integrations/rustev-serve/image/Dockerfile: runtime FROM gcr.io/distroless/cc-debian13:nonroot@sha256:08476c244888bfb425bae1ae4dd7c17f093e972aab8426883d97f3c6f280f7c1 (amd64 sha256:65af2e9e44e71de2df28245f6814301775d3ef04436b7d563f240d86fedf24aa, arm64 sha256:1026089ebb266c264cfa1828860332f25160079615ee146d159a7d1f3a701bd3, resolved 2026-11-03).
  • The builder stays rust:1.98.1-bookworm. The binary links only libc.so.6, libm.so.6 and libgcc_s.so.1, and trixie's glibc 2.41 keeps the symbol versions a glibc 2.36 build uses.
  • Spec 010: the rustev-serve binding record's base image row is amended (it names the replaced cc-debian12 digest and why), plus a record paragraph.
  • Spec 042: a record paragraph. tests/image.rs now requires the cc-debian13:nonroot prefix; README updated.
  • Why not refresh within Debian 12: cc-debian12:nonroot still resolves to the digest pinned on 2026-10-21, whose libssl3 (3.0.20) lacks Debian's fixes.

Local evidence: built with artifacts.sh build-image for linux/arm64 (native) and linux/amd64 (emulated). image/check.sh passed on both. The arm64 image, read-only with no network and a Unix-socket configuration, registered an exact synthetic plan and answered judged. Scan (syft 1.54.1, grype 0.120.1): 44 findings per platform, identical on both, down from 61; none in libssl.

Stacked on release/bump-0.4.0 (#480). Independent of the 060 stack.

Checks: cargo test -p rustev-serve --locked --test image passed (5); make gate passed; check-authored-content.sh clean.

Also: spec-spine verify 042 passed; spec-spine verify 010 passed (13 commands).

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the five changed files for bugs, security problems, and inconsistencies.

Dockerfile (integrations/rustev-serve/image/Dockerfile): The runtime stage is rebased from gcr.io/distroless/cc-debian12:nonroot@sha256:9dac…182f to gcr.io/distroless/cc-debian13:nonroot@sha256:0847…f7c1. The builder stage is unchanged (not in the diff). The image is pinned by digest, which is correct practice.

README.md: Updated from cc-debian12 to cc-debian13. Consistent with the Dockerfile.

tests/image.rs: The starts_with assertion is updated from gcr.io/distroless/cc-debian12:nonroot@sha256: to gcr.io/distroless/cc-debian13:nonroot@sha256:. Consistent prefix check.

specs/010-integrations/spec.md: The binding record row for 042 2.2: base image is amended. The index digest sha256:08476c244888bfb425bae1ae4dd7c17f093e972aab8426883d97f3c6f280f7c1, amd64 digest, arm64 digest, and resolution date are all consistent with the Dockerfile and the new paragraph added above. Result remains pass, consistent with the stated local check.sh run. The paragraph notes outstanding grype findings are deferred to the owner as image exceptions, which is an explicit disclosure, not a hidden defect.

specs/042-decision-service-and-remote-seams/spec.md: The amendment paragraph is consistent with spec 010 on the index digest, the builder, and the glibc compatibility argument. The spec references spec 060 decision 2 as authority for the change; spec 060 is in the repo context but is not a changed path, so I cannot verify the decision text, but the reference itself is not a defect I can support with the supplied evidence.

Cross-file digest consistency: sha256:08476c244888bfb425bae1ae4dd7c17f093e972aab8426883d97f3c6f280f7c1 appears identically in the Dockerfile, both spec paragraphs, and the binding record row. No discrepancy found.

No concrete defects found.

{"head": "13ff81c8f6fb3aa01cf494ae57c6b3127aa2a177", "verdict": "no-findings", "findings": []}

Subject: e3f6b9a...13ff81c, diff digest 3afa4254df99450bf0bceb83faef56ff07d9d3b1817a28177f315a6da4d669d3, 1 call(s). An AI comment is not an approval.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

AI review (findings)

Reviewing the five changed files for bugs, security issues, and inconsistencies.

Digest consistency across files

All four locations that name the new index digest are identical:

  • Dockerfile FROM line: sha256:08476c244888bfb425bae1ae4dd7c17f093e972aab8426883d97f3c6f280f7c1
  • specs/010-integrations/spec.md binding record row: same
  • specs/010-integrations/spec.md narrative note: same
  • specs/042-decision-service-and-remote-seams/spec.md narrative note: same

No inconsistency there.

Stale amendment date on the result line in specs/010-integrations/spec.md

The binding-record table's base-image row was just amended on 2026-11-03, but the result line that follows the table (visible in the diff context, left unchanged by this PR) still reads:

Result (amended 2026-10-22): every row pass.

The 2026-10-22 date reflects the previous amendment (the sigstore-verify row); this PR's amendment of 2026-11-03 is not reflected. The amendment date in the result line is stale.

Everything else

  • Builder-stage image is unchanged; only the runtime stage moves from debian12 to debian13.
  • The test prefix check (cc-debian13:nonroot@sha256:) is consistent with the Dockerfile.
  • No managed files are touched.
  • Spec-first development: both owning specs (010, 042) are updated alongside the code change.
  • No security regressions introduced; the motivation is a libssl3 fix not backported to debian12.
{"head": "99666868d50d05d7e221583d5edbb2e401a37c51", "verdict": "findings", "findings": [{"path": "specs/010-integrations/spec.md", "line": null, "summary": "The result line's amendment date ('amended 2026-10-22') is not updated to reflect the 2026-11-03 amendment of the base-image row, leaving a stale date in the record."}]}

Subject: 983b4ac...9966686, diff digest 35bac9965156914d067946bdc5ba088c3745c7b814f1f74df8272fdf6b584927, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus had a problem deploying to statecraft-review-exception November 4, 2026 00:40 — with GitHub Actions Error
@bartekus
bartekus force-pushed the impl/serve-base-debian13 branch from 9966686 to b07b6b5 Compare November 4, 2026 00:43
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the PR, which moves the rustev-serve runtime base image from gcr.io/distroless/cc-debian12:nonroot to gcr.io/distroless/cc-debian13:nonroot.

Digest consistency across files:

  • Dockerfile: sha256:08476c244888bfb425bae1ae4dd7c17f093e972aab8426883d97f3c6f280f7c1 ✓
  • specs/010: same index digest, plus matching platform digests (amd64 sha256:65af2e..., arm64 sha256:10260...) ✓
  • specs/042: same index digest ✓
  • README: narrative reference consistent ✓

Test (tests/image.rs): The changed assertion checks that the runtime stage starts with gcr.io/distroless/cc-debian13:nonroot@sha256:, which requires a digest-pinned reference. The surrounding digest_of(runtime) call (unchanged in this hunk) suggests further digest verification is in place downstream.

glibc compatibility claim: The spec states the binary links only libc.so.6, libm.so.6, libgcc_s.so.1, and the loader; trixie's glibc 2.41 maintains the older symbol versions a bookworm-linked (glibc 2.36) binary uses. This is a standard forward-compatibility guarantee and is technically sound.

Security rationale: The claim that cc-debian12's libssl3 had not received Debian's fixes is an assertion about an external registry state I cannot independently verify, but the stated grype scan evidence is attributed to spec 060 and acknowledged as the owner's exception domain.

Governance: Spec 010's binding record and spec 042's narrative are both updated. Both reference "spec 060 decision 2" as the authorizing owner decision. The changed files are not in the managed-file set (.github/workflows/statecraft-*.yml, scripts/statecraft/*) that require the statecraft-review-exception approval.

No concrete defects found.

{"head": "b07b6b51cc237adbbccd68adbd28b357780930a5", "verdict": "no-findings", "findings": []}

Subject: 983b4ac...b07b6b5, diff digest f6397c470737854aa8bd4be77819b52a62393a576a766eba1c6c45aa44002c24, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus added this pull request to the merge queue Nov 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 4, 2026
@bartekus
bartekus added this pull request to the merge queue Nov 4, 2026
@bartekus
bartekus removed this pull request from the merge queue due to a manual request Nov 4, 2026
@bartekus
bartekus added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit c95ee4e Nov 4, 2026
38 checks passed
@bartekus
bartekus deleted the impl/serve-base-debian13 branch November 4, 2026 05:42
bartekus added a commit that referenced this pull request Nov 5, 2026
…0 3.1) [held for owner decision] (#499)

Spec 060 increment 5 (3.1): membership. DRAFT, DO NOT MERGE until the
owner decides 060 decision 2 and the other prerequisites below hold.

- `tools/rustev-release/release-set.json` names the image under `image`
(`ghcr.io/statecrafting/rustev-serve`, `linux/amd64`, `linux/arm64`) and
drops its `absent` entry. This is the switch that makes the next release
name the image in its manifest, gate its scan through
`image-exceptions.json`, push and attest it (`publish-image`), verify it
and qualify it.
- Tests that are not about the image (`tests/family.rs`,
`tests/tagged.rs` fixtures) set `image` to none; `tests/npm.rs` and
`tests/image.rs` no longer read an image absence from the committed set.

Prerequisites before merging:
1. The base move to `gcr.io/distroless/cc-debian13:nonroot` (#502),
decided by the owner on 2026-11-03.
2. The owner's ruling on each of the 44 findings on that base (one
decision row and one `image-exceptions.json` entry per (id, package), at
most 90 days). With the image a member, any uncovered finding fails
`image-checks`.
3. The image qualification of 060 3.4.3 as amended (#500 harness, #501
workflow).
4. Spec 042 is complete (#477), so 3.1.1's condition holds. The owner
makes the ghcr package public after the first push.

Stacked on #498 (on #496, #494).

Checks: `cargo test -p rustev-release --locked` passed (all binaries);
`make gate` passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

statecraft:stacked-ci Run the full CI matrix on a stacked pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant