Security

Security is not a feature you add at the end — it’s a structural property of the architecture. Design it in from the start.


What’s Here

  • security — CIA triad, zero-trust, common security patterns
  • shift-left — Moving security earlier in the delivery lifecycle
  • totp — How TOTP (Google Authenticator-style) works under the hood

CIA Triad

PropertyWhat It MeansExample Control
ConfidentialityOnly authorized accessEncryption at rest, RBAC
IntegrityData not tampered withDigital signatures, checksums
AvailabilitySystem stays upDDoS protection, redundancy

Zero Trust Principles

Never trust, always verify.

Traditional:                       Zero Trust:
"inside the network" = trusted    "identity is the perimeter"
"outside" = untrusted             every request is untrusted by default
  1. Identity is the perimeter — not IP or network location
  2. Least privilege — minimum access required, always
  3. Microsegmentation — divide network into small zones
  4. Inspect all traffic — no “internal” traffic bypass

TopicWhen to Read
totpUnderstanding how2FA / TOTP works
shift-leftIntegrating security into CI/CD
securityDeep dive on patterns and checklist