Repository navigation
impl(056): part b1, signed instruction for later releases and the qualify command - #326
Conversation
AI review (no-findings)Reviewing the diff across all changed files: spec update,
The core security invariant — SSH signature required for instructions whose
The guard for missing files on non-required kinds (
The function mutates
The old hard refusal on Test coverage
No concrete bugs or security defects found. {"head": "ddd160f495b166f2e1b516734d7a4f803b32c86d", "verdict": "no-findings", "findings": []}Subject: 0cf7fd9...ddd160f, diff digest be4cd7bdfdb7d4dd0f17146a69aaa242e85e7f7d48a846e498554511c8cb9e87, 1 call(s). An AI comment is not an approval. |
ddd160f to
24ee6f3
Compare
AI review (findings)Review
|
24ee6f3 to
1d98404
Compare
AI review (findings)Reviewing the diff for bugs, security problems, and inconsistencies.
The ordering is intentional and correct:
Replacing the hardcoded
// output_digest — rigorously validated:
|| !digest(&step.output_digest)
// checksums values — only non-empty check, no hex/length guard:
|| step.checksums.iter().any(|(k, v)| k.trim().is_empty() || v.trim().is_empty())
{"head": "1d984042cf99cbfe0237ae5c1e86ed13ea7dab0c", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/qualification.rs", "line": 97, "summary": "Checksum values inside `step.checksums` are validated only as non-empty strings, not as 64-char hex digests, unlike `output_digest` which uses the `digest()` helper; this allows arbitrary non-hex strings to pass evidence validation."}, {"path": "tools/rustev-release/src/qualification.rs", "line": 190, "summary": "`journal_path` is called with `Path::new(\".\")` as the base path instead of the repository root used by the equivalent `hosted::run` call, risking incorrect journal path resolution when the process CWD is not the repository root."}]}Subject: 496dec5...1d98404, diff digest 31d2c3ae8446a7bd3f8b1368fb8f0d734859ae4892b58a32324fade0542af9c3, 1 call(s). An AI comment is not an approval. |
1d98404 to
eee935f
Compare
AI review (no-findings)Reviewing the changes across
The new || (i.version != FIRST_RELEASE_VERSION
&& self.verified_instruction.as_ref() != Some(&i))Because
Replacing the hard version check with
Evidence keys use the
The function directly mutates
Tests
No concrete defects found. {"head": "eee935fb2238ddcb6cf80b262252ad2b106c14b3", "verdict": "no-findings", "findings": []}Subject: 496dec5...eee935f, diff digest e71f4ba4cca59bf0ef80335cea21b7a82f981bcca58a13f35302f060a30f5082, 1 call(s). An AI comment is not an approval. |
Pull request was converted to draft
AI review (no-findings)I reviewed the diff carefully, focusing on the SSH-signature enforcement for post-0.1.0 instructions, the new
The chicken-and-egg is resolved correctly:
The old hard-coded
The function saves and restores only
Non-required kinds are accepted absent (skip) or present-and-excluded; required kinds must be Test assertions
Updated to include No concrete bugs or security defects found. {"head": "eee935fb2238ddcb6cf80b262252ad2b106c14b3", "verdict": "no-findings", "findings": []}Subject: 496dec5...eee935f, diff digest e71f4ba4cca59bf0ef80335cea21b7a82f981bcca58a13f35302f060a30f5082, 1 call(s). An AI comment is not an approval. |
eee935f to
dd90b2b
Compare
AI review (findings)Looking at the diff, I'll check the key areas: signature verification logic, qualification evidence handling, and the new CLI dispatch.
The flow is sound.
Evidence validation is thorough; all fields are checked before the map is built.
The function signature is: pub fn run(dir, evidence_dir, instruction, journal, repo)The call in rustev_release::qualification::run(
Path::new(dir),
Path::new(evidence),
Path::new(instruction),
Path::new(&top), // ← repo root passed as `journal`
Path::new(journal), // ← user-supplied journal path passed as `repo`
)The 4th and 5th arguments are swapped. {"head": "dd90b2bfe7df837f348408e90978d1b6c214444a", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/main.rs", "line": 1101, "summary": "The `qualify` command passes `top` (git repo root) as the `journal` parameter and `journal` (user-supplied path) as the `repo` parameter to `qualification::run`, swapping the 4th and 5th arguments relative to the function signature."}]}Subject: 2d6b70b...dd90b2b, diff digest e71f4ba4cca59bf0ef80335cea21b7a82f981bcca58a13f35302f060a30f5082, 1 call(s). An AI comment is not an approval. |
dd90b2b to
a1f97c2
Compare
AI review (no-findings)Reviewing the diff across all changed paths.
The The
Directly manipulates
Argument order in the match arm matches
The old
Signs the original bytes, then appends No concrete defects found. {"head": "a1f97c2b03daef37fe29ba41081e34a578646a69", "verdict": "no-findings", "findings": []}Subject: 2d6b70b...a1f97c2, diff digest 1ac78654085caeb79913e76e074c5c5d24c1094074b908c4a50352c6ef75e107, 1 call(s). An AI comment is not an approval. |
Spec 056, part b1: the owner-signed instruction for a release after
0.1.0, andrustev-release qualify.0.1.0needs<instruction>.sig, a detached SSH signature over its exact bytes (namespacerustev-release, the owner identity inallowed_signers).publishandhosted-releaseverify it before any journal entry or upload and refuse an unsigned, wrongly signed or altered instruction.0.1.0keeps its 031 3.11.1 authority.rustev.qualification-step/1(tools/rustev-release/src/qualification.rs) andrustev-release qualify <release-dir> <evidence-dir> <instruction> <journal>. Required kinds (crates, npm, cli, image) come from the signed manifest; each required kind needs a passed step for every platform of the CLI and npm matrix. A missing, failing ornot_runstep, or anexcludedstep for a kind the manifest names, is refused before the journal; otherwise the step digests are recorded as theQualificationentry.implementation: in-progress.Tests:
tools/rustev-release/tests/signing.rs(valid, unsigned, wrong key, altered bytes,0.1.0unsigned),tools/rustev-release/tests/family.rs(complete, missing, failing,not_run, wrongly excluded).Review note (24ee6f3): restore_released now restores
family_observedandstatewhen the ReleaseCreated transition is refused, so a refusal leaves the lifecycle as it was found.Review note (1d98404): each recorded checksum must now be in its registry's form (a SHA-256 hex digest, or an npm
sha512-SRI integrity string; a new refusal case covers a malformed one), andqualifyresolves the journal and release against the repository root fromgit rev-parse --show-toplevel, aspublishdoes.Review note (dd90b2b): false positive.
qualifypasses the journal as the fourth argument and the repository root as the fifth, matchingrun(dir, evidence_dir, instruction, journal, repo); the call now binds both by name with a comment stating the order.