diff --git a/.crumb b/.crumb index 1f9e67ce..ebd87aff 100644 --- a/.crumb +++ b/.crumb @@ -100,8 +100,8 @@ "purpose": "" }, { - "digest": "459e0218a85fe55235bcbdf94455e069c52b77c0811063105da5bf438995b7a4", - "last_commit": "1615afbb", + "digest": "0390b1177e222b266fec85566998f303c692b904c570e766038b4edf533b3a14", + "last_commit": "dc1c3b52", "name": "scripts", "purpose": "" }, @@ -118,15 +118,15 @@ "purpose": "Local CI sandbox exec contract (C8), aien-run user/caches install, Forgejo trigger hook, health " } ], - "children_root": "sha256:9c8f34b4f863ab4604666e780128e486c6b32d512c2f8c9342f8b26a582874d3", - "compiled_at": "2026-10-16T09:13:10Z", + "children_root": "sha256:7ec210e8858dbf4f09b2c1f806275d9b8aa99e37cffdf56a63b4eed9f2810a32", + "compiled_at": "2026-10-16T09:36:36Z", "compiler": "crumb-compile/1", - "digest": "sha256:b03efd466778c2c308b3c9b79ca88e6207a05b2f6cccd35beb12f7b13718d852", + "digest": "sha256:d36472728ccf83a21a11725434b3399655c8a30861a207148e8b7180b86b1f45", "evidence_files": 1578, "evidence_root": "sha256:135e27a1a0704c4a8371cd2c1eb555f2b5beec61c212949b029a5457418a7160", "files": 5888, - "generated_at_commit": "0deac986ea154a409ce3178ecc217653e4032562", - "source_tree": "sha256:ee32ef00cb8e8e543c80b0424275f4ff4afb37d6ebb3de8f4c38ce54377d1da1" + "generated_at_commit": "dc1c3b52420ad4ed7f94f0526542bbb337f02b39", + "source_tree": "sha256:ce08783b9a62fd5458f5ddf69ae1df974c8d92322a786c41a69950badfe16561" } }, "history": [], diff --git a/scripts/.crumb b/scripts/.crumb index 5651fd39..d18bcdd8 100644 --- a/scripts/.crumb +++ b/scripts/.crumb @@ -4,14 +4,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-16T07:44:02Z", + "compiled_at": "2026-10-16T08:21:21Z", "compiler": "crumb-compile/1", - "digest": "sha256:459e0218a85fe55235bcbdf94455e069c52b77c0811063105da5bf438995b7a4", + "digest": "sha256:0390b1177e222b266fec85566998f303c692b904c570e766038b4edf533b3a14", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 53, - "generated_at_commit": "1681069b921de335bd5a8bee9c24ff2eae3559ab", - "source_tree": "sha256:273867bd979b44690c3ec1261405d4d081e5bbf326e0aa283d1b30361438b03a" + "generated_at_commit": "5ff9be97c3efaf742a3f959a10d0cd84f63962ac", + "source_tree": "sha256:5881da27313926385c7b1b830811e07692b5f24f34bc2b9f0e2d31da08a72795" } }, "parent": { diff --git a/scripts/test-public-key-integration.sh b/scripts/test-public-key-integration.sh index 97d1cadf..f4371a38 100755 --- a/scripts/test-public-key-integration.sh +++ b/scripts/test-public-key-integration.sh @@ -64,14 +64,19 @@ FP="$(sed -n 's/^fingerprint: //p' "$PUB/ceremony-record.txt")" [[ "$FP" == "$(awk '{ print $2" "$3 }' "$T/docs/release/allowed_signers" | grep -v '^#' | ssh-keygen -lf - | awk '{ print $2 }' | head -1)" ]] || fail "record fingerprint is not the pinned key's fingerprint" if bash "$T/scripts/check-release-trust-config.sh" --root "$T" > "$W/o.log" 2>&1; then fail "rehearsal tree passed the strict check"; fi pass "(e) record fingerprint $FP equals the pinned line; strict mode refuses the rehearsal tree" -mutant() { # name, then commands run in a fresh copy of the pinned tree; the checker must refuse +mutant() { # name, then commands run in a fresh copy of the pinned tree; the copy must differ; the checker must refuse local name="$1" M="$W/m-$1"; shift rm -rf "$M"; cp -r "$T" "$M"; ( cd "$M"; "$@" ) || fail "mutant $name could not be built" + # A mutant that leaves the tree byte-identical is accepted by the checker for the right reason and would report + # a false failure (sc#568). A no-op mutant is a bug in this test, so refuse to run it at all. + if diff -rq -x .git "$T" "$M" > /dev/null; then fail "mutant $name is a no-op: the mutated tree is identical to the pinned tree"; fi if bash "$M/scripts/check-release-trust-config.sh" --root "$M" --allow-rehearsal > "$W/o.log" 2>&1; then fail "mutant refused? no: $name passed the checker"; fi pass "mutant refused: $name ($(sed -n 's/.*REFUSED: //p' "$W/o.log" | cut -c1-70))" } OTHERLINE="aien-release $(cut -d' ' -f1,2 "$W/other.pub")" -mutant wrong-fingerprint-in-record sed -i 's/^fingerprint: SHA256:./fingerprint: SHA256:X/' docs/release/ceremony-record.txt +# The fingerprint is random per run, so replacing its first character with a fixed one was a no-op about 1 in 64 +# runs (sc#568). Swap it to X unless it already is X, then to Y: the value always changes. +mutant wrong-fingerprint-in-record sed -i -E 's/^(fingerprint: SHA256:)X/\1Y/; t; s/^(fingerprint: SHA256:)./\1X/' docs/release/ceremony-record.txt mutant other-key-in-allowed_signers sed -i "s|^aien-release ssh-ed25519 .*|$OTHERLINE|" docs/release/allowed_signers mutant installer-pin-differs sed -i "s|^AIEN_RELEASE_SIGNER=.*|AIEN_RELEASE_SIGNER='$OTHERLINE'|" install.sh mutant installer-pin-empty sed -i "s|^AIEN_RELEASE_SIGNER=.*|AIEN_RELEASE_SIGNER=''|" install.sh