v0.7 batch: account names, two-tier audit, counters, delete retry, transfer picker (#840 #842 #844 #849 #856) #858

Merged
Cordy merged 9 commits from batch-v07a into main 2026-10-07 18:33:01 +00:00
Owner

Closes #840, closes #842, closes #844, closes #849, closes #856. v0.6.321.

  • #840 (account names):
    • Local account names are ASCII (a-z 0-9 . _ - @), case-insensitive and stored lowercase; umlauts go in the display name.
    • Existing odd or colliding names get a WARN plus an admin bell item and are never renamed.
    • Upgrade action: an invalid auth.users or CAIRN_ADMIN_USERNAME now stops startup.
    • WebDAV/Basic: the challenge announces charset="UTF-8", with a Latin-1 fallback and NFC. New passwords are hashed in NFC, and old hashes still verify.
  • #842 (two-tier audit): account, role, settings, policy, share-admin, setup and licence events, plus peer security denials, are always recorded. The toggle controls file-access events. New verbs: setup-complete, settings-change (setting names only) and auto-purge-run (counts only).
  • #844 (counters): "Active today" comes from sign-in records, not audit. Setup stamps the first admin's sign-in. The Access tab refetches. Labels are unchanged.
  • #849 (delete retry): app passwords are removed before the account, so a failed delete can be retried. Leftover cleanup happens only when the name is positively departed, otherwise 404 (fails closed).
  • #856 (transfer picker): the owner-transfer picker lists local and config-file accounts. Config accounts now count as live everywhere.

Research and decisions are on #840 and #842. One review plus two fix rounds; the last re-review says ready to merge.

Found along the way and filed separately: #857, LDAP users treated as departed (high, pre-existing).

Closes #840, closes #842, closes #844, closes #849, closes #856. v0.6.321. - **#840 (account names):** - Local account names are ASCII (`a-z 0-9 . _ - @`), case-insensitive and stored lowercase; umlauts go in the display name. - Existing odd or colliding names get a WARN plus an admin bell item and are never renamed. - **Upgrade action:** an invalid `auth.users` or `CAIRN_ADMIN_USERNAME` now stops startup. - WebDAV/Basic: the challenge announces `charset="UTF-8"`, with a Latin-1 fallback and NFC. New passwords are hashed in NFC, and old hashes still verify. - **#842 (two-tier audit):** account, role, settings, policy, share-admin, setup and licence events, plus peer security denials, are always recorded. The toggle controls file-access events. New verbs: `setup-complete`, `settings-change` (setting names only) and `auto-purge-run` (counts only). - **#844 (counters):** "Active today" comes from sign-in records, not audit. Setup stamps the first admin's sign-in. The Access tab refetches. Labels are unchanged. - **#849 (delete retry):** app passwords are removed before the account, so a failed delete can be retried. Leftover cleanup happens only when the name is positively departed, otherwise 404 (fails closed). - **#856 (transfer picker):** the owner-transfer picker lists local and config-file accounts. Config accounts now count as live everywhere. Research and decisions are on #840 and #842. One review plus two fix rounds; the last re-review says ready to merge. Found along the way and filed separately: **#857**, LDAP users treated as departed (high, pre-existing).
Cordy merged commit 31fa552885 into main 2026-10-07 18:33:01 +00:00
Cordy deleted branch batch-v07a 2026-10-07 18:33:08 +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#858
No description provided.