Security / 3 / 3
Encryption and secrets
A notes app keeps people's private notes. We find every place where a stolen copy is readable: the network, the disk, the backups and the config file, and close them one by one.
- 14 min
- Intermediate
- 11 steps
- Readable copies
- 4
- Response p95
- 120 ms
- Failed requests
- 0 %
- request
- reply
- redelivery
- duplicate
- lost
Numbers are a model scenario, not measurements
The real request
Phone app → Notes APIRequest
POST /notes HTTP/1.1
Host1: api.example.com
Authorization2: hidden
{
"title": "Spare key",
"text": 3"Door code 4417, key under the mat"
}
Response
HTTP/1.1 201 Created
Host— Which server the request is for. Without TLS, this and everything below is visible on the way.Authorization· hidden — The user's session token. Whoever copies it is the user until it expires.text— The private note itself, readable by every router on the path.
Course: 42 lessons
01 Foundations
02 Scaling
03 Data & storage
04 Communication
05 Reliability
06 Architecture
07 Security
08 Shipping
09 Whole systems
10 Business processes