skip to content
← cd ../work

case study / Security / full stack

Multi-factor authentication, end to end

Proposed, designed and built MFA across every layer of a SaaS product, then rolled it out where the risk was concentrated first.

my role
Proposer, designer and builder across database, backend, web app, browser extension and infrastructure. Wrote the support runbooks and QA checklist.
stack
ReactTypeScriptAWS LambdaAWS KMSSQLWebAuthn

## Context

A sales communications product holds phone numbers, call recordings and CRM access. That makes its accounts worth stealing, and the internal staff accounts that can act across customer accounts worth even more.

## What I built

  • TOTP authenticator support, with secrets encrypted by a cloud key management service and never stored in plaintext.
  • Email one-time codes and recovery codes, so a lost phone is not a lost account.
  • Passkeys for customers who want phishing-resistant sign-in.
  • Lockout after repeated failures and an audit log of authentication events.
  • Step-up verification for privileged cross-account actions, which ended indefinite privileged access for internal staff.
  • The same flows in the web app and the browser extension.

## Rollout

  1. 01

    Privileged internal users first

    The smallest group with the most access. It shipped to production within weeks of the proposal.

  2. 02

    Per-business policy

    Account owners decide whether their team needs MFA.

  3. 03

    Customer MFA with passkeys

    Available to every customer, opt-in per business, with runbooks for support before the first customer needed help.

## Trade-offs

  • chose: Enforce for privileged staff, opt-in for customers.

    cost: Mandatory everywhere is safer on paper. Opt-in avoided locking sales teams out mid-day and put enforcement where the risk actually was.

  • chose: Encrypt secrets with managed keys instead of the application’s own.

    cost: A dependency on the key service in the login path, in exchange for secrets that are useless if the database leaks.

For the platform rebuild I wrote the authentication decision record, framing build versus buy around the roadmap (OAuth, MFA, passkeys, SSO), migration risk and staffing cost, and built the identity provider foundation and shared frontend auth package.

Details are generalized. Nothing here is proprietary code, customer data or internal metrics.