Skip to content

Add role-based access control for admin endpoints#404

Description

@meshackyaro

Description

Admin endpoints (verifyUser, migrations) accessible by any authenticated user. No role enforcement.

Component

Backend

Difficulty

馃敶 Hard

Tasks

  • Design role model (admin, juror-manager, user)
  • Add role claim to JWT payload
  • Implement RolesGuard
  • Apply guards to privileged endpoints
  • Document role requirements

Acceptance Criteria

  • Admin endpoints require admin role
  • Roles enforced consistently
  • Role model documented

Estimated Time

3-5 days

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions