Secrets & Keys
Handle secrets and keys across their lifecycle: storage, rotation, revocation, and leak response.
Learning path
Handle secrets and keys across their lifecycle: storage, rotation, revocation, and leak response.
Carry out "Rotate API Keys Without Breaking Clients" on a secrets & keys project, pausing at the "Replace a compromised or aging API key with zero unplanned client outages and a clear audit" step to verify "No key is unknown, and high-impact keys have a named owner.".
Next step: Rotate a Leaked Secret Safely
⏱ 0.5h
Execute "Rotate a Leaked Secret Safely" end to end, then repeat the last step with one parameter changed and compare "A new random secret that has never appeared in the repository or logs.".
Prerequisites: Rotate API Keys Without Breaking Clients
Next step: Add Fencing Tokens to Protected Writes
⏱ 0.5h
Run "Every acquisition receives a strictly increasing token." from "Add Fencing Tokens to Protected Writes" and confirm the documented result "Issue a token greater than every previous token when leadership is acquired, for example".
Prerequisites: Rotate a Leaked Secret Safely
Next step: HMAC Generator
⏱ 0.5h
Use "HMAC Generator" on a secrets & keys sample, then check "hmac, crypto, security" against your manual result.
Next step: SHA-256 Hash Generator
⏱ 0.25h
Feed a representative input into "SHA-256 Hash Generator" and verify "text to hash" by hand.
Prerequisites: HMAC Generator
Next step: Security Boundaries in Modern Web Applications
⏱ 0.25h
Compare "Composing the Boundary" with "A practical tour of the browser security model: same-origin policy, CSP, CORS, XSS, and CSRF" in "Security Boundaries in Modern Web Applications" and state which trade-off you would accept in secrets & keys code.
Prerequisites: SHA-256 Hash Generator
Next step: Redact Secrets Before Logging
⏱ 1h
Solve "Redact Secrets Before Logging" for secrets & keys work: turn JSON object: { text: string } into upstream key=[REDACTED] user=bob status=200 and pass both samples.
Next step: Capstone: Secrets & Keys
⏱ 0.42h
Ship "Scope check" from "Build an API Key Management Service", then prove it with the project's test suite and an acceptance note.
Prerequisites: Redact Secrets Before Logging
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h