Identity plane split, plan I3a: the devstack identity plane and the token broker (epic &133)

Status: Done (2026-10-08) — !1578
Epic: &133 (stage I3 of &130)
Issues: #2761 (w3), #2762 (w5), #2763 (w3), #2764 (w3), #2765 (w3), #2766 (w5), #2767 (w3), #2768 (w5), #2769 (w3)
MR: feat/identity-devstack-plane: U1–U9 in order, titled "canopy-identity devstack plane and token broker (#2761 … #2769)".

The nine issues ship as one MR under the maintainer’s one-MR-per-related-group ruling, one commit per issue. The plane, the client and the broker are one deliverable the later plans and the switch consume, and no unit is usable alone. U1’s commit adds this page (Status In progress) and its nav entry. U9’s commit closes the plan.

This is a Design + Scope plan. GitLab owns tracking. The plan freezes when U1 starts. K1–K9 are this plan’s decisions; A, B, C, F, H, N and P name earlier amendments' decisions.

Context

Stage I2 (&132) is complete. canopy-identity issues sessions, delegation tokens, system tokens and native sessions, and the client and receiver libraries exist: IdentityTokenValidator, HttpJwksKeySource, ClientAssertionMinter, SystemTokenSource, DelegationTokenSource and the compiled call graph. Nothing is wired. Stage I3 is the cut-over: every service onto canopy-identity, Kanidm the default upstream, no shims and no half-states on main, and an external security review before it merges.

In the tree today:

  • The switch is atomic. canopy-web cannot hold a canopy-identity session and a Keycloak token at once, and the call graph connects every service (canopy-web calls 14, canopy-eligibility 10). A receiver flipped alone refuses every unflipped sender; a sender flipped alone is refused by every unflipped receiver. Without dual trust, which is a shim, there is no per-service flip.

  • Everything runs on Keycloak. 18 services boot their receivers through canopy_api::bootstrap_requiring (Keycloak discovery, broad audiences); 15 senders hold Keycloak client secrets; canopy-web exchanges at Keycloak (about 40 sites) or uses its service token (about 73). The battery gets Keycloak tokens in 152 Rust test files (crates/canopy-test-lib/src/auth.rs, the password grant in 89), 36 e2e files and k6; Playwright fills Keycloak’s login form.

  • The devstack’s identity plane is empty. canopy-security’s issuer is on (CANOPY_SECURITY__IDENTITY_ISSUER) but has no client registry and no upstream profile, so it federates no sign-in, and no client key exists. Kanidm runs only under the opt-in idp-kanidm profile for cargo xtask identity conformance: a tmpfs database, kanidmd cert-generate's 30-day CA and 5-day leaf, three persons. A headless sign-in driver with PKCE and TOTP exists (crates/canopy-test-lib/src/upstream/kanidm/login.rs), as does REST provisioning (admin.rs).

  • Seeded data keys on today’s subjects. The seed assigns households to the realm ids of jane.caseworker (…000a) and bob.smith (…0002), the Keycloak sub (tools/canopy-seed/src/actors.rs). D8 makes the seed’s fixed ids canopy subjects linked to the upstream’s persons, as audited security-admin writes; Amendment 8 H7 left those links to I3, since no admin action creates a subject.

  • No federation client exists. Only the capacity harness builds federation forms, by hand (xtask/src/cmd/perf/identity/senders.rs).

The stage

