Update README for today's security hardening and 2FA work #22
Reference in New Issue
Block a user
No description provided.
Delete Branch "docs/readme-refresh"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Several changes merged today weren't reflected in the README. This brings it back in sync with
main(docs-only, no code changes).What changed
Security section - rewritten from a single paragraph into grouped subsections so today's hardening is actually discoverable:
requireRoleon admin-only endpoints (#10).stage:'totp'challenge flow (#9);express-slow-down+ hard rate cap + per-IP exponential backoff; login honeypot; bot-scoring + automatic IP ban.Environment variables - added the vars that shipped with the hardening but were undocumented:
TRUST_PROXY,DEBUG_TRUST_PROXY,TOTP_ISSUER,TOTP_CHALLENGE_TTL, plusUPLOAD_DIR.Routes & API tables - added
/admin/account(self-service 2FA), theaccount/account/totp/*admin endpoints, and thelogin/totpsecond-factor step.Tech stack & project structure - noted optional TOTP (
speakeasy+qrcode), the newloginProtection/botScoremiddleware, thetotputil, and theAccountadmin view.Verification
Cross-checked every added item against the merged code:
.env.exampleandserver/.env.example.server/src/router/v1/admin/admin.routes.jsandauth/auth.routes.js.speakeasy,qrcode,express-slow-down) againstserver/package.json.Accountview againstclient/src/App.jsxandroutes/admin/views/AccountAdmin.jsx.Docs-only - no runtime impact.
?? Generated with Claude Code