KnearMe Admin Operations Runbook
Admin login incident triage
Section titled “Admin login incident triage”- Verify Supabase auth service status.
- Verify target user exists in
admin_users. - Confirm middleware/session cookie behavior on
/dashboard/*.
Role/permission incident triage
Section titled “Role/permission incident triage”- Query
admin_usersrole value for affected user. - Confirm route uses expected
requireAdmin()orrequireRole()guard. - Validate recent changes to auth helper logic under
src/lib.
Audit and trace workflow
Section titled “Audit and trace workflow”- Use
admin_audit_logentries to trace privileged actions. - Correlate timestamp/user/action with incident timeline before rollback.
Rollback guidance
Section titled “Rollback guidance”- Roll back app deployment to last known-good build.
- Re-run smoke checks on login and key dashboard sections.