Secure Document Platform Design
Design a document storage and sharing service that applies one access decision on every path that reveals content, keeps immutable version and audit history, and reconciles retention, legal hold and deletion.
3 objectives 5 steps about 115 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Model sharing through owners, groups, nested folders and links as relationship tuples, and design an authorization service that answers check and list queries within a latency budget without letting a revoked user see content changed after the revoke.
- Apply the same access decision on every path that reveals content (download, previews and thumbnails, search results and snippets, export, sync clients and AI retrieval), and test that a never-granted user, and a user revoked longer ago than the stated revocation bound, get nothing through any tested path, and that content changed after a revoke is not served to the revoked user.
- Design version history and an append-only, tamper-evident audit log, and resolve conflicts between retention rules, legal hold and deletion requests, including how a deletion reaches replicas, caches, search indexes and backups and how a restore avoids bringing back deleted or revoked content.
Lesson plan
5 steps, about 115 min · 0 of 4 lessons available so far
- Sharing as relationships: tuples, nested groups and check queries Concept · 25 min · coming later
- One decision, every read path: previews, search, export and AI retrieval Worked example · 25 min · coming later
- Lab: revoke a share and hunt for leaks across caches and indexes Lab · 30 min · coming later
- Versions, audit trails, retention and legal hold Concept · 20 min · coming later
- Secure document platform design check Knowledge check · 6 questions
Practise it
Build a small document service with an authorization check, a preview cache and a search index; write negative tests in which a never-granted user and a user revoked longer ago than your stated revocation bound try download, preview, search snippets and export, and a viewer tries to re-share or create a public link; show that two concurrent saves of one document keep both versions; fix every leak you find, then write a design doc covering the sharing model, consistency after a revoke, version and audit storage, and the order in which a deletion request reaches replicas, caches, indexes and backups when a legal hold may apply.
References
Hard prerequisites
None.
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.