batch-v07i: break-glass-aware admin rules, admin-group protection, security standards page (#880, v0.6.335) #889

Merged
Cordy merged 6 commits from batch-v07i into main 2026-10-12 22:28:07 +00:00
Owner

Closes #880. Decisions, research and standards checks are on #880.

Rules

  • Break-glass account: a name that is in both auth.users and auth.admins, plus the env admin (LocalUsersAPI.BreakGlass()).
  • "Last enabled local admin" floor: applies only when no break-glass account exists. The all-source floor and the self rules are unchanged.
  • Self-removal is always refused, with consistent codes:
    • cannot-remove-self
    • cannot-disable-self
    • cannot-demote-self (new; covers local demote, admins.json self-removal and admin-group self-leave, rename and delete)
  • App-owned admin groups: rename, delete and member removal are refused (last-admin) when no administrator would remain. The check runs atomically under the group lock (order: groups, then local, then admins.json).
  • admins.json demote floor: now atomic, and answers with last-admin.
  • New audit event auth-breakglass-changed at startup when the set of break-glass names changes. The set is stored in the state backend.

UI

  • Greyed-out entries follow the break-glass rule. "Remove admin" is greyed on your own row.
  • The groups UI greys only what the server would surely refuse, and otherwise shows the server's message: "No administrator would remain."
  • All strings in 4 languages.

Docs

  • The recovery recipe comes first; "two emergency paths"; operator duties and deliberate deviations; how fragile IdP admin groups are. Changed in users-access.md, local-accounts.md and groups.md.
  • New security-standards.md:
    • ISO 27001/27002, BSI (Kompendium 2023 plus a Grundschutz++ note), BK AR012, IKT-Minimalstandard, NIST, CIS, NIS2, HIPAA, nDSG/DSV, CRA.
    • It only claims what has shipped; #887, #888 and #876 are marked as planned.
  • CHANGELOG v0.6.335.

Review

  • Task 1: 3 Important findings fixed (locked view for group checks, the admins.json floor race, exact matching of the "other source").
  • Final review: 4 Minor findings fixed, including the empty admin list in the groups UI and the binary path in the published image (/ko-app/cairnd).
  • Local runs used a scratch modfile because x/net v0.60 isn't in the offline cache, so CI is the authoritative run on the real modules.
  • Follow-ups were added to #887.
Closes #880. Decisions, research and standards checks are on #880. ## Rules - **Break-glass account:** a name that is in both `auth.users` and `auth.admins`, plus the env admin (`LocalUsersAPI.BreakGlass()`). - **"Last enabled local admin" floor:** applies only when no break-glass account exists. The all-source floor and the self rules are unchanged. - **Self-removal is always refused, with consistent codes:** - `cannot-remove-self` - `cannot-disable-self` - `cannot-demote-self` (new; covers local demote, admins.json self-removal and admin-group self-leave, rename and delete) - **App-owned admin groups:** rename, delete and member removal are refused (`last-admin`) when no administrator would remain. The check runs atomically under the group lock (order: groups, then local, then admins.json). - **admins.json demote floor:** now atomic, and answers with `last-admin`. - **New audit event `auth-breakglass-changed`** at startup when the set of break-glass names changes. The set is stored in the state backend. ## UI - Greyed-out entries follow the break-glass rule. "Remove admin" is greyed on your own row. - The groups UI greys only what the server would surely refuse, and otherwise shows the server's message: "No administrator would remain." - All strings in 4 languages. ## Docs - The recovery recipe comes first; "two emergency paths"; operator duties and deliberate deviations; how fragile IdP admin groups are. Changed in users-access.md, local-accounts.md and groups.md. - **New `security-standards.md`:** - ISO 27001/27002, BSI (Kompendium 2023 plus a Grundschutz++ note), BK AR012, IKT-Minimalstandard, NIST, CIS, NIS2, HIPAA, nDSG/DSV, CRA. - It only claims what has shipped; #887, #888 and #876 are marked as planned. - CHANGELOG v0.6.335. ## Review - **Task 1:** 3 Important findings fixed (locked view for group checks, the admins.json floor race, exact matching of the "other source"). - **Final review:** 4 Minor findings fixed, including the empty admin list in the groups UI and the binary path in the published image (`/ko-app/cairnd`). - **Local runs** used a scratch modfile because x/net v0.60 isn't in the offline cache, so **CI is the authoritative run on the real modules.** - **Follow-ups** were added to #887.
Cordy merged commit 642eae9701 into main 2026-10-12 22:28:07 +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#889
No description provided.