Design a Secure Intranet Document Sharing

Hard45 min
1 / 30
System design answer

Design a Secure Intranet Document Sharing

Hard45 min30 sections
understanding•10 min read

Problem Statement: A Permission-Exact, Leak-Deterring Document Platform

Frames intranet document sharing as a permission-exact, audit-grade platform rather than a blob store with a login page.

Problem statement

Design a secure intranet document sharing platform for a large corporation: employees upload, organize, search, version, and share internal documents; access is restricted by roles and groups synchronized from the corporate directory (AD/LDAP); every document carries full version history with change logs; full-text search spans the entire corpus; and watermarking plus leak-deterrence controls reduce the damage of external exfiltration. The system sits entirely inside the corporate trust boundary but must still defend against insider misuse, privilege creep, and ransomware.

This question looks deceptively simple because everyone has used a file share. The trap is treating it as object storage plus a permissions checkbox. The real problem is that three subsystems with contradictory properties must agree on every request: the permission engine must be strongly consistent and fast (a wrong decision leaks confidential payroll data), the search index must be near-real-time over hundreds of millions of documents, and the content pipeline must process multi-gigabyte files through antivirus, extraction, encryption, and watermarking without blocking the uploader.

Why the problem is distinctive

Public file-sharing systems (Dropbox, Google Drive consumer) optimize sync and sharing velocity. An intranet platform optimizes governance: every read is permission-checked against a group graph that changes continuously as AD groups are added and nested; every byte is encrypted under a key hierarchy the security team controls; every access is written to an audit trail that must survive in court; and every render can carry the viewer's identity as a watermark so a leaked screenshot is attributable. Microsoft documents SharePoint list limits such as 50,000 unique permission scopes per list and a 5,000-item list view threshold, which shows that even the largest vendor treats permission fan-out and large-library performance as first-class architecture constraints rather than configuration.

Public operating baseline versus design assumptions

Public evidence anchors the category: Microsoft publishes SharePoint Online limits (500 GB plus 10 GB per licensed user of site storage, 500 major versions per document by default, 50,000 unique ACL scopes per list) and describes Microsoft Purview sensitivity labels and Data Loss Prevention as the governance layer applied on top. Google publishes Workspace Vault retention and eDiscovery behavior with region-aware data residency. Box publishes Shield/KeySafe customer-managed key management and an events API with hundreds of event types. These are cited company figures used as context, not requirements for our fictional system.

For capacity planning, this answer explicitly assumes one mature enterprise tenant: 50,000 employees, 25,000 daily active users, 8,000 concurrent users at the morning peak, a corpus of 800 million documents and 120 TB logical, 1.2 million uploads and 6 million downloads per day, 400,000 searches per day, and a 5x burst factor for all-hands days and reorganization events. Unless a number is tied to a named company publication, it is a stated design assumption.

The four architectural planes

  1. Governance plane: directory sync, groups, ACL evaluation, policies, retention, legal hold, audit.
  2. Content plane: upload pipeline, object storage, versioning, antivirus, extraction, encryption.
  3. Discovery plane: full-text index, search API, previews, tagging.
  4. Deterrence plane: watermarking, download controls, leak attribution, DLP hooks.

A strong answer keeps these planes separable. The discovery plane may degrade to stale results without weakening the governance plane; the deterrence plane may add latency to downloads without blocking reads of public-internal documents; and a failure in extraction must never corrupt the permission decision for the already-stored bytes.

Key Highlights

  • •The platform is permission-exact: every read is checked against current ACLs, never against a cached yes from yesterday.
  • •Search, permissions, and content pipelines have contradictory consistency needs and must be designed separately.
  • •SharePoint's published limits (50,000 ACL scopes per list, 500 major versions) show that permission fan-out and version volume are architecture problems, not config.
  • •All uncited scale numbers in this answer are explicit design assumptions for one 50,000-employee tenant.
  • •Four planes: governance, content, discovery, deterrence; degradation order protects governance first.
Lead With Permission Exactness
State in the first two minutes that every read is permission-checked against the current ACL graph, and that search results are filtered by permissions at query time. This instantly separates an enterprise architecture from a consumer file-sharing clone.
Do Not Draw S3 Plus a Login Page
An answer that stores blobs in object storage and checks one role at the API gateway misses the entire problem: inheritance, nested groups, version ACLs, watermarking, and audit all live below that line.

Section Rescue Kit

Buzzwords to use:

Permission-Exact ReadGovernance Plane

Safe statements:

  • "I will separate permission correctness from search freshness: the former must be exact, the latter may be bounded-stale."
  • "Before choosing storage, let me define which decisions are governance-owned and which are content-owned."
Design a Secure Intranet Document Sharing - System Design | WinJob | WinJob