Skip to content

Roles administration - promote permission bits to managed roles #90

Description

@andywithcamera
State today (verified in code):
- Permission primitive exists (internal/authz/Permissions.go): view/write/admin bits, RequirePermission, UserHasPermission(userID, perm, appID) - group-scoped.
- AuditMiddleware exists.
- But no managed 'roles' concept and no admin UI to define/assign roles.

The ask: a first-class roles system on top of the existing permission bits, with an admin surface to define roles and assign them to users/groups.

Drivers:

Scope:

  • role = named set of permissions; assign to users and groups.
  • Built-in system roles (viewer/editor/admin + reserved task_qa-style bypass).
  • Admin UI to manage roles.
  • Keep live alongside existing per-app permission bits (AuditMiddleware covers the trail).

Category: c:infra. Depends: existing authz/.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions