Encryption: /spaces/.cairn-meta.json is treated as a space (stray OpenBao key groups/.cairn-meta.json; manifest write fails on Keycloak custody) #966

Closed
opened 2026-10-19 00:20:16 +00:00 by Cordy · 0 comments
Owner

Found in batch 3 (Task D, 2026-10-19). Pre-existing.

What happens: GroupFromPath takes the first segment under /spaces/ as a space name, so the /spaces folder's own owner manifest (/spaces/.cairn-meta.json) resolves to a "space" named .cairn-meta.json.

  • On OpenBao custody this provisions a stray key groups/.cairn-meta.json.
  • On Keycloak custody the manifest write fails (no such group).

Expected: files directly under /spaces (Cairn's hidden names) belong to no space scope. They are encrypted to the instance or service scope that owns them, or not at all, as their kind requires. Read-only check on files-bao: bao kv list secret/cairn/groups shows .cairn-meta.json. The stray key can be removed by an admin after the fix (Nikola's call; Claude does not touch keys). Test with both custodies on posix and s3.

Found in batch 3 (Task D, 2026-10-19). Pre-existing. **What happens:** `GroupFromPath` takes the first segment under `/spaces/` as a space name, so the `/spaces` folder's own owner manifest (`/spaces/.cairn-meta.json`) resolves to a "space" named `.cairn-meta.json`. - On OpenBao custody this provisions a stray key `groups/.cairn-meta.json`. - On Keycloak custody the manifest write fails (no such group). **Expected:** files directly under `/spaces` (Cairn's hidden names) belong to no space scope. They are encrypted to the instance or service scope that owns them, or not at all, as their kind requires. Read-only check on files-bao: `bao kv list secret/cairn/groups` shows `.cairn-meta.json`. The stray key can be removed by an admin after the fix (Nikola's call; Claude does not touch keys). Test with both custodies on posix and s3.
Cordy closed this issue 2026-10-27 01:28:43 +00:00
Sign in to join this conversation.
No labels
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#966
No description provided.