Skip to content

fix(ci): regenerate schema + provision SCIM test allowlist + sign commit#265

Merged
bordumb merged 1 commit into
mainfrom
fix/ci-schema-scim-trailers
Jun 11, 2026
Merged

fix(ci): regenerate schema + provision SCIM test allowlist + sign commit#265
bordumb merged 1 commit into
mainfrom
fix/ci-schema-scim-trailers

Conversation

@bordumb

@bordumb bordumb commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Fixes the three CI failures from the #263 merge to main.

1. generate-schemas drift

schemas/identity-bundle-v1.json regenerated for the kel: Vec<Event> + kel_attachments change (#263 P3.1). The kel items now $ref the Event definition (and its CesrKey/Seal/Threshold/… deps) instead of items: true, and kel_attachments is added. Matches cargo run -p xtask -- generate-schemas.

2. auths-scim-server — 15 test failures (403 / empty lists)

B.1 / RT-006 made the SCIM capability allowlist deny-by-default, but the test harness state_with_fake provisioned no allowlist, so every CRUD op was denied (403) and the list/get tests saw zero results.

  • state_with_fake (and the bespoke unknown_org_tenant_… tenant) opt into with_allow_all(true) — these tests exercise provisioning/CRUD, not the allowlist (which is unit-tested in auths-scim).
  • Added joiner_with_disallowed_capability_is_denied to keep server-level deny coverage (restrictive allowlist → out-of-list capability → 403).
  • cargo test -p auths-scim-server: 20 passed.

3. verify-commits — missing Auths trailers

The #263 commits got the SSH signature but no Auths-Id/Auths-Device trailers (no prepare-commit-msg hook in the worktree). This branch's commit was backfilled with auths sign, so it carries the trailers + signature. Local check against the committed CI bundle:

auths verify --identity-bundle .auths/ci-bundle.json origin/main..HEAD --json
→ {"valid":true,"ssh_valid":true,"signer":"did:keri:ELv6…"}

Note: the already-merged #263 commits on main (59779b27) still lack trailers, so main's own verify-commits may stay red for that historical commit until backfilled (auths sign + force-push) — out of scope for this PR, which fixes the failing checks going forward.

@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auths Ready Ready Preview, Comment Jun 11, 2026 12:02pm

@github-actions

Copy link
Copy Markdown

Auths Commit Verification

Commit Status Details
d38a064e ✅ Verified Signed by did:keri:ELv6uW2irGkclnFq8lAsAexmoLwZ-3k-ocwjpFBZsIEG

Result: ✅ 1/1 commits verified

…sistence

Fixes the CI failures surfaced by the #263 merge to main:

1. generate-schemas drift — regenerate schemas/identity-bundle-v1.json for the
   `kel: Vec<Event>` + `kel_attachments` change (#263 P3.1). The `kel` items now
   `$ref` the Event definition (+ CesrKey/Seal/Threshold/… deps) instead of
   `items: true`.

2. auths-scim-server (15 failures, 403/empty) — B.1/RT-006 made the SCIM
   capability allowlist deny-by-default, but the test harness `state_with_fake`
   (and the bespoke unknown-org test) provisioned none, so every CRUD op was
   denied. Opt them into `with_allow_all(true)` (the allowlist filtering is
   unit-tested in auths-scim) and add `joiner_with_disallowed_capability_is_denied`
   for server-level deny coverage.

3. rotation attachment persistence (test_verify_old_commit_after_rotation e2e) —
   apply_rotation appended the rot via `append_event`, so the rotation event had
   no stored CESR signature attachment and `id export-bundle` aborted after a
   rotation ("KEL event at seq N has no stored signature attachment"). Now
   finalize_rotation_storage signs the rot with the new current key and
   apply_rotation stores it via `append_signed_event` (RT-002), matching the
   existing rotate_keys_with_backend path.

verify-commits: this commit carries Auths-Id/Auths-Device trailers (backfilled
with `auths sign`, as this worktree has no prepare-commit-msg hook).

Auths-Id: did:keri:ELv6uW2irGkclnFq8lAsAexmoLwZ-3k-ocwjpFBZsIEG
Auths-Device: did:keri:ELv6uW2irGkclnFq8lAsAexmoLwZ-3k-ocwjpFBZsIEG
@bordumb bordumb force-pushed the fix/ci-schema-scim-trailers branch from d38a064 to 9a349d9 Compare June 11, 2026 12:02
@github-actions

Copy link
Copy Markdown

Auths Commit Verification

Commit Status Details
9a349d9d ✅ Verified Signed by did:keri:ELv6uW2irGkclnFq8lAsAexmoLwZ-3k-ocwjpFBZsIEG

Result: ✅ 1/1 commits verified

@bordumb bordumb merged commit 1792d5d into main Jun 11, 2026
20 checks passed
@bordumb bordumb deleted the fix/ci-schema-scim-trailers branch June 11, 2026 12:16
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