SpinTheMic
Pro

Interview practice question

Authorisation logic scattered everywhere

Backend Engineering · Auth and Security · Intermediate

Authorisation checks are scattered across hundreds of endpoints, and bugs keep appearing. How do you improve the design?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Centralise policy decisions.
  • Policy engine (OPA, Cedar, Casbin) or authz service.
  • Consistent middleware/decorators.
  • Deny by default.
  • Tests for authorisation matrix.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics