Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.71 KB

TODO.md

File metadata and controls

50 lines (35 loc) · 1.71 KB

Backlog

  • Project users [POST] route: only authorize use can create other users.

Role

  • should protect get Roles, Update, & delete role

Permission

  • export only one Get /permission route
  • protect Get /permission route

Role-Permission

  • make a route for get, put, & deleted role-permission
  • default role-permission can't be deleted
  • Only the role-permission created by user can be deleted
  • Add a flag canBeDeleted. If it is true then only alow to deleted
  • Even admin can't deleted if the role-permission is isSystemRole
  • Add proper description about the role-permission

User-Role

  • make a route for get, put, & deleted role-permission
  • default role-permission can't be deleted
  • Only the role-permission created by user can be deleted
  • Add a flag canBeDeleted. If it is true then only alow to deleted
  • Even admin can't deleted if the role-permission is isSystemRole
  • Add proper description about the role-permission

RBAC Permission

  • Define the default permissions for admin since super-admin have all the permission and we can't give all permission to admin. (e.g. super-admin is like a president and admin is like a PM)
  • Find a mechanism to allow user to switch their role. (Low priority).

Forget Password Schema

  • Handle Rate Limiting for Token Generation and Use
  • Handle Token Expiry and Auto-cleanup in Token Schema

Secure OTP

  • Add OTP Lock and Attempts Fields to User Schema
  • Reset OTP Attempts After Successful Verification
  • Log Failed OTP Attempts for Security Monitoring
  • Temporarily Lock User After Exceeding OTP Attempts
  • Unlock User Account Manually via Admin Control
  • Handle OTP Abuse by Tracking Failed Attempts
  • Implement OTP Cool down to Limit Requests per User