Prepare to recover
Security & reliability
Plan a small website backup around source, configuration, changing data and a verified, isolated restore.
- procedure
Back up a small website
Plan a recoverable small-site backup that includes deployable source, configuration, changing data and a tested restore.
Explore the idea - comparison
Recovery point objective vs recovery time objective
RPO limits tolerated data loss as a time interval. RTO targets the duration of disruption before agreed service capability returns. The two goals measure different recovery outcomes.
Explore the idea - procedure
What a restore test actually proves
A restore test establishes only the recovery checks and conditions it actually exercises. A completed backup job alone does not prove usable data, dependencies or application behavior can be restored.
Explore the idea - concept
Principle of least privilege
Least privilege means granting only the permissions required for a defined task, scope, and period.
Explore the idea - concept
Content Security Policy basics
Content Security Policy restricts certain browser resource loads and script execution. It is a defense-in-depth control, not a replacement for preventing injection in application code.
Explore the idea - comparison
MFA and phishing-resistant authentication
MFA does not automatically stop phishing: a typed OTP can be relayed. An origin-bound passkey resists that path when relying-party and origin checks are correct; MFA qualification is a separate question.
Explore the idea - procedure
Secrets management for web applications
Keep credentials out of repositories and public client output. After exposure, deleting a visible copy is not enough: authorized revocation or rotation and verification are separate tasks.
Explore the idea - concept
Connection tracking state and firewall decisions
A packet can be NEW whether a firewall allows it or denies it. Follow a Linux Netfilter example from packet observation to tracking label to filter verdict, and see which conclusions the label cannot support.
Explore the idea - concept
nftables hooks, priorities and multiple chains
Follow a packet through two nftables base chains at one hook. Changing a priority can change which verdicts the packet reaches, even when the result is still a drop.
Explore the idea - troubleshooting
Firewall rule shadowing in one ordered chain
To tell whether a later firewall rule is shadowed, look for traffic it could still match after earlier terminal verdicts in the same chain. Even one remaining class makes the difference.
Explore the idea - concept
TLS 1.3 transcript binding and key schedule
TLS 1.3 Finished checks whether the sender used the expected secret material with the expected handshake transcript. It does not tell the client, by itself, that the certificate identifies the intended site.
Explore the idea - concept
TLS 1.3 early data and replay constraints
TLS 1.3 early data lets a request go out sooner, but encryption alone does not prevent replay. Compare what two accepted copies mean for an operation that can repeat and one that must not.
Explore the idea - concept
Certificate Transparency inclusion versus trust
A CT inclusion proof ties a certificate entry to a particular log tree. It does not tell you whether the chain is trusted, the hostname matches, or the evidence satisfies your client's CT policy.
Explore the idea - concept
HTTP message framing ambiguity and request smuggling
When an edge proxy sees one HTTP request and a backend sees two, they disagree about where a request ends. Compare their boundary decisions and learn when rejection, rather than a count, is the right result.
Explore the idea - concept
OAuth PKCE binding during authorization-code exchange
PKCE binds an authorization code to a request-specific verifier. See why the code alone is not enough, and why even a matching verifier does not guarantee a token.
Explore the idea - troubleshooting
JWT issuer and audience validation
A JWT can have a valid signature and still be meant for another API. Compare two recipients to see how issuer, audience, and expiry checks determine eligibility without granting access.
Explore the idea - concept
WebAuthn relying-party and origin binding
A passkey signature ties an assertion to its data. The relying party still has to decide whether that data matches its expected origin, RP ID, challenge, and credential.
Explore the idea - comparison
Password hashing salts and work factors
Salts determine whether a password-hash calculation can be reused across accounts. Work factors determine the resources each calculation requires. Neither makes a predictable password less predictable.
Explore the idea - concept
AEAD nonce reuse and authenticated encryption boundaries
A valid tag does not prove a nonce was used only once. Compare two encryptions to see when a key-and-nonce pair repeats, and why the absence of a repeat in one pair is a much narrower finding.
Explore the idea - procedure
Reproducible builds and artifact provenance
Compare the exact build inputs and output bytes to assess reproduction. To assess origin, verify the provenance statement for that artifact. A matching digest alone does not identify the builder.
Explore the idea
A saved file or snapshot is not the same as tested restoration. Determine what would be missing during a recovery, then check the complete procedure safely.