Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Security · Think Like an Attacker · with code: Go · about 14 min to read

Play it as a journeyTutor comes with a plan

The key that has to change (secrets and key management)

Application Hardening
Application Hardening · Open board

Every place in an app where a habit keeps it safe. One of them is the note taped inside the drawer: the password or key that ends up somewhere a wider audience can read. This lesson is that drawer, opened: where secrets should live, how to lock data so a stolen disk is useless, and how to change a key without stopping the app.

Before you start. Cryptography Foundations gave you symmetric encryption: one secret key locks and unlocks, so whoever holds the key holds the data. Application Hardening said secrets belong in a locked store and never in a config file or a log, without saying how that store works. That is where this lesson starts.

Lesson 17 of 39 in Security

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • November 2016: the key someone posted, and the year it stayed quiet
  • The secrets manager: a locked store that hands keys out, one read at a time
  • Envelope encryption: a data key for the letter, a master key for the envelope
  • Key rotation: every key has to change, and the app cannot stop while it does
  • The day one leaks: revoke first, then rotate, then look
  • The three defences
  • Measured: what rotation rewrites
  • Rotating a credential you cannot rewrap
  • What a real key service adds
  • Remove one defence, watch its test fail
  • A deleted secret, still in history

Terms it explains: secret, secrets manager, data key, master key, KMS, envelope encryption, key rotation, allowlist vs denylist, canonicalize, CVE, fail securely, hardening, input validation, lockfile, masked variable, OIDC-to-cloud, output encoding, SAST/DAST, SBOM, secret scanning, security headers, security misconfiguration, SLSA/sigstore, supply chain.

Review Security