v0.6.381: item id stamp as the owner under per-user key custody (#1058) #1064

Merged
Cordy merged 7 commits from st1058 into main 2026-11-01 02:01:53 +00:00
Owner

Closes #1058.

  • The start stamp writes owner records as the owner (actor system) under per-user key custody, so links and shares from before v0.6.376 get their item id; it never makes a first key (OpenBao, Keycloak, crypto role via X-Cairn-No-Provision) but allows the post-quantum upgrade.
  • Owners without a key, homes off, deleted Keycloak accounts count as deferred; the stamp finishes with deferred=; transient failures retry in the background every 15 minutes (WARN at most hourly); the stamp runs off the serving path and releases its claim on shutdown.
  • Fixes found in review: owner-side #835 reads never make a first key; Keycloak attribute writes re-merge before PUT (no lost post-quantum identity); homeOwner returns "" outside homes.
  • Docs: CHANGELOG v0.6.381, chart, sharing.md, admin-policy.md, deployment.md, encryption.md, ARCHITECTURE.md.
Closes #1058. - The start stamp writes owner records as the owner (actor system) under per-user key custody, so links and shares from before v0.6.376 get their item id; it never makes a first key (OpenBao, Keycloak, crypto role via X-Cairn-No-Provision) but allows the post-quantum upgrade. - Owners without a key, homes off, deleted Keycloak accounts count as deferred; the stamp finishes with deferred=<n>; transient failures retry in the background every 15 minutes (WARN at most hourly); the stamp runs off the serving path and releases its claim on shutdown. - Fixes found in review: owner-side #835 reads never make a first key; Keycloak attribute writes re-merge before PUT (no lost post-quantum identity); homeOwner returns "" outside homes. - Docs: CHANGELOG v0.6.381, chart, sharing.md, admin-policy.md, deployment.md, encryption.md, ARCHITECTURE.md.
stampItemIDs ensures a Personal record's id with stampCtx (the home owner
as the person, actor system, encrypt.WithNoProvision); ErrNoUserKey and
ErrNoUser count as deferred (done, deferred=<n>, one INFO naming the first),
every other error fails (no done, WARN at most hourly per state path); a
run whose ctx ends logs nothing. main.go keeps the first attempt before
serving and re-runs it every 15 minutes from a ticker loop bound to the
shutdown signal until the state says done. homeOwner answers "" for a
path outside every home (it answered "/" with per-user homes off).

Existing tests changed, with reasons:
- TestStampItemIDsCustody835 flipped: #1058 lifts the documented
  per-user custody limit; the pre-release item now gets its id.
- TestStampItemIDs835: the audit note always carries deferred (spec 4.3,
  decision C).
- TestPersonalShareHooksWired835: the stamp is called through restamp
  (first attempt plus the retry loop); the wiring strings follow.
- custody835 fixture: honours the no-first-key mark, answers
  encrypt.ErrNoUser, records the usernames asked.
Cordy merged commit a6496563bb into main 2026-11-01 02:01:53 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#1064
No description provided.