Commit Graph

8 Commits

Author SHA1 Message Date
marc 851dd389d7 feat(accounts): service-account management, generated passwords, perms-view fixes
Permissions view
- Restore the System Accounts listing path and audit related tabs.
- Lock the framework system_users deny rules (is_system_managed) and
  system-principal global rules; show them read-only.

System vs service accounts
- Only account_type='system' is immutable. service-bot is no longer a
  system principal; ensureInternalAccounts repairs existing rows.
- GET /users now surfaces system/service accounts (gated by
  read/system_users, read/service_users) and Type is the first column.

Service accounts
- UI to create/edit/delete service accounts (API-only, no login).
- Admin API-key management: GET/POST/DELETE /users/:id/keys, restricted
  to service accounts, scope-capped to the account's own permissions,
  with a key-management card on the user detail page.

Password policy
- Admins never set passwords. Creating a user account auto-generates a
  strong password (shown once) and forces a change on first login;
  admin "Reset password" does the same.
- Forced change flow: login returns password_change_required +
  challenge token; POST /auth/change-password validates strength,
  clears the flag, issues the session. Enforced after password and MFA.
- Strength: length 12-128, reject common passwords and email/name.

UI
- Lock indicators in action columns use a shared LockBtn (tooltip,
  aligned with other action buttons).
- Account-type selection in create is a segmented button selector.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 08:52:39 +02:00
marc 8200c4650f refacto: cleanup 2026-06-06 16:00:42 +02:00
marc 8ff6bf2d0e refacto: cleanup 2026-06-06 10:35:40 +02:00
marc dfe8c8c322 feat(mappings): rework interface 2026-06-03 19:54:20 +02:00
marc 2b389ac66b feat(modules): add service connectors and cleanup settings 2026-05-17 18:35:41 +02:00
marc 4607fd1e0a feat(tests): ensure all tests pass 2026-05-07 21:49:25 +02:00
marc 941093b2cf feat(core): add webhooks 2026-05-03 18:19:39 +02:00
marc 9c87cff4a2 feat(packages): add pgmorbac package 2026-04-29 07:49:11 +02:00