DML School of Technology
Menu

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:

  1. Authentication: who are you? (password, MFA)
  2. Authorisation: what are you allowed to do? (permissions)
  3. 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

ModelHow decisions are madeExample
Discretionary (DAC)The owner of a resource decides who may use itSharing a document with chosen colleagues
Mandatory (MAC)Labels set by the organisation decide; users cannot change themMilitary "secret" and "top secret" documents
Role-based (RBAC)Permissions belong to roles; people are given rolesLearner, 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.