Skip to content

[P1] [doc-drift] FR-7.1.3 Edit user — only password; host/lock/expiration/limits not editable #436

Closed

Description

@EVWorth

[P1] [doc-drift] FR-7.1.3 "Edit user" — only password change is implemented; host/lock/expiration/limits not editable

Context

DESIGN_REQUIREMENTS FR-7.1.3 acceptance: "Modify user properties: password, host, account lock/unlock, password expiration".

Problem

Per docs/audits/admin.md F8.

"Edit User" surface is exactly the Change Password dialog. Host can only be set at creation. Account lock only at creation via ACCOUNT LOCK. Password expiration read-only. A user discovered to be locked out needs an admin to issue ALTER USER ... ACCOUNT UNLOCK via direct SQL — can't do it from the Admin tab. Same for ALTER USER ... PASSWORD EXPIRE INTERVAL 90 DAY (SOX/HIPAA compliance).

Files

  • src/components/admin/ChangePasswordDialog.tsx:1-135
  • src/components/admin/UserManagement.tsx:330-365

Repro (if applicable)

Static analysis only.

Expected

Select a user, Edit User → Account tab, toggle "Account Locked", Apply → ALTER USER 'u'@'h' ACCOUNT LOCK runs.

Proposed fix

Scope M. Replace "Change Password" with "Edit User" dropdown that opens a dialog with: (a) Password tab, (b) Account tab (host, lock/unlock, expiration), (c) Resource Limits tab (MAX_USER_CONNECTIONS, MAX_QUERIES_PER_HOUR, etc.).

Acceptance

Editing a user with MAX_USER_CONNECTIONS 10 shows the value in Resource Limits tab. Toggle lock → user row shows Locked badge.

Needs human verify

Yes

Labels: audit, area/admin, severity/p1, kind/doc-drift

Activity

  1. added
    audit
    severity/p1
    kind/doc-drift
    area/admin
    on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/adminauditkind/doc-driftseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions