Multi-page · for working engineers
Security chapter

Security, the engineer's chapter

Most security material is written either for security engineers (who already know) or for executives (who do not write code). This chapter is for the engineer who ships features that authenticate users, store credentials, talk to other services, and who would like to know enough not to be the next post-mortem. The framing throughout is the same one a review uses: draw the trust boundaries, ask what crosses each one, and decide what would have to be true for the crossing to be safe. Most real incidents are not exotic. They are a secret left in a git history, a token that proves less than the code assumed, an input that reached a query unescaped: the same handful of mistakes, made again.

Five sub-pages carry the detail: threat modeling that fits in a working week, secrets management that actually rotates, the authentication primitives and how they compose, the CVE classes you meet in practice, and the small subset of cryptography that working code touches. Each is meant to be read once for the shape of it and kept as a reference for the moment a design review asks the question for real.

Five sub-pages, all live. Pairs with the TLS and PKI material in the networking section and the OAuth / OIDC explainers under how-it-works.


Deep dives

Live