KatInterview

Secure Landing Page for a Multi-Tenant Cloud Dashboard

System DesignModel answer
MediumModel answerSystem Designsystem-designauthenticationauthorization

Last updated

Design the post-login home screen of a multi-tenant cloud dashboard, covering authentication, scoped permissions, tenant isolation, tamper-resistant audit logging, and low-latency scaling.

Problem

You are designing the first screen a user lands on after signing in to a cloud platform's web dashboard, similar to the landing view of a major public cloud provider. Security is the main concern: how users prove identity, what they are allowed to see, and how sensitive activity is recorded.

Functional requirements

  1. The landing page is personalized and shows:
    • The projects, accounts, or tenants the user can access.
    • A summary of key resources (virtual machines, databases, storage buckets) that the user is permitted to view.
    • Optionally, recent activity and notifications.
  2. Tenant isolation is strict. A user must never see data from a tenant they have no access to.
  3. Permissions support at least role-based access control (for example Owner, Admin, Viewer). Ideally roles can also be scoped to a single project or resource.
  4. Security-relevant events produce audit records, at minimum:
    • Sign-in, sign-out, and token issuance or refresh.
    • Views of sensitive pages or listings (you must state your own policy on this).
    • Role and permission changes.
    • Create, update, and delete actions started from the dashboard.

Non-functional requirements

  • Home page p95 latency roughly 500-1000 ms.
  • Availability of 99.9% or better.
  • Secure by default: least privilege and robust session handling.
  • Audit records are tamper-resistant and searchable by security and compliance staff.

What to deliver

  • The end-to-end flow from sign-in to a rendered home page.
  • The main services and their APIs.
  • Where and how permission checks are enforced.
  • The audit pipeline: what is recorded, where it flows, and how it is protected.
  • Key data models and scaling considerations.

State your scale assumptions up front.

Hints

Hint 1

Start by stating scale numbers and an explicit policy on which reads are audited. Logging every list call at full fidelity is costly, so decide what counts as sensitive.

Hint 2

Avoid running a permission check per resource. Think about an operation that returns the set of scopes a user can read, then query an inventory index filtered by those scopes.

Hint 3

Enforce authorization in several layers (edge, each service, and the data layer), and keep tenant IDs derived from authorized scopes rather than taken from the client.

Hint 4

For audit integrity, think about guaranteeing that a mutation cannot happen without its record (outbox), plus append-only storage, hash chaining, and separate access control for the log.