fix: migrate legacy admin role at startup #21
Reference in New Issue
Block a user
Delete Branch "fix/migrate-legacy-admin-role"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Converts old admin role bindings to granular edit+run on mcpd boot. Adds tests for unknown role denial.
- Add migrateAdminRole() that runs on mcpd boot - Converts { role: 'admin', resource: X } → edit + run bindings - Adds operation bindings for wildcard admin (impersonate, logs, etc.) - Add tests verifying unknown/legacy roles are denied by canAccess Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>