Case study · Research project · HND

Zero Trust

An access control system for a fictional cloud-based company, built from scratch on Cloudflare and measured against the NIST zero trust standard.

RoleResearcher and developer
Year2026
StackCloudflare Workers, D1, Pages
StatusLive admin console ↗

The question

My HND research asked whether a small cloud-based company can apply zero trust without buying an enterprise product. The practical half was this proof of concept: an admin panel for an online store where nothing is trusted just because it's logged in.

What I built

  1. Login by one-time codeEach sign-in uses a one-time code and issues a signed session token.
  2. A check on every requestEach token maps to a session row in the database. A valid token is still rejected the moment its session is revoked or expired.
  3. Roles built around jobsProduct manager, order manager, security officer and support each get a hand-picked set of permissions, checked per resource and action. There is no all-powerful admin flag.
  4. Step-up for sensitive actionsRisky operations need a fresh one-time code even inside a valid session, and overriding another account needs that account's consent.
  5. A tamper-evident audit logEvery action, success or denial, is appended to a hash-chained log, with a button in the console that verifies the chain.

The hard parts

  1. Building it by hand on purposeCloudflare sells a ready-made access product. I wrote the authentication, sessions, permissions and logging myself, so the logic could be judged on its own merits and not as a wrapper around a vendor.
  2. Mapping to a real standardEach of the seven NIST SP 800-207 tenets is tied to specific code: per-session access, dynamic policy, continuous monitoring, and enforcement before every access.
  3. Watching the session, not just the loginIP address, device and country are recorded on every request, in both the session and the audit log, so a session that changes character is visible.
  4. Showing the differenceFor the presentation I built a deliberately weak admin panel that runs only on my own machine, then walked through the same actions against the zero trust version.