Plan: the toolchain and every dependency at its latest release (#3604)

Status: Done (2026-12-03) — every unit, T1 to Z with T4b, T5 and T6, landed through the merge train; the holds and the deferred issues are on #3604
Closes: #3604 (by unit Z, #3628)
Issues: #3604 (parent) · T1 #3605 · T2 #3606 · T3 #3607 · T4 #3608 · M1 #3609 · M2 #3610 · M3 #3611 · M4 #3612 · M5 #3613 · M6 #3614 · M7 #3615 · M8 #3616 · M9 #3617 · M10 #3618 · M11 #3619 · M12 #3620 · M13 #3621 · M14 #3622 · M15 #3623 · J1 #3624 · I1 #3625 · I2 #3626 · I3 #3627 · Z #3628 · relates to #3411 (B6), #2923 (the strum hold), #2934, #3443, #3629
Branches: chore/deps-{unit}, for example chore/deps-t1-toolchain

This is a Design + Scope plan. GitLab owns tracking, each unit issue carries the implementer brief, and the plan freezes when T1 starts.

Problem

The agency standard is the latest stable release, with a commented reason for any pin below it (standards:coding-conventions, Dependency Management). A scan on 2026-12-01 found canopy behind it on every surface.

Surface Now Latest stable

Rust toolchain

1.99.0 (rust-toolchain.toml, and the rust:1.99.0-alpine image bases)

1.100.1. Upstream's 1.99.1 already fixed a miscompiled bool return over FFI on x86_64.

Direct crate dependencies (109)

34 current, 37 with a compatible newer release, 38 a major version behind

see the M units

Cargo.lock

337 packages have a compatible newer release

CI and build tools

cargo-nextest 0.9.140 (0.9.133 in one CI job), cargo-deny 0.20.2, cargo-machete 0.9.2, cargo-llvm-cov 0.8.7, dioxus-cli 0.7.9

0.9.152, 0.22.2, 0.10.1, 0.9.2, 0.7.10

JavaScript

Playwright 1.64.1, TypeScript 5.7.3, @types/node 22, adm-zip 0.5.16

1.65.2, 7.0.2, 26, 0.6.1

Devstack images

Kanidm 1.11.2, Keycloak 26.8.1, Zitadel v4.19.4, Garage v2.4.1, Grafana 13.2.4, Prometheus v3.15.0, PostgreSQL 18, RabbitMQ 4.3

1.12.2, 26.8.2, v4.21.0, v2.6.0, 13.3.2, v3.16.0, 19, 4.4

The evidence is on the parent issue (#3604): one row per direct dependency that is behind (requirement, resolved version, latest), and budget B6 after each of the 337 lockfile updates applied alone.

Maintainer direction, 2026-12-01: "we are pre 1.0, this is the time to resolve stuff like this. I need a really good reason to ship anything but the latest."

Decisions (approving this plan confirms them)

  1. Latest stable everywhere. A pre-release is not "latest": dioxus 0.8 alpha, redis 2.0 rc and unreleased upstream branches are out.

  2. A hold needs one of three reasons.

    1. The latest release does not resolve or compile against another dependency that is itself at its latest and that canopy needs, and no change in canopy's own code fixes it.

    2. An external tool demands an exact match. The wasm-bindgen crate must equal the wasm-bindgen CLI, which dx checks.

    3. The latest release has a defect or an advisory that breaks canopy's use. The MR cites the upstream issue.

    A hold is a commented pin in Cargo.toml naming the blocker (the form the strum pin has today) and a row on the parent issue. These are not reasons: a second copy of a crate in the tree, code changes being needed, behaviour changing.

  3. B6's lock may rise. Where a third-party crate still requires the older major, moving canopy to the latest installs a second copy and budget B6 goes up. Each raise follows coding-conventions.adoc, Quality-budgets gate: the MR and the lock note name the packages and the crate holding each. This supersedes, for B6, the earlier ruling that its lock does not rise (#3411). The strum hold (#2923) is lifted.

  4. Pin, then bump. Some dependencies produce bytes canopy stores, signs, hashes or compares: ciphertext, passcode hashes, signatures, canonical JSON, rule outputs, TOML written back. For those, a test pinning today's bytes is the unit's first commit and passes on the old version. The bump is the next commit. If the bytes change, the pinned values change in that commit and the MR says so: the change is seen and chosen. A changed stored format is not a reason to hold (coding-conventions.adoc#pre-1-0-no-compatibility).

  5. Upstream defaults are adopted. Each behaviour change that is not a compile error is listed in the MR and the CHANGELOG. Where canopy sets the behaviour explicitly today, it keeps doing so.

  6. Scaffolding a bump makes dead is deleted in that unit. canopy-zen-exact exists to correct zen-engine 0.55's number serialization; the unit that moves zen-engine deletes it if 2.x serializes the same values.

  7. One unit is one issue and one MR, stacked in the order below, each landing through the merge train.

Every unit's procedure

  1. Look up the latest stable release of what the unit moves. The versions in this plan are the 2026-12-01 scan; a newer one is taken.

  2. Read the upstream changelog between the two versions. List in the MR the breaking changes fixed and the behaviour changes adopted.

  3. Where decision 4 applies, land the pinning test first.

  4. Move the version where it is pinned ([workspace.dependencies], a Dockerfile, a package.json), delete the comment of a lifted hold, and update the lockfile.

  5. Fix what fails in canopy's code. A failing test is a finding about the bump; no test is weakened, skipped or deleted to pass.

  6. Re-check each deny.toml advisory ignore that names a crate the unit moved, and delete an ignore whose advisory no longer applies.

  7. Run cargo xtask quality-budgets --write-lock and write the lock note; a B6 raise follows decision 3.

  8. Add the CHANGELOG entry and update the doc pages the unit's row names.

  9. Before the push: cargo xtask test --unit and every command of the .lints job in .gitlab-ci.yml. The merge-train car runs the whole battery.

A unit that finds a hold records it (decision 2) and moves everything else it covers.

Units

Order: T1 → T2 → T3 → T4 → M1 … M15 → J1 → I1 → I2 → I3 → Z.

Toolchain and tools

Unit Moves Known changes and proof beyond the battery

T1

Rust 1.100.1: rust-toolchain.toml, the FROM rust: line of Dockerfile.ci, xtask/Dockerfile.validate-runner and devstack/kanidm/Dockerfile, CI_IMAGE_TAG in .gitlab-ci.yml, and rust-version in Cargo.toml (1.94 → 1.100: one toolchain is supported, and wasmtime 51 needs 1.97). Docs: developer-guide.adoc, local-dev.adoc.

Three commits: the pins, then cargo fmt output (rustfmt reformats doc comments inside macros), then lint fixes. 1.100 changes the type a diverging expression falls back to (!) on every edition, widens map_unwrap_or, redundant_clone and used_underscore_binding, and changes cargo's build-directory layout. Kanidm 1.11.2 denies warnings and did not build on 1.100.0 (devstack/kanidm/Dockerfile records it), and ci-config-lint requires that image's base to equal the pin. So T1 makes the Kanidm build cap lints at warn (--cap-lints, added to the flags the Kanidm tree sets): a third-party tree's lint policy then no longer decides which compiler canopy pins. If something other than a lint stops 1.11.2 on 1.100.1, T1 carries I1's Kanidm move. Proof: cargo xtask ci-config-lint (the image tag and the bases), the car building the Kanidm image, and the car building and packaging every binary.

T2

cargo-nextest (four places: Dockerfile.ci, Dockerfile.integration, xtask/Dockerfile.validate-runner, one job in .gitlab-ci.yml), cargo-deny, cargo-machete, cargo-llvm-cov, syft, cargo-cyclonedx, the Antora image tag.

Each download keeps its sha256 check. coverage-baseline.toml is remeasured with cargo xtask coverage --baseline in the new image (it records rustc 1.96.1 today).

T3

The portal's wasm toolchain together: dioxus and dioxus-ssr, dioxus-cli, the wasm-bindgen, js-sys, web-sys and wasm-bindgen-futures crates, the wasm-bindgen CLI in Dockerfile.ci, and binaryen and esbuild at the versions the new dx accepts.

dx reads the wasm-bindgen version from the lockfile and requires the CLI to equal it (decision 2, second reason). Proof: the car's portal build and the e2e lane.

T4

Every other compatible lockfile update (cargo update).

No manifest changes. Measured: all of them together take B6 from 154 to 160; ten single updates account for the rise.

Crate majors

Unit Moves Known changes and proof beyond the battery

M1

sha2 0.11, hmac 0.13 (digest 0.11)

Type aliases became newtypes, outputs are hybrid-array arrays, MAC keys come through KeyInit. Pinned first: SHA-256 and HMAC-SHA-256 known answers, and one audit-chain hash canopy computes today. totp-lite 2.0.1 is the latest and keeps the old majors inside it: a second copy, no hold.

M2

aes-gcm 0.11, chacha20poly1305 0.11, argon2 0.6

AeadInPlace → AeadInOut; keys and nonces are hybrid-array; argon2's PHC types moved to password-hash 0.6's phc module. Pinned first, each produced on the old version: a ciphertext per cipher that decrypts, a PHC passcode hash that verifies, a raw derived key that re-derives. The portal's wasm32 build.

M3

rand 0.10, fake 5, governor 0.10

Rng → RngExt, OsRng → SysRng. Upstream states StdRng output is unchanged; fake 5 changed some generated text. Pinned first: the first ids and names canopy-seed generates from its fixed seed. If they move, the MR says the seeded data set changed.

M4

jsonwebtoken 12

Algorithm is non-exhaustive, key accessors were removed, empty HMAC keys and unknown crit headers are refused. Pinned first: a token signed on the old version verifies, and tokens that are expired, for another audience, from another issuer, of another algorithm family, or unsigned are each refused. Every Validation is built explicitly.

M5

serde_json_canonicalizer 0.4

No upstream changelog; its commits say duplicate object keys now error and a number-formatting fix landed. Pinned first: the RFC 8785 vectors, and the canonical bytes of one signed determination and one audit-chain payload.

M6

reqwest 0.13, tower-http 0.7, axum-extra 0.12, base64 0.23

Feature rustls-tls → rustls; the roots features are gone and the default trust is the platform verifier, which reads the system CA bundle; query and form are opt-in features; the default crypto provider is aws-lc-rs.
Trust rules. Three exist today and each is kept. (1) canopy-auth's upstream client (upstream/client.rs) trusts only its anchors when it is given any, and the default roots when it is given none. (2) IdentityHttpClient::with_trust (identity_token/jwks_source.rs) trusts its ca_pem beside the default roots. (3) The two canopy-test-lib clients trust only their CA. 0.13 replaces tls_built_in_root_certs and add_root_certificate: (1) with anchors and (3) move to tls_certs_only, (2) to tls_certs_merge.
Crypto provider. M6 leaves one rustls provider in the feature graph: cargo tree -e features -i rustls shows aws_lc_rs and not ring. If a third-party crate turns ring on and offers no feature to stop it, one function in canopy-common installs aws-lc-rs as the process default (a repeat call is a no-op), called where canopy builds a TLS client: the builders in canopy-common/src/http.rs, the AMQP connection and the Redis stores. That reaches the binaries with no canopy-api bootstrap: canopy-portal, canopy-cli, canopy-manage, canopy-token-broker and the test binaries.
Other behaviour. Compression answers 406 when no encoding is acceptable; ServeDir answers 404 for a file path with a trailing slash. The reqwest comment in Cargo.toml (#3329) and security.adoc are rewritten to say where trust comes from.
Proof. The canopy-common egress tests, and three tests pinned first on 0.12. Each runs its client in a child process whose SSL_CERT_FILE names a file holding a second CA, since the workspace denies the unsafe an in-process environment change needs. One: the upstream client with anchors accepts a server under an anchor and refuses a server under the second CA. Two: with no anchors it accepts the server under the second CA. Three: with_trust with a bundle accepts a server under its bundle and a server under the second CA.

M7

The five OpenTelemetry crates 0.33, tracing-opentelemetry 0.34

They require reqwest 0.13. M7 joins M6 in one MR if canopy hands its own reqwest client to an OpenTelemetry builder (the compiler says so). OTLP export now retries three times by default; an invalid tracestate header is dropped, and an invalid parent span context starts a fresh trace. Proof: the telemetry tests of canopy-common.

M8

object_store 0.14

Requires reqwest 0.13 and quick-xml 0.41: the two quick-xml advisory ignores in deny.toml are re-checked (the typst path may keep them).

M9

sqlx 0.9

query, query_as and query_scalar take a &'static str or AssertSqlSafe(..). At least 341 calls pass format! output today (a single-line search; calls split over lines add to it). Rule: make the SQL static where it can be; each remaining AssertSqlSafe carries a comment naming what is interpolated and why no caller input reaches it, and the MR lists every such site. Arguments lost its lifetime; derive(sqlx::Type) newtypes now generate PgHasArrayType; a migration file whose name does not fit the format is an error. Proof: the integration lane, which runs every migration from an empty database.

M10

zen-engine 2.1 (from 0.55)

DecisionContent is an enum over GraphContent; the response's trace is an EvaluationTrace; EvaluationError is non-exhaustive. Upstream changes that can change an output: a decision-table rule with a missing input cell now matches, % by zero yields null, overflow is an error, endOf('week') and merge were fixed. Proof, all in the MR: (a) a scan of every decision file of the federal, Georgia and fixture layers for rules with a missing cell and for those functions; (b) every fixture input evaluated on both versions with whole outputs and traces compared, by a temporary harness that is not committed; (c) cargo xtask rules check; (d) each configuration repository's pack check run against the branch, asked for on the canopy/rules channel. A changed output is an upstream fix (the configuration repository updates its fixture and this unit moves the pin in config-sources.lock) or an upstream defect (a hold). canopy-zen-exact is deleted if (b) shows the same numbers without it. Docs: rulesets.adoc, troubleshooting.adoc, shared-crates.adoc, api/canopy-rules.adoc.

M11

strum 0.28

zen-engine and biblatex keep 0.27, so B6 rises by two. No enum in canopy uses #[strum(default)], the one changed behaviour.

M12

toml 1.2, toml_edit 0.25

let v: toml::Value = text.parse() now parses one value, not a document, and still compiles: every site that parses a toml::Value from text moves to toml::from_str (19 single-line matches today and up to 16 more split over lines). Table order is kept only with preserve_order. TOML 1.1 syntax is accepted. typst 0.15.1, the latest, keeps toml 0.8: a second copy. Pinned first: the bytes policy sync-cache --pin writes for a fixture file.

M13

wasmtime 51, wit-component 0.263

Eight upstream security fixes. MemoryType::new returns a Result. Proof: cargo xtask extension-fixtures.

M14

askama 0.16, validator 0.21, json-patch 5, infer 0.22, one commit each

askama makes a duplicated block an error. validator drops proc-macro-error2: re-check RUSTSEC-2026-0173. infer changed PDF and Matroska detection: the upload-type tests.

M15

parking_lot 0.13, lru 0.19, dirs 7, roxmltree 0.21, gloo-timers 0.4, syn 3, one commit each

parking_lot removed eventual fairness and the const_new constructors. syn 3 renames Type::BareFn, Arm::guard and Signature::unsafety; it is used by xtask and canopy-plugin-macros.

JavaScript, images, close

Unit Moves Proof beyond the battery

J1

services/canopy-web: htmx and Alpine. tests/e2e: Playwright and its image tag in tests/e2e/Dockerfile together, axe, adm-zip, TypeScript, the @types packages.

The e2e lane; tsc on the e2e sources.

I1

The identity providers: Kanidm (its release tarball and image tag), Keycloak, Zitadel and its login image.

The conformance suites behind the idp-conformance feature. Kanidm's rust-version must be met by the T1 base.

I2

PostgreSQL 19, RabbitMQ 4.4, Garage. Docs: deployment-guide.adoc, local-dev.adoc.

The integration, fault and e2e lanes.

I3

Grafana, Prometheus.

The devstack comes up with both healthy.

Z

Nothing new: cargo update --dry-run --verbose, the scan and B6 are re-run.

A table on the parent issue: every direct dependency at its latest or its hold, B6's final count with the holder of each remaining duplicate (also posted on #3411), and the deny.toml ignores lifted.

Risks

Risk Mode Mitigation

A canonical-JSON, hash or signature library changes its output bytes, so stored chains and signatures stop verifying.

silent

Decision 4: the bytes are pinned before the bump (M1, M4, M5).

The rules engine gives a different answer for the same decision file and facts.

silent

M10's four proofs; a changed output is examined before merge, one by one.

Ciphertext or a passcode hash written before M2 is not read after it.

fail-closed

Old-version vectors are pinned first and must decrypt and verify.

A JWT validation default loosens.

fail-open

M4 builds every Validation explicitly and pins the five refusals before the bump.

An AssertSqlSafe wraps SQL that carries caller input.

fail-open

M9's rule: static SQL where possible, a stated reason at each remaining site, and the full list in the MR for review. No site is added that was not a format! before.

A client's trust rule changes when its builder moves to reqwest 0.13's API: the upstream client given anchors starts trusting the system store as well.

fail-open

M6's three pinned tests state each rule, the refusal included. They pass before the bump and must pass after.

A client with no bundle loses the bundled webpki roots and trusts the system CA bundle alone.

fail-closed

A container without a CA bundle fails its first outbound call; the e2e lane makes those calls from the shipped images.

A third-party devstack build that denies warnings fails on the new compiler.

fail-closed

T1 caps lints for the Kanidm build, and the car builds that image.

Two rustls crypto providers are enabled and the first TLS handshake panics, in any binary.

fail-closed

M6 leaves one provider in the feature graph, or installs one at every seam where canopy builds a TLS client. The three trust tests make real handshakes in test binaries, which run no bootstrap.

let v: toml::Value = text.parse() compiles and reads a document as one value.

silent

M12 moves every such site, found by search, and the pack and configuration load tests read real files.

Rust 1.100 changes the fallback type of a diverging expression, so a generic call can infer a different type.

silent

T1 is its own MR, so the whole battery runs on the toolchain change alone.

Cargo's new build-directory layout breaks an xtask or CI step that reads target/.

fail-closed

The step fails in T1's pipeline; the fix is in T1.

A B6 raise hides a duplicate that canopy could have avoided.

silent

Each raise names the package and its third-party holder; Z re-measures and lists what remains.

A hold is forgotten.

silent

A hold is a commented pin and a parent-issue row, and Z's table lists every one.

A configuration repository's fixtures fail under zen-engine 2.x after canopy merges.

fail-closed

M10 (d) runs each repository's pack check against the branch before merge.

PostgreSQL 19 changes planner or catalog behaviour a query relies on.

fail-closed

I2 runs every migration and the integration and e2e lanes on 19; a wrong result with no error would be caught only where a test asserts values, so I2 is its own MR.

"Latest" moves while the work is in flight.

silent

Each unit looks up the release at its start, and Z re-runs the scan.

Tests

  • Contract (bytes on the wire or at rest). Added before their bump: SHA-256 and HMAC known answers and an audit-chain hash (M1); AEAD ciphertexts, a PHC hash and a derived key (M2); a signed token and five refused tokens (M4); RFC 8785 vectors and two canonical payloads (M5); the bytes of a format-preserving TOML edit (M12); the three trust-rule tests (M6).

  • Regression (the case that would have caught it). The first seeded ids and names (M3); the differential rule replay and cargo xtask rules check (M10); every migration from an empty database (M9, I2); the e2e lane for the portal toolchain (T3, J1).

  • Concurrency. No unit fixes a race. parking_lot 0.13 changes fairness, and the battery's existing concurrency and fault lanes run on M15's car.

  • Property. The existing property tests of parsers and serializers run unchanged on every car; none is edited to pass.

Delivery

  • Doc pages. developer-guide.adoc (the stack table) and local-dev.adoc in every unit that changes a version they state; the pages each unit's row names.

  • CHANGELOG. One entry per unit under == Unreleased, stating the versions and each adopted behaviour change.

  • The plan is committed to docs/modules/ROOT/pages/plans/ with a nav entry in docs/modules/ROOT/nav.adoc at approval, before T1.

  • The close. Unit Z's MR closes the parent issue and posts the final table.

Out of scope

  • Replacing chrono (#3443) or typst's transitive dependencies; their advisory ignores stay until upstream moves.

  • The configuration repositories' own dependencies, and design/canopy-web/uploads/, an uploaded snapshot that is not built.

  • Budget B3b (#3408) resumes after this chain, on its tip.

  • Noticed and filed as #3629: the workspace enables no tls-* feature of sqlx, so no canopy service can negotiate TLS to PostgreSQL itself.

Errata

  • Erratum (2026-12-02), T1: there is no cargo fmt commit. The rustfmt that ships with 1.100.1 reformats nothing in the tree.

  • Erratum (2026-12-02), T4: http stays at 1.4.0 in T4. http 1.6.0 shrinks axum's Response from 128 bytes to 80, which makes BoxedResponse (295 lines in 68 files) dead scaffolding under decision 6. A unit T4b (#3630) follows T4 directly, moves http and deletes it, apart from the 380-package lockfile change.

  • Erratum (2026-12-02), T4: T4 changes canopy's code as well as the lockfile. rust_decimal 1.42 made FromStr read scientific notation, so the readers of an amount a person types call the library's plain-digit parser, in a commit before the lockfile moves.

  • Erratum (2026-12-02), M13: wit-component moves to 0.264.0, the latest, not 0.263. wasmtime 51.0.0 keeps the 0.263 line of five crates, so B6 rises by five (decision 3). The two fixture extension modules, which are outside the workspace and were not in the scan, move wit-bindgen from 0.57.1 to 0.63.0 and are rebuilt.

  • Erratum (2026-12-02), M13: the eight security fixes the table names for wasmtime 51 are in 50.0.2 and later, which the lockfile already held. M13 brings no new one.

  • Erratum (2026-12-02), M14: one upstream default is not adopted (decision 5). infer 0.22 calls bytes a PDF when %PDF is anywhere in the first 1,024 bytes; canopy-store keeps the header at byte 0, since the wider match would pass an HTML page or a script as a PDF upload. A test pins it before the bump.

  • Erratum (2026-12-03), T5 and T6: two units run after I3 and before Z. Unit Z's re-scan found pins behind their latest that the 2026-12-01 scan did not read: k6 in xtask's source, the configuration repository template's Python image, and the docs jobs' diagram renderer and npm packages. T5 (#3641) moves k6, the Python image, the Mermaid renderer and asciidoctor-kroki, which is held on its 0.18 line because 2.0.0 needs Asciidoctor.js 4 and Antora loads 2.2 (decision 2, first reason). T6 (#3642) moves the docs UI and the slide deck's converter, which change the built site.

Edit this page · default