example.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <title>Spec — Two-factor authentication for Northwind</title>
  7. <style>
  8. :root {
  9. --bg: #f5f7fa;
  10. --paper: #ffffff;
  11. --ink: #0e1322;
  12. --muted: #5a647a;
  13. --line: #e2e6ee;
  14. --line-strong: #c8cfdb;
  15. --accent: #4a36e3;
  16. --accent-soft: #ece8ff;
  17. --warn: #b8741a;
  18. --positive: #1f8a5a;
  19. --display: 'Charter', Georgia, serif;
  20. --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  21. --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  22. }
  23. * { box-sizing: border-box; }
  24. body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14.5px; line-height: 1.6; }
  25. .page { max-width: 1080px; margin: 28px auto; padding: 0 32px 64px; }
  26. header.top { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  27. .top-left { display: flex; align-items: center; gap: 14px; }
  28. .crumb { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
  29. .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
  30. .pill.draft { background: var(--accent-soft); color: var(--accent); }
  31. .pill.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  32. .top-actions { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); }
  33. .top-actions span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }
  34. h1 { font-family: var(--display); font-size: 42px; line-height: 1.06; letter-spacing: -0.015em; margin: 8px 0 8px; max-width: 22ch; font-weight: 700; }
  35. .summary { font-size: 17px; color: var(--muted); max-width: 64ch; margin: 0 0 28px; }
  36. .meta-row { display: flex; gap: 32px; margin: 14px 0 36px; padding: 16px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
  37. .meta-row span strong { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
  38. section { margin-top: 40px; }
  39. h2 { font-family: var(--display); font-size: 24px; margin: 0 0 4px; letter-spacing: -0.005em; }
  40. h2 small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 4px; line-height: 1.5; letter-spacing: 0; }
  41. /* Problem */
  42. .problem { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-top: 14px; }
  43. .panel { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
  44. .quote { padding: 22px 24px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 6px; }
  45. .quote .body { font-family: var(--display); font-size: 17px; line-height: 1.5; }
  46. .quote .author { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
  47. /* Goals */
  48. .goals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
  49. .goal-list { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
  50. .goal-list h3 { font-family: var(--display); font-size: 16px; margin: 0 0 10px; }
  51. .goal-list h3 .tick { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; margin-right: 8px; font-size: 11px; }
  52. .goal-list h3 .tick.yes { background: var(--positive); color: white; }
  53. .goal-list h3 .tick.no { background: var(--line-strong); color: var(--muted); }
  54. .goal-list ul { padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
  55. /* Metrics table */
  56. table { width: 100%; border-collapse: collapse; margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  57. th, td { padding: 12px 18px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
  58. th { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: #f8fafd; }
  59. tr:last-child td { border-bottom: none; }
  60. td.target { font-family: var(--mono); color: var(--accent); font-weight: 600; }
  61. /* Stories */
  62. .stories { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
  63. .story { padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
  64. .story-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 13px; }
  65. .story-text { font-size: 14.5px; }
  66. .story-text strong { color: var(--accent); }
  67. /* Milestones */
  68. .timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
  69. .step { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; position: relative; }
  70. .step .badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; background: var(--accent-soft); color: var(--accent); }
  71. .step h4 { font-family: var(--display); font-size: 15px; margin: 0 0 6px; }
  72. .step .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 8px; }
  73. .step ul { padding-left: 16px; margin: 0; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
  74. /* Open questions */
  75. .questions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
  76. .question { padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
  77. .question p { margin: 0; font-size: 14px; }
  78. .assignee { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
  79. .avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #8473ff); color: white; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
  80. footer { margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
  81. @media (max-width: 880px) {
  82. .problem, .goals { grid-template-columns: 1fr; }
  83. .timeline { grid-template-columns: 1fr 1fr; }
  84. h1 { font-size: 32px; }
  85. }
  86. </style>
  87. </head>
  88. <body>
  89. <div class="page">
  90. <header class="top">
  91. <div class="top-left">
  92. <span class="crumb">Northwind / Specs / Auth</span>
  93. <span class="pill draft"><span class="pill dot"></span>Draft v0.4</span>
  94. </div>
  95. <div class="top-actions">
  96. <span>Owner · Devon Park</span>
  97. <span>Updated · 22 Oct 2025</span>
  98. <span>Reviewers · 4</span>
  99. </div>
  100. </header>
  101. <h1>Two-factor authentication for the Northwind app.</h1>
  102. <p class="summary">Add TOTP and security-key second factors to the Northwind login flow so enterprise customers can meet their internal controls and we can move from "considered" to "approved" on three pending deals.</p>
  103. <div class="meta-row">
  104. <span><strong>Squad</strong>Identity Platform</span>
  105. <span><strong>Engineering lead</strong>Priya Banerjee</span>
  106. <span><strong>Design lead</strong>Sasha Lin</span>
  107. <span><strong>Target launch</strong>End Q4 (Dec 18)</span>
  108. <span><strong>Effort</strong>~6 eng-weeks</span>
  109. </div>
  110. <section>
  111. <h2>Problem<small>What hurts today, and for whom.</small></h2>
  112. <div class="problem">
  113. <div class="panel">
  114. <p>Three of the last six enterprise security reviews flagged the absence of a second factor as a blocker. Today, password is the only thing standing between a phished credential and a workspace full of customer data — for tenants under SOC 2 Type II expectations that's not just a perception problem, it's a control-plane gap.</p>
  115. <p>It also affects internal staff: every engineer with prod access is on the same auth surface as a marketing-team viewer. We rely on policy, not posture.</p>
  116. </div>
  117. <div class="quote">
  118. <div class="body">"We love the product, but the absence of TOTP came up in two of three security reviews. Add it and we can sign."</div>
  119. <div class="author">— Maya Reddy · CTO, Pioneer Robotics</div>
  120. </div>
  121. </div>
  122. </section>
  123. <section>
  124. <h2>Goals &amp; non-goals<small>What this spec ships, and what we're explicitly leaving for later.</small></h2>
  125. <div class="goals">
  126. <div class="goal-list">
  127. <h3><span class="tick yes">✓</span>Goals</h3>
  128. <ul>
  129. <li>TOTP support (Authy, 1Password, Google Authenticator) for all paid plans.</li>
  130. <li>Security key support (WebAuthn) for Enterprise plans.</li>
  131. <li>Workspace-level enforcement: admin can require 2FA for all members.</li>
  132. <li>Recovery codes — printable, downloadable, regeneratable.</li>
  133. <li>Audit log entries for setup, change, and removal events.</li>
  134. </ul>
  135. </div>
  136. <div class="goal-list">
  137. <h3><span class="tick no">×</span>Non-goals</h3>
  138. <ul>
  139. <li>SMS as a second factor (NIST deprecated; not adding).</li>
  140. <li>SSO replacement — SAML stays a separate workstream.</li>
  141. <li>Per-action step-up (future spec, owned by Identity).</li>
  142. <li>Custom 2FA brand voice for whitelabel deployments.</li>
  143. </ul>
  144. </div>
  145. </div>
  146. </section>
  147. <section>
  148. <h2>Success metrics<small>We'll judge this launch on the three numbers below at the 30 / 60 / 90 day marks.</small></h2>
  149. <table>
  150. <thead><tr><th>Metric</th><th>Baseline</th><th>Target (90d)</th><th>How we measure</th></tr></thead>
  151. <tbody>
  152. <tr><td>Enterprise deals unblocked by 2FA gap</td><td>0 of 3</td><td class="target">3 of 3</td><td>Sales motion notes + signed contract count</td></tr>
  153. <tr><td>Member 2FA adoption (paid workspaces)</td><td>n/a</td><td class="target">≥ 60%</td><td>auth.factor_enrolled events / DAU</td></tr>
  154. <tr><td>Account takeover incidents (rolling 30d)</td><td>4 last quarter</td><td class="target">≤ 1</td><td>Security incident tracker (SEV-3+)</td></tr>
  155. <tr><td>Support load from 2FA recovery</td><td>n/a</td><td class="target">&lt; 1.5% of tickets</td><td>Tagged "auth-2fa" in Zendesk</td></tr>
  156. </tbody>
  157. </table>
  158. </section>
  159. <section>
  160. <h2>User stories<small>Three personas, three motions.</small></h2>
  161. <div class="stories">
  162. <div class="story">
  163. <div class="story-num">1</div>
  164. <div class="story-text">As a <strong>workspace admin</strong>, I want to require 2FA for everyone in my workspace, so that I can pass our annual SOC 2 control review.</div>
  165. </div>
  166. <div class="story">
  167. <div class="story-num">2</div>
  168. <div class="story-text">As a <strong>day-to-day member</strong>, I want to enroll a TOTP app in under two minutes, so that I'm not pulled out of work to reconfigure auth.</div>
  169. </div>
  170. <div class="story">
  171. <div class="story-num">3</div>
  172. <div class="story-text">As a <strong>support engineer</strong>, I want a clear path to help locked-out users without bypassing their second factor, so that we don't undo the security we just added.</div>
  173. </div>
  174. </div>
  175. </section>
  176. <section>
  177. <h2>Rollout milestones<small>Four phases. Each phase ships behind a flag.</small></h2>
  178. <div class="timeline">
  179. <div class="step">
  180. <span class="badge">M1 · Nov 4</span>
  181. <h4>TOTP enrollment</h4>
  182. <div class="meta">2 eng-weeks</div>
  183. <ul><li>Settings page UI</li><li>Recovery codes</li><li>Audit log entries</li></ul>
  184. </div>
  185. <div class="step">
  186. <span class="badge">M2 · Nov 18</span>
  187. <h4>Login flow</h4>
  188. <div class="meta">1.5 eng-weeks</div>
  189. <ul><li>Challenge step in login</li><li>Trusted-device cookie</li><li>Rate limiting</li></ul>
  190. </div>
  191. <div class="step">
  192. <span class="badge">M3 · Dec 2</span>
  193. <h4>WebAuthn + admin enforcement</h4>
  194. <div class="meta">2 eng-weeks</div>
  195. <ul><li>Security keys (Enterprise)</li><li>Workspace policy</li><li>Member nag prompt</li></ul>
  196. </div>
  197. <div class="step">
  198. <span class="badge">M4 · Dec 18</span>
  199. <h4>GA + comms</h4>
  200. <div class="meta">0.5 eng-weeks</div>
  201. <ul><li>Changelog + email</li><li>Help center articles</li><li>Sales enablement</li></ul>
  202. </div>
  203. </div>
  204. </section>
  205. <section>
  206. <h2>Open questions<small>Assigned. We need answers by Friday Oct 31 to keep the date.</small></h2>
  207. <div class="questions">
  208. <div class="question">
  209. <p>Should we let members choose between TOTP and security keys, or pick the strongest available factor for them?</p>
  210. <span class="assignee"><span class="avatar">DP</span>Devon Park · Oct 28</span>
  211. </div>
  212. <div class="question">
  213. <p>Trusted-device cookie lifetime: 7 days, 30 days, or admin-configurable?</p>
  214. <span class="assignee"><span class="avatar">PB</span>Priya Banerjee · Oct 29</span>
  215. </div>
  216. <div class="question">
  217. <p>Do we surface a member's 2FA status in the admin user list, or only in the audit log?</p>
  218. <span class="assignee"><span class="avatar">SL</span>Sasha Lin · Oct 30</span>
  219. </div>
  220. </div>
  221. </section>
  222. <footer>
  223. <span>Northwind Identity Platform · spec-2fa</span>
  224. <span>v0.4 · 22 October 2025</span>
  225. </footer>
  226. </div>
  227. </body>
  228. </html>