I3 ships as sequential plans, each authored when its predecessor lands; a later plan may re-cut 3–6, and K1 is the rule they keep.

  1. I3a (this plan): the devstack identity plane and the token broker.

  2. I3b: issuer readiness, #2759 (delegation p99) and #2760 (the pool at the peak).

  3. I3c: receivers: an axum layer and principal around IdentityTokenValidator, the guard set replacing Claims and ReceiverContract, receiver settings; unwired.

  4. I3d: senders: every sender’s purposes (A2), client-key loading and settings, the shared clients' token plumbing, the verification adapter routes (#2648); unwired.

  5. I3e: canopy-web: the confidential upstream client with a nonce (#2344), federation and re-federation, the refresh lead (#2345), delegation for every backend call, the panel cache (#2647), logout, AC-8, step-up, device approval, the security-admin UI, edge forwarding.

  6. I3f: the portal, canopy-cli’s device flow, the operator tools, the TypeScript broker and Playwright sign-in, k6.

  7. I3g: the switch, one MR wiring every receiver and sender, moving the battery to the broker and deleting the Keycloak path; merged after the external security review.

Scope

In scope: U1–U9 below. No service is wired.

Out of scope:

  • wiring any receiver, sender, canopy-web, the portal or canopy-cli; purposes for senders but the portal (I3d);

  • the TypeScript broker, Playwright, k6 and the battery’s migration (I3f, I3g);

  • Kanidm’s canopy-web redirect for browser sign-in and the device verification URI (I3e);

  • the worker directory’s re-key (D8); removing Keycloak (I3g); #2759 and #2760 (I3b); retention (#1303).

Design

Decisions (recorded in ADR-049 Amendment 11, which lands with U1)

# Decision

K1

Staging. Until the switch, an I3 plan lands only additive code and devstack infrastructure: library code no service wires, proven in process or against the devstack’s identity plane. The switch is one MR that wires every receiver and sender, moves the battery to the broker and deletes the Keycloak path; it merges only after the external security review (Consequences), #2759 and #2760. Main never holds a receiver trusting two issuers or a sender holding two credentials.

K2

Kanidm in the default devstack. The kanidm service joins every devstack profile beside Keycloak, which goes at the switch.

  • One issuer string holds on the host and in the network: origin https://idm.canopy.test:<P>;, Kanidm listening on port P inside the compose network under the alias idm.canopy.test and published at P like every devstack service. Host-side clients pin the name to the daemon’s published address, loopback locally and the Docker-in-Docker daemon in CI.

  • Its database is a volume.

  • Its TLS is a devstack CA and leaf xtask generates together: the leaf (SAN idm.canopy.test) and the CA valid 365 days, regenerated together within 30 days of expiry, the CA key dropped once the leaf is signed and never written. They are built with x509-cert 0.2’s builder feature and p256 0.13, both already in the lockfile; rcgen would add a crate, and cert-generate's 30-day CA cannot outlive a devstack.

  • The conformance suite keeps a disposable server of its own, kanidm-conformance, whose files never share a name with the devstack’s.

K3

The cast. Every human worker of devstack/keycloak/canopy-realm.json but applicant.test (applicants have no IdP account, D11), plus sec.admin (security_admin), the devstack’s first security administrator: 20 persons.

  • A person’s Kanidm id is its realm id with the fourth group 0001 (sec.admin: 00000000-0000-0000-0001-0000000000c1), and its Kanidm name its realm username, except the realm’s admin, which is canopy.admin: Kanidm reserves admin.

  • Roles and programs follow the realm, except fti.auditor and data.steward, programless there, which get the realm’s five (snap, tanf, medicaid, caps, wic), since federation refuses an empty set (C8). sec.admin holds the five; jane.unscoped stays programless, the refusal fixture; jane.chip-worker needs a chip group.

  • Passwords and TOTP are provisioned after bring-up, always on an empty Kanidm volume, and written only to the 0600 .devstack/idp/kanidm.json.

K4

The devstack issuer’s configuration is generated, never committed (the repository ships none, D10): an ES256 PKCS#8 key per ConfidentialClient (D10’s loader format); identity-clients.yaml registering each (P4’s budgets, canopy-web 60 000 and canopy-eligibility 18 000, the default otherwise); and identity-upstream.yaml naming Kanidm’s issuer <origin>/oauth2/openid/canopy-web and the devstack CA. canopy-security mounts them. A service receives its key at the switch.

K5

Subjects by route. A security-admin action creates a subject with a given non-nil UUID: create_subject, POST /identity/admin/subjects, answering 201 like every admin write. It is audited atomically like every H-family action, under the same guard, and idempotent (changed: false when the subject exists). With H7’s link it is D8’s seed link, and how a deployment adopts subject ids its data already holds. A created subject grants nothing until a link makes it reachable, and both actions record the actor’s token kid.

K6

The federation client. canopy_auth::identity_client::federation is canopy-web’s side of F1 and F2: open (an id_token, plus the upstream access token for a userinfo profile), renew (a refreshed id_token, an upstream access token or not_processed) and revoke, returning F2’s answer typed and a refusal as CanopyRefusal. canopy-web wires it in I3e; the broker uses it now.

K7

The token broker. canopy-test-lib’s TokenBroker signs a cast person in through Kanidm with the headless driver, federates as canopy-web with canopy-web’s devstack key, and mints delegation tokens from that session and system tokens with a client’s key: production grants only (D14).

K8

Seed links. After provisioning, the bring-up signs sec.admin in through the broker. For every other cast person whose Kanidm (iss, sub) is not already effectively linked to the person’s realm id, it creates the subject at that id and links the pair to it (K5, H7); a steady-state bring-up only reads. A cast worker’s delegation token then carries the sub its Keycloak token carries today, which the seed already uses.

K9

CI. A prebuilt Kanidm image (ADR-050 §3), pushed from main and pulled by the Docker-in-Docker jobs through docker-compose.prebuilt.yml.

The bring-up

ensure_identity_plane() (xtask/src/devstack_identity.rs) has two phases around every compose up that starts or recreates the devstack: dev start, reload, restart and refresh, and devstack_guard::ensure_ready's cold start and auto_refresh (the path cargo xtask test, e2e, coverage and CI take).

  • Files, before the up: TLS (U2) and the issuer’s files (U5).

  • Provisioning and links, once the up is healthy: the cast (U4) and the seed links (U9). It reaches published ports at docker::published_host(): the host of a tcp:// DOCKER_HOST (CI’s Docker-in-Docker daemon, docker), else 127.0.0.1, since a DinD daemon’s published ports live in its own network namespace.

Conventions every unit follows

Workspace lints hold (typed errors, short functions, overflow-safe arithmetic). Devstack-dependent tests are infrastructure tests: they skip without the stack, and CANOPY_TEST_INFRA=required makes the battery’s lanes require it. Every unit ships its CHANGELOG.adoc bullet and its doc pages.

Units

  1. U1 (w3) docs(adr): record the cut-over staging and devstack plane (#2761). Amendment 11 (K1–K9, the stage list) and ADR-049’s Status line; this page and its nav entry.

  2. U2 (w5) feat(devstack): run Kanidm in every devstack profile (#2762). K2 and the bring-up’s two phases.

    • docker-compose.yml: kanidm in every devstack profile (image canopy-kanidm:1.11.2); KANIDM_DOMAIN, KANIDM_ORIGIN and KANIDM_BINDADDRESS on P; published ${P}:${P}; alias idm.canopy.test; /data on canopy_kanidm_data, /tls on kanidm-tls; a healthcheck on kanidmd scripting healthcheck. The opt-in service becomes kanidm-conformance (docker::OPT_IN_SERVICES names it), renamed throughout: its port variable, the TLS volume kanidm-conformance-tls, .devstack/idp/kanidm-conformance-ca.pem and .devstack/idp/kanidm-conformance.json.

    • xtask/src/devstack_tls.rs: when .devstack/idp/tls/{chain.pem, key.pem} are absent or expire within 30 days, generate the CA and leaf (leaf key 0600, CA key never written); install chain and key into kanidm-tls with a one-off docker compose run --rm --no-deps --user 0 of kanidm (owner 10001, key 0600), so CI’s prebuilt override supplies the image; write the CA to .devstack/idp/kanidm-ca.pem; on a regeneration, restart kanidm and canopy-security (trust anchors load at boot).

    • xtask/src/docker.rs: kanidm keeps its PORT_MAPPINGS entry and variable CANOPY_PORT_KANIDM_8443, but its reserved host port P is also its container port, so discovery asks compose for P; published_host(); CANOPY_TEST__KANIDM_ADDR (127.0.0.1:<P> from push_derived_vars, kanidm:${CANOPY_PORT_KANIDM_8443} in canopy-integration); PORTS_ENV_VERSION bumped; dev clean removes both volumes, .devstack/idp and .devstack/identity.

    • xtask/src/devstack_guard.rs: INFRA_EXCLUDED loses devstack/kanidm; its pinned test becomes one that a change there marks the infrastructure stale.

    • Tests: the leaf verifies through rustls against only the CA for idm.canopy.test and fails for another name; regeneration at 31 and 29 days; same-port rendering and discovery; published_host for tcp://docker:2375, a unix socket and no DOCKER_HOST; the infrastructure marker. Docs: local-dev.adoc, tooling/xtask-catalog.adoc.

    • Erratum (2026-10-08): published_host() landed with U4, its first caller; dev clean removes the devstack’s own identity files (.devstack/idp/tls, the CA, the credentials and .devstack/identity) rather than all of .devstack/idp, so the conformance server’s files stay; deployment-guide.adoc and testing.adoc changed too.

  3. U3 (w3) chore(ci): build and pull a prebuilt Kanidm image (#2763). K9. The tag is $CI_REGISTRY_IMAGE/devstack/kanidm:1.11.2-<h>, <h> the first 12 hex digits of git ls-files -s devstack/kanidm | sha256sum, so a replacement never overwrites a tag a running pipeline pulls. The job kanidm-image extends .image-build-base, takes the union of its consumers' rules, and exits early when docker manifest inspect finds the tag, otherwise building and pushing it. integration-tests, validate-in-network and fixture-smoke need it, compute the tag and export CANOPY_PREBUILT_KANIDM_IMAGE, which docker-compose.prebuilt.yml's kanidm.image reads. Tests: cargo xtask ci-config-lint, extended to require the edge; docker compose config with the override. Docs: developer-guide.adoc. Erratum (2026-10-08): <h> is the first 12 hex digits of sha256sum devstack/kanidm/Dockerfile; kanidm.image defaults to the source build’s canopy-kanidm:1.11.2 instead of requiring the variable, so the deploy runbooks' use of the override keeps working; the docs went to deployment-guide.adoc, which describes the override; the unit was committed before U2, so no CI job builds Kanidm in its daemon; validate-in-network’s --with-devstack still builds it from source (#2771).

  4. U4 (w3) feat(devstack): provision the devstack’s Kanidm cast (#2764). K3. devstack/kanidm/migrations/00-canopy.hjson holds the 20 persons, a group per role the cast uses (11) and per program (6), and the claim maps. upstream::kanidm::{PERSONS, GROUPS} follow, pinned by the agreement test, and verify_client reads its claim-map rows from GROUPS. The provisioning phase, also cargo xtask dev identity, provisions when the credentials file is absent, its cast_digest (a new required field; absent or unparseable reads as changed) differs from the cast file’s, or its idm_admin password no longer signs in (a down -v wiped the volume). It then recreates kanidm on an empty volume, recovers idm_admin, runs admin::provision and writes the file; a changed origin alone only rewrites origin and port. Tests: the decision table (absent, unchanged, new digest, missing digest, volume wiped, new origin). Docs: local-dev.adoc. Erratum (2026-10-08): docker::published_host() (U2’s) landed here, where provisioning first reaches a published port.

  5. U5 (w3) feat(devstack): configure the devstack issuer with Kanidm and clients (#2765). K4. The files phase writes .devstack/identity/: keys/<client-id>.pem (0600, only when absent), identity-clients.yaml, identity-upstream.yaml (profile: kanidm, client_id: canopy-web, tls_trust_anchors: identity-upstream-ca.pem, re-rendered from P) and the CA copy, rewritten in place (single-file bind mounts); a port change during up re-renders and restarts canopy-security. Compose mounts them read-only at /app/config/identity-upstream.yaml, /app/config/identity-upstream-ca.pem and /app/config/canopy-security/identity-clients.yaml, and canopy-security’s directory mount becomes per-file mounts of default.yaml and dev.yaml, so no mount point sits inside a read-only bind. Tests: each key loads through canopy_signing::load_provisioned_key and matches its registry entry; the registry parses with ClientRegistry::parse (15 enabled); the profile parses with the I2b loader. Docs: local-dev.adoc, configuration-reference.adoc.

  6. U6 (w5) feat(security): create canopy subjects by route (#2766). K5.

    • Migration 20261220000000_identity_admin_create_subject.sql: create_subject in identity_admin_actions' action and target CHECKs (the target subject only), and identity_admin_create_subject(p_subject, p_actor_subject, p_actor_session, p_actor_token_jti, p_actor_token_kid, p_actor_client, p_reason, OUT action_id, OUT changed) under 20261216000000_identity_admin.sql's conventions (isolation check, owner transfer, the exact grant to canopy_identity_admin, the closing audit matrices extended).

    • The runtime inventories admit it: identity/registry.rs' ADMIN_SIGNATURES (7 → 8) and REGISTRY_FUNCTIONS (30 → 31), which the issuer and admin boot probes read; crates/canopy-test-lib/src/global_ddl.rs' security list (13 → 14).

    • POST /identity/admin/subjects, body {subject_id, reason}, answers 201 {action_id, changed} behind the admin write guard.

    • Tests (tests/identity_admin* pattern): a create returns changed: true and one action row with the actor’s kid, a second false; a non-admin or stale auth_time is refused; a malformed or nil UUID is a 400; after a link, a federation open of the pair opens as the created subject. Docs: api/canopy-security.adoc, data-models/canopy-security.adoc, security-operations.adoc, authorization-inventory.adoc.

    • Erratum (2026-10-08): the link-then-open proof calls identity_link_or_mint_subject, through which a federation open resolves its subject, rather than a MockIssuer open; the replay inventory’s always-locked count (xtask/src/cmd/perf/ephemeral_schema.rs, 13 → 14) followed in a fix commit.

  7. U7 (w3) feat(auth): federate web sessions as a client (#2767). K6, crates/canopy-auth/src/identity_client/federation.rs.

    • FederationClient::new(Arc<ClientAssertionMinter>, token_endpoint, revocation_endpoint, IdentityHttpClient), the client from a new IdentityHttpClient::for_federation() whose whole-request bound is TOKEN_EXCHANGE_DEADLINE (13 s) plus 2 s, not new()'s 10 s; open(id_token, upstream_access_token) returning a FederatedSession (credential, sid, sub, auth_time, session_ends_at, fresh_until, roles, programs, username); renew(&SessionCredential, RenewalEvidence); revoke(&SessionCredential).

    • FederationError, classified by the answer’s OAuth error and canopy_refusal (the endpoint answers every OAuth error but temporarily_unavailable with 400): Refused(CanopyRefusal), ClientRejected (invalid_client), InvalidRequest, Limited (429), Unavailable (503), transport and answer defects.

    • Tests: the F1 forms; F2 parsed; every refusal code and class; over-cap and malformed bodies; no redirect followed; with a paused clock an answer after 11 s is received and one after 16 s times out; a no-panic proptest of the F2 parser; canopy-security’s tests/identity_federation_test.rs opens, renews and revokes through the client against the real router, and a disabled client is ClientRejected. Docs: shared-crates.adoc.

    • Erratum (2026-10-08): new takes the minter by value, as SystemTokenSource and DelegationTokenSource do; the 15 s bound, FEDERATION_REQUEST_TIMEOUT, is set on each request, which overrides the client’s own, so there is no for_federation(), and its test asserts the built request’s timeout, since a paused clock timed out the connect itself; the real-router ClientRejected presents a key the registry does not hold; fix commits made every call’s future Send, pinned by a compile-time test, and unlinked a private item from a public doc.

  8. U8 (w5) feat(test-lib): add the canopy-identity token broker (#2768). K7, crates/canopy-test-lib/src/identity_broker.rs.

    • Configuration: TokenBroker::new(BrokerConfig) (issuer, canopy-security’s URL, the Kanidm credentials file, CA file and address, the keys and cache directories), which xtask calls; from_env() reads CANOPY_TESTIDENTITY_ISSUER, SECURITY_URL, KANIDM_CREDENTIALS, KANIDM_CA, KANIDM_ADDR, IDENTITY_KEYS and __IDENTITY_BROKER_CACHE, which both providers set.

    • API, a person being its Kanidm name and each call returning the compact token as a String: delegation(person, CanopyService, &Narrowing); stepped_up(person, CanopyService) (a sign-in at most 300 s old); system(ConfidentialClient, CanopyService, scope); session(person) returning the FederatedSession.

    • Shared sessions: one 0600 entry per person in the cache directory, under an exclusive std::fs::File lock, holding every FederatedSession field, the Kanidm refresh token and the last sign-in. Reuse while fresh_until is at least 120 s ahead; renew through Kanidm’s refresh and the federation renewal; reopen when renewal fails, a person’s sign-ins at least 30 s (one TOTP step) apart; drop and reopen once on a delegation refused session_ended, renew once on session_stale. U9 deletes the entries of the persons it links.

    • The driver trusts the configured CA, and upstream::kanidm::http_client takes a resolved address: the broker looks the configured address up and pins idm.canopy.test to it.

    • In-network: the canopy-integration service runs as uid 1000, so Dockerfile.integration creates /app/.identity-inputs and /app/.identity-broker owned by app, as for /app/target. Before it runs, xtask streams the credentials, CA and keys as a tar into the volume canopy_identity_inputs through a one-off docker compose run -T canopy-integration (files 0600). The service mounts it read-only and the cache volume canopy_identity_broker_cache read-write, and its environment names those paths. validate-in-network's docker run runner mounts the workspace as the host user: its table adds the keys at /app/.devstack/…​ and CANOPY_TEST__KANIDM_ADDR=kanidm:<P>, under its parity test.

    • Tests (infrastructure, crates/canopy-test-lib/tests/identity_broker_test.rs): every cast person but jane.unscoped opens a session; jane.doe’s canopy-persons token validates with IdentityTokenValidator over the devstack JWKS with her roles, programs and act; the portal’s canopy-applications system token validates with its purpose’s scope; eight brokers on one cache get one sid; a second broker’s session() reads an existing entry without signing in; after sec.admin revokes jane.doe’s cached session by route, her next delegation succeeds under a new sid; jane.unscoped is Refused(missing_primary_programs). Unit: the decision at its margins, the entry’s mode, a no-panic proptest of its parser. Docs: testing.adoc, shared-crates.adoc, validate-in-network.adoc.

    • Erratum (2026-10-08): keys load with ProvisionedP256Key::from_pkcs8_pem from their files. Host paths are relative to the workspace root holding .ports.env (config::ports_env_root), format v5. Dropping a session keeps the entry’s last sign-in (forget), which is stamped again once each sign-in ends, so the spacing counts from after its TOTP code. The inputs travel as a shell script of base64 heredocs on the one-off’s stdin, not a tar (the tree has no tar crate), and e2e.rs starts no canopy-integration, so only test.rs installs them. validate-in-network’s runner is root, not the host user, so its cache stays in the container. A minting grant answered 503 is retried for up to 90 s, since the issuer’s first signing key signs 60 s after it boots. Driver::with_client builds the pinned driver (http_client already took an address). The revocation test uses jane.tanf-worker, and a renewal-in-place test joins the list.

  9. U9 (w3) feat(xtask): link the devstack cast to its seeded subjects (#2769). K8. The provisioning phase’s last step builds a TokenBroker over the .devstack paths and takes stepped_up("sec.admin", canopy-security). For each other cast person it reads GET /identity/admin/subjects?upstream_iss=…&upstream_sub=…; when that does not answer the realm id, it calls create_subject at the realm id, then the link, then deletes the person’s cache entry. A 429 (the admin limit, 60 a minute) waits its Retry-After, else 1 s, within 120 s overall; a failure fails the bring-up, naming the person. Tests (infrastructure, crates/canopy-test-lib/tests/devstack_identity_test.rs): jane.caseworker’s delegation sub is …000a, bob.smith’s …0002; a second run adds no identity_admin_actions row. Docs: local-dev.adoc, testing.adoc. Closes the plan. Erratum (2026-10-08): the linking is canopy-test-lib’s TokenBroker::link_cast (the realm id from SeedPerson::realm_subject), which the provisioning phase calls, so the test drives it directly; it forgets a re-linked person’s session rather than deleting the entry; the second-run proof is the run’s empty LinkReport and an unchanged count of creation and link rows.

Risks

  • Cold build. Kanidm builds from source once per machine (about 11 minutes, about 6 GB while linking); CI pulls U3’s image.

  • TOTP reuse. Whether Kanidm 1.11.2 refuses a reused TOTP code is unrecorded; the broker spaces a person’s sign-ins a step apart and caches sessions.

  • Port drift. A port recovery that rebinds P changes the issuer string; the bring-up re-renders the profile, restarts canopy-security and links under the new issuer, and links under the old one stay inert.

  • Browser sign-in. Kanidm refuses to mix secure and insecure origins, so canopy-web’s browser sign-in against it (http on localhost) needs TLS or a localhost allowance: I3e’s to settle. The broker reads the code from Location and needs neither.

  • CI. CI is broken upstream, so U3 is verified by lint until it recovers.

  • Bring-up. Every bring-up now depends on Kanidm and canopy-security being healthy before tests run.

Maintainer calls embedded in the decisions

  1. K1’s staging: additive preparation on main and one switch MR held for the external review, rather than an integration branch the pre-push battery could not pass mid-switch. Arranging the review is the maintainer’s.

  2. Kanidm in every devstack profile from now, beside Keycloak until the switch (K2).

  3. The cast’s departures from the realm: no applicant.test, sec.admin added, programs for fti.auditor and data.steward (K3).

  4. A route that creates subjects with chosen ids, usable in production for adoption, rather than an owner-only seed function outside the admin record (K5).

  5. Still open from plan I2g: whether retention (#1303) precedes the switch.

Verification

  • Per unit: fmt; clippy in both profiles; nextest for each touched crate; rustdoc-private; quality-budgets; secret-loads; U6’s migrations-lint and migration checks; plan-lint.

  • The devstack: cargo xtask dev clean && cargo xtask dev start brings kanidm up healthy and provisions and links the cast; after another dev clean, a cold cargo xtask test --integration (the ensure_ready path) does the same before its tests run, with the integration volumes removed first so they are new; cargo xtask dev identity run twice changes nothing; https://idm.canopy.test:<P>/status answers over the CA from the host and from canopy-security’s container; canopy-security’s boot logs the upstream profile and 15 clients.

  • Infrastructure tests: U8’s and U9’s pass with CANOPY_TEST_INFRA=required on the host lane and in-network (cargo xtask validate-in-network).

  • Per MR: the full pre-push cargo xtask validate battery.

Review log

Round Vendor Resolved model Verdict

1

Anthropic

Claude Opus 5.5 (fresh subagent)

no-ship; eight blockers fixed in-plan: Kanidm reserves admin (K3’s canopy.admin); the create route answers 201; the credentials file and the Kanidm volume could drift apart (provision on an empty volume whenever any of three checks trips); the admin limit of 60 a minute (read before write, pace a 429); a mount point inside a read-only bind (per-file mounts); the broker in-network (CA and address settings, inputs owned by uid 1000); xtask cannot set its own environment (TokenBroker::new); the conformance run overwrote the devstack CA (renamed files). Notes folded in.

2

not stated (the maintainer’s other vendor)

not stated

11 findings (4 P1, 7 P2), fixed in-plan: CI’s DinD daemon owns the published ports (published_host(), publication on every interface); the ensure_ready cold start and auto_refresh carry both phases; validate-in-network’s own runner; volumes owned by uid 1000 through Dockerfile.integration; the admin and registry inventories and the global-DDL list; a 15 s federation bound; invalid_client classified from a 400’s body; recovery from a revoked cached session; the whole FederatedSession cached; devstack/kanidm hashed; a content-addressed image with needs: edges.

Edit this page · default