Open to everyone Reading, lesson 21 of 100, 2 min read
Authorisation and access control models
Three separate questions
Security people separate three ideas, sometimes called AAA:
- Authentication: who are you? (password, MFA)
- Authorisation: what are you allowed to do? (permissions)
- Accounting (or auditing): what did you actually do? (logs)
Getting authentication right but authorisation wrong is a common failure: a correctly signed-in learner who can open another learner's results page by changing a number in the address bar.
Access control models
| Model | How decisions are made | Example |
|---|---|---|
| Discretionary (DAC) | The owner of a resource decides who may use it | Sharing a document with chosen colleagues |
| Mandatory (MAC) | Labels set by the organisation decide; users cannot change them | Military "secret" and "top secret" documents |
| Role-based (RBAC) | Permissions belong to roles; people are given roles | Learner, teacher, admin, owner on this platform |
| Attribute-based (ABAC) | Rules combine attributes of the person, the resource and the situation | "Teachers may edit results for their own classes, during term, from school devices" |
Most organisations use role-based access because it is easy to understand and review: change a person's role and their permissions follow.
Good authorisation habits
- Deny by default: no access unless it is granted.
- Check on the server, for every request. Hiding a button is not security.
- Least privilege for roles: give the teacher role what teachers need, not admin powers "just in case".
- Separate admin accounts: staff who administer systems use a separate, more protected account for admin work and a normal account for email and browsing.
Tip
When you use any system, notice how it answers the three questions. It trains you to spot where authorisation is missing.