Three systems, three needs
A school app, a shop and a hospital all keep data. All three must let the right people in.
The school app lets parents see homework. The shop lets a partner company check stock. The hospital lets a doctor read a patient file, but only on the ward.
The needs are different. So the method of access must be different too.
Key words
| Word | What it means | Example |
|---|---|---|
| Platform | A kind of system that uses the data. | An app and a website |
| RBAC | Role-based access control: permissions belong to roles. | Doctors may read files |
| RuBAC | Rule-based access control: a rule about time or place decides. | Only on the ward |
| API | A door that lets one program ask another for data. | A stock check by a partner |
| Sensitive data | Data that could harm a person if the wrong people see it. | Health records |
| Access requirement | What a job needs: who, how often, how safe. | Only on the ward |
The cells students fill in are left blank in this preview.
Benefits and drawbacks of each method
| Method | Benefit | Drawback |
|---|---|---|
| RBAC | Simple. Easy to give a new person the right access. | Not flexible. Too many roles become a mess. |
| RuBAC | Flexible. Can use time, place or device. | Rules are hard to write and to test. A wrong rule locks out the right person. |
| API | One safe door for many platforms. The data stays in one place. | Takes time to build. A weak API is a risk for all platforms. |
The cells students fill in are left blank in this preview.
Quick check: benefit or drawback?
Have a go
Quick check: benefit or drawback?
4 questionsStart with the need
Before you pick a method, ask four questions.
Who needs the data? How many platforms use it? How sensitive is it? Do you need a rule about the time or the place?
The answers point to the method. This is how you make a judgement.
Three systems and what they need
| System | Who needs it | Platforms | Sensitive? | Rule needed? |
|---|---|---|---|---|
| School app | Parents, teachers, students | Phone and website | Some | No |
| Shop stock | Staff, a partner company | Website, partner system | No | No |
| Hospital files | Doctors, nurses | Ward screens, phones | Very | Yes: only on the ward |
The cells students fill in are left blank in this preview.
Picking the methods
Match the need to the method
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Watch: choosing how to give access
Press Play on the short film below. It starts with three systems that keep data. Then it shows the three methods, a benefit and a drawback of each, the school app's need, and one myth.
Film: Choosing how to give access
Choosing how to give access
Every scene, as text
- Three systems, three needs. A school app, a shop and a hospital (all three: keep data). All three must let the right people in. The needs are different, so the method of access must be different too.
- The three methods: RBAC, RuBAC and API. RBAC: permissions belong to roles (stands for: role-based access control). RuBAC: a rule about time or place decides (stands for: rule-based access control). API: a door that lets one program ask another for data.
- Benefits and drawbacks of each method. RBAC (benefit: easy to give a new person access; drawback: too many roles become a mess). RuBAC (benefit: can use time, place or device; drawback: rules are hard to write and test). API (benefit: one safe door for many platforms; drawback: takes time to build).
- Start with the need: the school app. Every system starts with RBAC. Who needs it: parents, teachers, students (so: RBAC, the roles decide). Platforms: phone and website (so: an API, both use the same door). Sensitive? Some. Rule needed? No (so: no RuBAC).
- Myth (false): use an API for everything. That is not true: an API has drawbacks. An API (drawback: takes time to build; drawback: a weak API risks all platforms). Teachers may edit marks but students may only read them (so: RBAC, the roles decide).
Extra: Two more ideas you may hear
| Idea | What it is | Benefit | Drawback |
|---|---|---|---|
| Direct access | A program or person connects to the data store itself. | Fast and simple for one trusted program. | Risky. Anything that connects can see everything. |
| Audit log | A record of who looked at or changed data, and when. For example: Dr Khan read file 12 at 10:15. | You can find out who saw sensitive data. | It shows misuse after it happens. It does not stop it. |
The cells students fill in are left blank in this preview.
Your turn: suggest the methods
Two steps. Read the comments in the starter for the exact rules. 1. suggest_methods gets two facts about a system and gives back a list of access methods. 2. risk_level rates the risk as "high", "medium" or "low". Press Run Tests to check your work.
def suggest_methods(many_platforms, needs_rule):
# Give back a list of access methods for a system. Use this order:
# "RBAC" always (every system gives permissions by role)
# "RuBAC" if needs_rule is True (a time or place rule is needed)
# "API" if many_platforms is True (a phone app, a website, partners)
return []
def risk_level(sensitive, many_platforms):
# "high" if the data is sensitive AND many platforms use it.
# "medium" if only one of those is True.
# "low" if neither.
return ""
Make a free account to save your work, or press Start lab to work through the whole lesson.
Give your advice in writing
A college builds an app for school trips. Parents use a phone app. Teachers use a website. A bus company must see the list of students on its bus. The list has names and medical notes. Say which access methods you would use and why. Write at least eight sentences. Include one benefit and one drawback of your choice.
A teacher marks this in a college. Nothing you write here is kept: it goes when you leave the page.
Make a free account to save your work, or press Start lab to work through the whole lesson.
Key words crossword
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Final check
Have a go
Final check
5 questionsRemember
Important
Start with the need: who, how many platforms, how sensitive, which rules. RBAC for roles, RuBAC for rules, an API for many platforms.