Verdalia's risk register has five critical threats, and four of them are variants of two questions: who you are and what you are allowed to do. An old account that is still active, a customer who sees someone else's order, panel routes that check nothing, and passwords tried by the thousands. In this lesson you will learn to tell authentication from authorization, to store passwords so that a leak does not reveal them, to choose between sessions and tokens, and to express permissions with roles and attributes. You will also meet OAuth 2.0 and OpenID Connect, and see how two services identify themselves to each other. Verdalia will migrate its customers' passwords, and its admin panel will start requiring a second factor and distinguishing three roles.
One warning: the code in this lesson is didactic. In a real system, authentication is built with maintained, tested libraries, and the specific measures must be reviewed with a security professional and, when they affect personal data or payments, with legal and compliance advice (GDPR, PCI DSS).
Identification, Authentication, and Authorization
| Concept | Question | Example | HTTP code when it fails |
|---|---|---|---|
| Identification | Who do you say you are? | Carmen types her email | |
| Authentication | Can you prove it? | Carmen types her password and a code from her phone | 401 |
| Authorization | What are you allowed to do? | Carmen can view orders, but not approve refunds | 403 |
They are separate steps, and they are resolved in separate places. Authentication happens once, on entry. Authorization happens on every operation: it is the complete mediation from the module's first lesson. The most frequent mistake is to confuse them and take for granted that an authenticated user can do everything.
Factors and Multi-Factor Authentication
An authentication factor is a type of proof of identity:
| Factor | What it is | Examples | Weakness |
|---|---|---|---|
| Knowledge | Something you know | Password, PIN | Guessed, reused, leaked |
| Possession | Something you have | Phone with an authenticator app, security key | Lost or stolen |
| Inherence | Something you are | Fingerprint, face | Cannot be changed if compromised |
Multi-factor authentication, or MFA, requires at least two factors of different types. A password and a secret question are two proofs of the same factor. Its value lies in the fact that the weaknesses do not overlap: whoever buys a list of leaked passwords does not have their owners' phones.
| Second factor | How it works | Assessment |
|---|---|---|
| Code by SMS | The server sends a code to the phone | Better than nothing; the phone number can be intercepted or moved to another SIM card |
| Time-based code, or TOTP | A phone app generates a code that changes every 30 seconds | Good balance; does not depend on coverage |
| Security key or passkey | A device signs a challenge, bound to the site's real domain | The most resistant to deception; requires compatible devices |
Password Storage
Why They Are Not Stored, Not Even Encrypted
A password must not be recoverable, not even by whoever administers the system. If it is stored in the clear, a leak of the table reveals it. If it is stored encrypted, a leak of the table and the key reveals it, and they are usually on the same system. What is stored is its hash: the result of a one-way function. To check a password, its hash is computed and compared with the stored one.
Why Not Just Any Hash Will Do
Functions such as MD5, SHA-1, or SHA-256 are designed to be fast, and that is their weakness here. Whoever obtains the table does not need to invert the function: they try millions of candidate passwords per second and compare. There are three defenses, used together:
- The salt: a random value, different for each account, that is mixed with the password and stored next to the hash. It keeps two identical passwords from producing the same hash and makes precomputed hash tables useless.
- A slow function, with an adjustable cost. It keeps anyone from trying millions of candidates per second.
- Heavy memory use in each computation. It keeps anyone from making it cheaper with specialized hardware.
| Function | Characteristics | When to use it |
|---|---|---|
| Argon2id | The most recent; adjustable cost in time and memory | First choice in new systems |
| scrypt | Memory-intensive; included in Python's standard library | Good option when Argon2 is not available |
| bcrypt | Veteran and very well tested; limits the password length | Systems that already use it |
| PBKDF2 | The most widespread; not memory-intensive | When a standard requires it |
| MD5, SHA-1, or SHA-256, on their own | Fast | Never for passwords |
A Password Store, With Migration
Verdalia stored its customers' passwords with SHA-1 and no salt. The example shows the new format and the way to move from one to the other:
import base64
import hashlib
import hmac
import secrets
N, R, P = 2 ** 15, 8, 1 # scrypt cost: higher means slower
def _scrypt(password, salt, n, r, p):
return hashlib.scrypt(password.encode(), salt=salt, n=n, r=r, p=p,
maxmem=128 * 1024 * 1024, dklen=32)
def create_hash(password):
salt = secrets.token_bytes(16) # different for each account
digest = _scrypt(password, salt, N, R, P)
return f"scrypt${N}${R}${P}${base64.b64encode(salt).decode()}${base64.b64encode(digest).decode()}"
def verify(password, stored):
scheme, _, rest = stored.partition("$")
if scheme == "sha1": # Verdalia's old format
computed = hashlib.sha1(password.encode()).hexdigest()
return hmac.compare_digest(computed, rest)
if scheme == "scrypt":
n, r, p, salt, digest = rest.split("$")
computed = _scrypt(password, base64.b64decode(salt), int(n), int(r), int(p))
return hmac.compare_digest(computed, base64.b64decode(digest))
return False # unknown scheme: deny
def needs_migration(stored):
return not stored.startswith(f"scrypt${N}${R}${P}$")
def log_in(email, password, accounts):
stored = accounts.get(email)
if stored is None or not verify(password, stored):
return "incorrect email or password"
if needs_migration(stored):
accounts[email] = create_hash(password) # only now do we know the password
return "access granted; hash migrated to scrypt"
return "access granted"
# Two customers with the same password, in the old format
old = "sha1$" + hashlib.sha1("Red-geranium-27".encode()).hexdigest()
accounts = {"[email protected]": old, "[email protected]": old}
print("Before: the two hashes are equal:", accounts["[email protected]"] == accounts["[email protected]"])
print("Ana, wrong password:", log_in("[email protected]", "geranium", accounts))
print("Ana:", log_in("[email protected]", "Red-geranium-27", accounts))
print("Luis:", log_in("[email protected]", "Red-geranium-27", accounts))
print("Nobody:", log_in("[email protected]", "Red-geranium-27", accounts))
print("After: the two hashes are equal:", accounts["[email protected]"] == accounts["[email protected]"])
print("Format:", accounts["[email protected]"][:17] + "<salt>$<digest>")Output:
Before: the two hashes are equal: True Ana, wrong password: incorrect email or password Ana: access granted; hash migrated to scrypt Luis: access granted; hash migrated to scrypt Nobody: incorrect email or password After: the two hashes are equal: False Format: scrypt$32768$8$1$<salt>$<digest>
Explanation:
secretsgenerates random values suitable for security. Therandommodule, which we use in other examples, is predictable and must not be used for this.hashlib.scrypttakes three cost parameters.ngoverns time and memory. They must be chosen by measuring on the real servers and consulting the current recommendations, which go up over the years.- The stored format includes the scheme and its parameters. Thanks to that,
verifyknows how to check each hash, and the cost can be raised in the future without invalidating existing accounts. hmac.compare_digestcompares in a time that does not depend on how many characters match. A normal comparison finishes sooner the earlier it finds a difference, and that time can be measured.- The error message is the same whether the email does not exist or the password is wrong. Saying which of the two fails makes it possible to find out which emails have an account. A complete version would also compute a hash when the account does not exist, so that the response time does not reveal it either.
- The migration happens in
log_in, because it is the only moment when the store knows the password. There is no way to convert one hash into another. - On the machine where this example was prepared, a SHA-1 takes 0.6 microseconds, and a scrypt with these parameters, 69 milliseconds: about a hundred thousand times more. The customer does not notice. For someone trying candidates, it is the difference between hours and centuries.
Password Policy and Brute Force
A Reasonable Policy
Current recommendations have abandoned several habits that turned out to be counterproductive:
| Recommendation | Reason |
|---|---|
| Generous minimum length, of 10 or 12 characters, and a wide maximum, of 64 or more | Length protects more than variety |
| Do not require combinations of uppercase, digits, and symbols | They produce predictable passwords, such as Verdalia2027! |
| Do not force periodic changes | It leads to minimal variations of the previous one. Change it when there are signs of a leak |
| Reject the most common passwords and those found in known breaches | They are the first ones tried |
| Allow pasting the password and using password managers | They make long, unique passwords easy |
| Offer the second factor | It is what protects when the password fails |
Protection Against Brute Force
Threat TH-02 does not consist of trying thousands of passwords against one account, but of trying, against many accounts, the email and password pairs leaked on other sites. The defenses:
- Limit the attempts. The
TokenBucketlimiter from Module 4 works as is, with two buckets: one per account and another per IP address. The buckets are kept in Redis, because the attempts arrive at different servers. - Delay, do not block forever. If five failures lock an account indefinitely, anyone can cut off a customer's access just by knowing their email. It is a denial of service we inflict on ourselves.
- Notify the account holder of logins from a new device and of password changes.
- Watch the whole. A sharp rise in failed logins is a signal, even if no account exceeds its limit.
Sessions vs. Tokens
HTTP has no memory: each request arrives unrelated to the previous one. After authenticating the user, the server hands them something the browser will present in the following requests. There are two models.
Server-Side Session
The server generates a random identifier, stores the session data in a data store, and sends the browser only the identifier, in a cookie. It is Verdalia's model since Module 4: the sessions are in Redis, under the key session:<id>, with a 30-minute expiration.
Four measures protect it: the identifier is generated with secrets.token_urlsafe(32), so that it cannot be guessed; the cookie carries the Secure, HttpOnly, and SameSite attributes, so that it only travels over HTTPS, the page's JavaScript cannot read it, and other sites cannot use it; on login a new identifier is issued; and on logout the key is deleted, which revokes it instantly.
Signed Tokens
A token contains the user's data and a signature. The server stores nothing: it checks the signature and trusts the contents. The most widespread format is JWT, JSON Web Token, with three parts separated by dots: header, payload, and signature. This example builds one by hand, to understand the mechanism:
import base64
import hashlib
import hmac
import json
class InvalidToken(Exception):
pass
def encode(data):
return base64.urlsafe_b64encode(data).rstrip(b"=").decode()
def decode(text):
return base64.urlsafe_b64decode(text + "=" * (-len(text) % 4))
def sign(message, key):
return hmac.new(key, message.encode(), hashlib.sha256).digest()
def issue_token(data, key, now, ttl):
header = {"alg": "HS256", "typ": "JWT"}
payload = dict(data, iat=now, exp=now + ttl)
parts = [encode(json.dumps(part, separators=(",", ":")).encode())
for part in (header, payload)]
message = ".".join(parts)
return f"{message}.{encode(sign(message, key))}"
def verify_token(token, key, now):
try:
header, payload, signature = token.split(".")
received_signature = decode(signature)
except ValueError:
raise InvalidToken("malformed")
# 1. The signature, with the algorithm the server decides, not the token
if not hmac.compare_digest(sign(f"{header}.{payload}", key), received_signature):
raise InvalidToken("invalid signature")
# 2. Only then is the payload read
if json.loads(decode(header)).get("alg") != "HS256":
raise InvalidToken("unsupported algorithm")
data = json.loads(decode(payload))
if now >= data["exp"]:
raise InvalidToken("expired")
return data
KEY = b"sample-key-not-real"
NOW = 1_806_000_000 # fixed instant, so the example is repeatable
token = issue_token({"sub": "carmen", "role": "customer_support"}, KEY, NOW, ttl=900)
print("Token:", token)
print("Payload anyone can read:", decode(token.split(".")[1]).decode())
print("Valid:", verify_token(token, KEY, NOW + 60))
# Someone changes the role and keeps the original signature
header, payload, signature = token.split(".")
tampered = encode(decode(payload).replace(b"customer_support", b"admin"))
for name, candidate, moment in [("Tampered", f"{header}.{tampered}.{signature}", NOW + 60),
("20 minutes later", token, NOW + 1200)]:
try:
verify_token(candidate, KEY, moment)
except InvalidToken as error:
print(f"{name}: rejected, {error}")Output:
Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJjYXJtZW4iLCJyb2xlIjoiY3VzdG9tZXJfc3VwcG9ydCIsImlhdCI6MTgwNjAwMDAwMCwiZXhwIjoxODA2MDAwOTAwfQ.KaWnmRaxVagtPQxg1lCBO4uqrvDWzlTtNwthWOtsGwc
Payload anyone can read: {"sub":"carmen","role":"customer_support","iat":1806000000,"exp":1806000900}
Valid: {'sub': 'carmen', 'role': 'customer_support', 'iat': 1806000000, 'exp': 1806000900}
Tampered: rejected, invalid signature
20 minutes later: rejected, expiredExplanation:
- The first two parts are JSON encoded in Base64, not encrypted. Anyone can read the payload of a token. It must not carry confidential data.
- The signature is an HMAC: a hash computed with a secret key over the first two parts. Whoever does not have the key cannot produce a valid signature, so changing the role invalidates the token.
subis the subject,iatthe time of issue, andexpthe expiration time. They are names fixed by the standard.- The server decides the algorithm. A historical flaw in some libraries was obeying the token's header, which the attacker controls.
- In production, a maintained library is used. This code does not cover key rotation, asymmetric algorithms, or other checks in the standard.
Comparison
| Aspect | Server-side session | Signed token |
|---|---|---|
| Where the state is | In a shared data store | In the token itself |
| Verification | One query to the data store per request | One computation, with no lookup |
| Revocation | Immediate: the session is deleted | Hard: the token is valid until it expires |
| Permission changes | Immediate effect | Effect when a new token is issued |
| Size | A short identifier | Hundreds of bytes on every request |
| Fits | Web applications with their own server | APIs consumed by third parties, mobile apps, many services |
Revocation is the weak point of tokens. It is compensated for with a short expiration, of minutes, and a long-lived refresh token that is stored on the server and can be revoked. A list of revoked tokens can also be kept, but that puts the state back on the server.
Verdalia keeps its sessions on the server. It already has the data store, it needs to revoke instantly, and it offers no API to third parties.
OAuth 2.0, OpenID Connect, and Single Sign-On
OAuth 2.0 is a standard for delegated authorization: it lets an application act on behalf of a user with another service, with limited permissions and without knowing their password.
Four roles take part: the resource owner, who is the user; the client, which is the application requesting access, for example a gardening app that wants to read Ana's orders at Verdalia; the authorization server, which authenticates the user and issues the tokens; and the resource server, which holds the data and accepts those tokens.
The recommended flow is the authorization code flow:
sequenceDiagram
participant U as User
participant C as Client application
participant A as Authorization server
participant R as Resource server
U->>C: Wants to connect their account
C->>U: Redirects to the authorization server
U->>A: Authenticates and consents to the permissions
A->>C: Redirects back, with a single-use code
C->>A: Exchanges the code and identifies itself
A->>C: Access token
C->>R: Request with the access token
R->>C: Data
Only the authorization server sees the password. The code travels through the user's browser, but the token is obtained in a direct server-to-server call.
OpenID Connect, or OIDC, is a layer on top of OAuth 2.0 that adds what the latter lacks: authentication. It delivers an identity token, in JWT format, that says who the user is. It is what lies behind the “Sign in with...” buttons. In short: OAuth 2.0 answers what an application can do on the user's behalf, and OpenID Connect, who the user is.
Single sign-on, or SSO, lets you authenticate once and access several applications. It centralizes onboarding, offboarding, and the second factor: when someone leaves the company, one account is deactivated, not eleven. In exchange, the identity provider becomes a single point of failure and a valuable target.
Authorization Models
| Model | The decision depends on | Advantage | Drawback |
|---|---|---|---|
| Access control list, or ACL | A list, on each resource, of who can do what | Precise | Hard to manage with many resources |
| Role-based access control, or RBAC | The user's roles, and the permissions of each role | Simple to understand and to audit | Does not express rules like “only their own” |
| Attribute-based access control, or ABAC | Attributes of the user, the resource, and the context | Very expressive | Harder to review |
In practice they are combined: RBAC for the general case and ABAC for the rules that depend on the data. And always on the server. Hiding a button is a courtesy to the user, not a control.
import functools
from dataclasses import dataclass
PERMISSIONS_BY_ROLE = {
"admin": {"orders.view", "refunds.request", "refunds.approve"},
"customer_support": {"orders.view", "refunds.request"},
"warehouse": {"orders.view", "stock.update"},
}
class AccessDenied(Exception):
pass
@dataclass(frozen=True)
class User:
name: str
roles: tuple = ()
customer_id: int = None
@dataclass
class Order:
id: int
customer_id: int
status: str
def has_permission(user, permission):
return any(permission in PERMISSIONS_BY_ROLE.get(role, set()) for role in user.roles)
def requires_permission(permission):
"""Decorator: the function only runs if the user has the permission."""
def decorator(func):
@functools.wraps(func)
def wrapper(user, *args, **kwargs):
if not has_permission(user, permission):
print(f" [audit] DENIED {user.name}: {permission}")
raise AccessDenied(permission)
return func(user, *args, **kwargs)
wrapper.permission = permission
return wrapper
return decorator
@requires_permission("refunds.request")
def request_refund(user, order_id, amount):
return {"order": order_id, "amount": amount, "requested_by": user.name}
@requires_permission("refunds.approve")
def approve_refund(user, refund):
if refund["requested_by"] == user.name: # separation of duties
raise AccessDenied("whoever requests a refund cannot approve it")
return f"Refund of €{refund['amount']} approved by {user.name}"
def export_orders(user): # forgotten route
return "all orders"
def can_view_order(user, order):
"""ABAC: the decision depends on attributes of the user and the order."""
if user.customer_id is not None: # it is a customer
return order.customer_id == user.customer_id
if "warehouse" in user.roles:
return order.status in ("confirmed", "preparing")
return has_permission(user, "orders.view")
marta = User("marta", roles=("admin",))
carmen = User("carmen", roles=("customer_support",))
pau = User("pau", roles=("warehouse",))
ana = User("ana", customer_id=501)
def attempt(user, operation, *args):
try:
print(f" {user.name}: {operation(user, *args)}")
except AccessDenied as error:
print(f" {user.name}: access denied ({error})")
print("1. RBAC and separation of duties")
refund = request_refund(carmen, 1042, 39.93)
attempt(carmen, approve_refund, refund)
attempt(pau, request_refund, 1042, 39.93)
attempt(marta, approve_refund, refund)
attempt(marta, approve_refund, request_refund(marta, 1043, 120.0))
print("2. Complete mediation")
routes = [request_refund, approve_refund, export_orders]
print(" Unprotected routes:", [route.__name__ for route in routes if not hasattr(route, "permission")])
print("3. ABAC")
orders = [Order(1042, 501, "preparing"), Order(1043, 777, "delivered")]
for user in (ana, pau, carmen):
visible = [order.id for order in orders if can_view_order(user, order)]
print(f" {user.name} can view: {visible}")Output:
1. RBAC and separation of duties [audit] DENIED carmen: refunds.approve carmen: access denied (refunds.approve) [audit] DENIED pau: refunds.request pau: access denied (refunds.request) marta: Refund of €39.93 approved by marta marta: access denied (whoever requests a refund cannot approve it) 2. Complete mediation Unprotected routes: ['export_orders'] 3. ABAC ana can view: [1042] pau can view: [1042] carmen can view: [1042, 1043]
Explanation:
- A decorator is a function that wraps another.
@requires_permission("refunds.approve")replacesapprove_refundwithwrapper, which checks the permission before calling it. The check is in a single place: economy of mechanism. has_permissionis the fail-safe function from the first lesson: an unknown role grants nothing.wrapper.permission = permissionleaves a mark on every protected function. With it, an automated test walks through every route of the panel and fails if any is missing it. That is how complete mediation becomes something verified on every deployment.- Separation of duties is a rule about the data: whoever requested the refund cannot approve it, even if their role allows it.
can_view_ordercombines the two models. Ana is a customer and only sees her orders. Pau, from the warehouse, only sees those waiting to be prepared. Carmen sees all of them, because her job requires it.
Authentication Between Services
Services must also identify themselves to one another. It is threat TH-08: the notification-service served anyone who called it from the internal network.
| Mechanism | How it works | Assessment |
|---|---|---|
| API key | A shared secret that the caller sends in a header | Simple. The secret travels on every request: requires an encrypted channel |
| Short-lived signed token | An identity service issues tokens to each service | Permissions and expiration. Requires an issuer |
| Mutual TLS, or mTLS | Each service presents a certificate, and both verify each other | The most robust. Requires managing certificates |
Verdalia has two services and chooses the API key. The store sends it in the Authorization: Bearer <key> header, and the service compares it with hmac.compare_digest. Both sides read it from the environment variable VERDALIA_NOTIFICATIONS_KEY, per ADR-007. Without it, the service responds 401. The /health route stays unauthenticated, because load balancing and monitoring need it and it reveals nothing. Mutual TLS is covered in the lesson on network security.
Verdalia: Customers, Panel, and Services
| Date | Change | Threat |
|---|---|---|
| Tuesday, April 6 | New passwords with scrypt; migration on login; limit of 5 attempts every 15 minutes per account and 20 per minute per IP address; minimum of 10 characters and rejection of leaked passwords | TH-02, TH-15 |
| Tuesday, April 6 | can_view_order on every orders route; someone else's order responds 404, the same as a nonexistent one |
TH-01 |
| Tuesday, April 13 | Panel: 8 personal accounts, mandatory second factor with a time-based code, 3 roles, and all 37 routes with requires_permission |
TH-10, TH-11, TH-12 |
| Tuesday, April 13 | API key between the store and the notification-service |
TH-08 |
Some details:
- The migration is gradual because it cannot be otherwise. Of the 38,000 accounts, those of active customers migrate on their own when they log in. On July 6, 90 days later, the remaining old hashes will be deleted, and those customers will have to reset their password by email. Until then, threat TH-15 remains open for the inactive accounts.
- From 11 accounts to 8. The 3 belonging to former employees were removed, along with the shared “warehouse” account and those of Íker and Andrés, who did not need them for their daily work. 3 personal accounts were created for the warehouse. That leaves 2 administrators, Marta and Lucía, 3 customer support people, and 3 warehouse people. New accounts are born with no role.
- The second factor had a cost. Two warehouse workers had no company phone. Andrés approved the purchase of two security keys, for €70 in total.
- The route test found 5, not 4. A route added in February did not check anything either.
- The panel is still reachable from the internet. It now requires two factors, but its mere exposure is a risk. It will be resolved in the lesson on network security.
Common Mistakes and Tips
- Writing your own authentication system. It is the code where a small mistake has the biggest consequences. Use the framework's or a maintained library.
- Storing passwords with a fast hash. Salt alone is not enough: you need a slow function.
- Checking the permission only in the interface. Everything that reaches the server may have been typed by hand.
- Storing confidential data in a token. It is signed, not encrypted.
- Distinguishing in the error message between a nonexistent user and a wrong password. It gives away the list of accounts.
- Practical tip. Review the accounts every three months: who is still at the company, who has changed position, and which permissions have not been used.
Exercises
Exercise 1: Authentication or Authorization?
State whether each failure is one of authentication or of authorization, and which HTTP response applies:
- A logged-in customer requests another customer's invoice.
- The
notification-servicereceives a request without theAuthorizationheader. - A warehouse employee tries to change the price of a product.
Exercise 2: A New Role
Andrés, who has lost his old account with every permission, asks for one to look up sales. He must see the orders, but not the customers' personal data, and he must not be able to modify anything. Add the business role to the lesson's example and modify can_view_order if you think it necessary. Reason about which part is solved with RBAC and which is not.
Solutions
Solution to Exercise 1
- Authorization. A 403 applies, but it is preferable to respond 404, so as not to confirm that the invoice exists.
- Authentication, between services. 401.
- Authorization. 403, and an entry in the audit log.
Solution to Exercise 2
With this, can_view_order already returns True for Andrés, through its last line, and no function that modifies data admits him. But RBAC only decides whether he can view orders, not which fields of each order. Hiding the personal data is a rule about the data, and there are two ways to solve it: have the function that prepares the response omit the name, email, and address when the user has the business role, or, better, have Andrés not look up individual orders but an aggregate report, computed over de-identified data. The second applies least privilege: to know how much has been sold, you do not need to know to whom. Common mistake: giving him the admin role “because he is the boss.”
Conclusion
In this lesson you have learned to tell apart identification, authentication, and authorization. You have met the three authentication factors and why combining them protects more than reinforcing a single one. You have seen that passwords are stored with a slow, salted function, and how to migrate from a weak format. You have compared server-side sessions with signed tokens, whose advantage is not needing a data store and whose price is revocation. You have met OAuth 2.0, which delegates authorization, and OpenID Connect, which adds authentication. And you have expressed permissions with roles, with attributes, and with a decorator that makes forgetting to check them hard.
In Verdalia, four of the five critical threats already have their mitigation in production. New passwords are stored with scrypt, a customer can no longer see someone else's order, the panel has eight personal accounts with a second factor and three roles, and the notification-service requires a key from whoever calls it.
We have decided who can see each piece of data. We have not looked at the data itself: which data Verdalia stores, which of it is personal, where it is, for how long, and what would happen if, despite everything, someone reached it. That is the subject of the next lesson: “Data Protection.”
