v0.6.359: small security and robustness fixes (#1008, #1013, #1012, #966, #964, #1010) #1021

Merged
Cordy merged 8 commits from r1 into main 2026-10-27 01:28:36 +00:00
Owner

Security

  • #1008: build with Go 1.26.10 (GO-2026-6809).
  • #1013: storage errors on the space details are no longer sent to owners; the answer is 503 space-meta-unavailable.
  • #1012: the download-mark secret is only minted when none exists. Any other read error refuses the start. Two instances adopt one secret.

Fixes

  • #966: Cairn's own .cairn- names under /spaces are never treated as a space. Space folders are no longer recorded in the /spaces owner record.
  • #964: a purge removes the space's subtitle, description, image and storage limit.
  • #1010: open event streams end on shutdown, so the drain finishes inside Docker's 10 s.

Reviewed: one blocker (dot-named directory spaces lost their key under the first #966 change), fixed in the review round together with two should-fixes and six nits.

Closes #1008, closes #1013, closes #1012, closes #966, closes #964, closes #1010.

**Security** - #1008: build with Go 1.26.10 (GO-2026-6809). - #1013: storage errors on the space details are no longer sent to owners; the answer is 503 `space-meta-unavailable`. - #1012: the download-mark secret is only minted when none exists. Any other read error refuses the start. Two instances adopt one secret. **Fixes** - #966: Cairn's own `.cairn-` names under `/spaces` are never treated as a space. Space folders are no longer recorded in the `/spaces` owner record. - #964: a purge removes the space's subtitle, description, image and storage limit. - #1010: open event streams end on shutdown, so the drain finishes inside Docker's 10 s. Reviewed: one blocker (dot-named directory spaces lost their key under the first #966 change), fixed in the review round together with two should-fixes and six nits. Closes #1008, closes #1013, closes #1012, closes #966, closes #964, closes #1010.
fix(r1): review fixes for #966 #1010 #1012 #1013
All checks were successful
ci / test-and-build (pull_request) Successful in 12m16s
9ce10695c6
B1 #966: GroupFromPath excludes only Cairn's own .cairn- names (storage.ReservedName), so a directory space named .team keeps its space key; members read each other's files there and files v0.6.358 wrote still read.
S1 #966: space folders (direct children of /spaces) are no longer recorded in the /spaces owner manifest, which is encrypted to its last writer; a space's owner comes from the space registry.
S2 docs: delete the stray groups/.cairn-meta.json key and the old /spaces/.cairn-meta.json object only once a rollback to v0.6.358 is ruled out.
N1 shutdown test drops the always-true released flag; N2 #966 encrypt tests run on s3 too; N3 metaEnsureFailed answers 503 (tested); N4 spaces.md: the image GET answers 503 too; N5 marks secret errors no longer repeat 'download marks:'; N6 the 2 s s3 assumption is noted at mintSettle.
Cordy merged commit fcc784b961 into main 2026-10-27 01:28:36 +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#1021
No description provided.