Skip to content

ci(001): pin spec-spine 0.32.0 and add the workspace deny.toml - #514

Merged
bartekus merged 2 commits into
mainfrom
ops/policy-rev26
Nov 5, 2026
Merged

bartekus merged 2 commits into
mainfrom
ops/policy-rev26

Conversation

@bartekus

@bartekus bartekus commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Policy-only part of the setup-profile revision 26 adoption (#513), split out because revision 26's policy-isolation guard refuses policy and other paths in one pull request.

  • spec-spine.toml pins =0.32.0; .statecraft/derived regenerated by the engine bump.
  • New root deny.toml (owner decision 2026-11-05, workspace policy): Zlib, BSL-1.0 and MPL-2.0 allowed; the aicortex git source allowed; duplicate versions warn; path wildcards allowed; five advisories ignored (RUSTSEC-2025-0141 bincode, RUSTSEC-2025-0057 fxhash, RUSTSEC-2026-0385 ctutils, RUSTSEC-2026-0194 and RUSTSEC-2026-0195 quick-xml; non-release crates only), to be revisited by 2027-02-05. The release deny.toml is unchanged.

Nothing reads deny.toml until #513 renders the supply-chain job. make gate passes.

Advisory change: the ctutils ignore was dropped; ctutils is updated to 0.4.8 instead (see review note).

Spec-Drift-Waiver: Cargo.lock moves ctutils 0.4.3 to 0.4.8 for RUSTSEC-2026-0385, a lockfile-only security update with no API change; the policy-isolation guard keeps spec edits out of this policy PR, and spec 001's revision 26 record lands in #513. Owner direction 2026-11-05: escalate and land every open PR.

Policy files land on their own (revision 26's policy-isolation guard).
deny.toml: Zlib, BSL-1.0 and MPL-2.0 allowed; the aicortex git source
allowed; duplicate versions warn; path wildcards allowed; five advisories
in non-release crates ignored, to be revisited by 2027-02-05. The release
deny.toml is unchanged. Shards regenerated by the engine bump.
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

AI review (findings)

Reviewing the two changed files: deny.toml (new, workspace cargo deny policy) and spec-spine.toml (version bump from 0.31.0 to 0.32.0).

spec-spine.toml: The bump from =0.31.0 to =0.32.0 is a straightforward pin change. Per AGENTS.md, make refresh must be run and derived artifacts committed if the version change stales them, but I cannot determine from the diff alone whether format-compatibility is broken; I see the existing derived tree in REPO CONTEXT and cannot flag absence.

deny.toml: The structure is correct (advisory ignores, license allowlist, bans, sources). One concern stands out:

  • RUSTSEC-2026-0385 (ctutils non-constant-time mask, line 23): The ignore reason states "no secret comparison of ours," yet rustev-bedrock is explicitly listed as an affected crate. rustev-bedrock is the AWS Bedrock integration (spec 030), and AWS SDK integrations in Rust perform SigV4 request signing via the digest/hmac crate family — precisely the path where constant-time guarantees matter for HMAC computation. The advisory is for a non-constant-time bitmask operation in a cryptographic primitive. If the AWS SDK's signing path uses digest 0.11 via ctutils, the claim "no secret comparison of ours" may be inaccurate: the HMAC key material would flow through the affected code. The justification is an unverifiable assertion within the ignore entry itself and should be confirmed against the actual dependency graph of rustev-bedrock and the specific call sites within the AWS SDK version pinned in Cargo.lock.

The other four ignores (bincode unmaintained, fxhash unmaintained, two quick-xml issues) have reasons consistent with the stated scopes and revisit dates.

{"head": "d57a1092b806790b2dc9196b7f9d59a811443430", "verdict": "findings", "findings": [{"path": "deny.toml", "line": 23, "summary": "RUSTSEC-2026-0385 (ctutils non-constant-time mask) is ignored with the unverifiable justification 'no secret comparison of ours,' but rustev-bedrock (the AWS Bedrock integration) is an explicitly listed affected crate; AWS SigV4 HMAC signing in Rust SDKs flows through the digest crate family, making the stated reason suspect and warranting verification against the rustev-bedrock dependency graph and AWS SDK signing path."}]}

Subject: a19c9e4...d57a109, diff digest ce08b821f510db19f2f3283996d6c6bfb2146bcbe9d6b1150c7f38d1056739e3, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 22:13 — with GitHub Actions Inactive
…noring it

ctutils reaches rustev-bedrock (a release-set crate) through aws-sigv4's
HMAC signing; 0.4.4 and later carry the fix.
@bartekus

bartekus commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Review note: the RUSTSEC-2026-0385 finding is correct. ctutils reaches rustev-bedrock, which is in the release set, through aws-sigv4's HMAC signing. 52cbc8c updates ctutils to 0.4.8, which is past the patched floor of 0.4.4, and removes the ignore. cargo deny --locked check all passes: advisories, bans, licenses and sources are all ok.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

AI review (findings)

Looking at the three changed files:

Cargo.lock: ctutils bumped 0.4.3 → 0.4.8 with a new checksum. Both checksums are valid 64-character hex strings; the dependency (cmov) is unchanged. No issue.

spec-spine.toml: required_version bumped =0.31.0 → =0.32.0. Straightforward tool pin update; consistent with governance rules.

deny.toml: New workspace supply-chain policy file. Most of this is well-structured:

  • License allowlist covers expected open-source licenses.
  • [bans] correctly uses allow-wildcard-paths = true for workspace path deps.
  • [sources] correctly limits to crates.io plus the pinned Aicortex git repo.
  • Advisory ignore entries are plausible and scoped by documented reason.

Finding: deny.toml lines 15–16 use "all" as the lint level for unmaintained and unsound:

unmaintained = "all"
unsound = "all"

In cargo-deny, the valid lint levels for these fields are "deny", "warn", and "allow". The value "all" is not a recognized LintLevel variant in current cargo-deny versions (0.14+). This would cause a deserialization/parse error when cargo deny check all runs in CI, failing the supply-chain job entirely. The intended behaviour (treat as hard errors) is expressed by "deny".

{"head": "52cbc8cb95057b0be0edc505a3416358096a44e8", "verdict": "findings", "findings": [{"path": "deny.toml", "line": 15, "summary": "\"all\" is not a valid cargo-deny lint level for `unmaintained` and `unsound`; should be \"deny\", which will cause a config parse error when `cargo deny check` runs."}]}

Subject: a19c9e4...52cbc8c, diff digest 05d5c1c4361c43ea1b1d8ce64a3c7e165f235c921ed8abad50e2fe2bde847213, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 22:18 — with GitHub Actions Inactive
@bartekus

bartekus commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Review note: false positive. In cargo-deny's advisories config (version 2, cargo-deny 0.16 and later), unmaintained and unsound take a scope, one of all, workspace, transitive or none, not a lint level. cargo deny --locked check all parses this file and passes at 52cbc8c: advisories, bans, licenses and sources are all ok.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 22:29 — with GitHub Actions Inactive
@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 22:41 — with GitHub Actions Inactive
@bartekus
bartekus merged commit 23087c1 into main Nov 5, 2026
54 of 59 checks passed
@bartekus
bartekus deleted the ops/policy-rev26 branch November 5, 2026 23:06

This branch was previously deployed

1 inactive deployment
statecraft-review-exception — 52cbc8cb Deployed Nov 5, 2026 by bartekus via review-exception #3456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant