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
- Login by one-time codeEach sign-in uses a one-time code and issues a signed session token.
- 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.
- 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.
- 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.
- 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
- 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.
- 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.
- 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.
- 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.