C.W.K.
Stream
Lesson 05 of 05 · published

The Stack Map — Where Everything You Learned Plugs In

~15 min · stack-map, defense-in-depth, summary

Level 0Greenhorn
0 XP0/53 lessons0/14 achievements
0/100 XP to next level100 XP to go0% complete

Final lesson, big picture. Where every piece of this quest sits in a real solo-dev stack.

The layered stack (outside → inside)

LayerWhat it doesQuest reference
1. Network perimeterLimit who can even reach the listening portTrack 3 (bind addresses), Track 4 (Tailscale)
2. Edge defensesWAF, fail2ban, rate limits, geo-blocksTrack 6 (rate limiting, blacklist)
3. Per-request auth gatePIN middleware (or passkey, or OAuth)Track 5 (PIN), Track 10 (passkey/OAuth)
4. Session managementCookies, expiry, revocationTrack 5 + Track 7 (killswitch)
5. Authorization checks"This authenticated user can do this"Track 2 (AuthN vs AuthZ)
6. Data-at-rest encryptionDefense if all of 1–5 failTrack 10 (this lesson)
7. Visibility & responseDashboard, audit, killswitchTrack 8, Track 7
8. Secret hygieneKeep credentials away from LLMs and reposTrack 9

The right subset for you

You don't need every layer. You need the layers that match your threat model:

  • Solo-internal app, Tailscale, low stakes: Layers 1, 3 (PIN), 4, 7. Skip the rest.
  • Solo with partner sharing: Add layer 5 (per-user authZ), layer 8 (everyone uses placeholders).
  • Public-internet exposure: Add layer 2 (WAF, rate limits), upgrade layer 3 (passkeys), layer 6 (encrypt sensitive fields).
  • Paying users: Layer 3 → hosted IdP, layer 7 → real audit retention, formal incident-response runbook.

What you now know

  • Why "I'm nobody" is the dangerous mindset.
  • The exact difference between authentication and authorization.
  • Why 0.0.0.0 is the most consequential line in your config.
  • Tailscale's strengths and the lost-phone window it leaves.
  • How to build a 100-line PIN layer that's actually defensible.
  • Why bcrypt + lockout makes 4-digit PINs survive contact with the internet.
  • How to revoke everything in 15 seconds when it matters.
  • How to make security visible with a dashboard you'll actually look at.
  • Why your AI editor is the biggest secrets-leak surface in your dev loop.
  • When PIN stops being enough and what to add next.

External links

Exercise

For each of your apps, write down which of the 8 stack layers you currently have, and which you've deliberately chosen to skip. The exercise is the explicit list — gaps you've named are gaps you can defend; gaps you haven't named are bugs waiting to happen. Schedule the highest-priority gap as next week's work.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.