security

  • A vendored file with a licence header and a test

    Copying two hundred lines out of a dependency, and the three things that make that legitimate rather than theft. The licence file, the upstream commit hash and the…

  • The registry we ran ourselves for three weeks

    A rate limit hit at 09:00 every weekday, a pipeline failing intermittently for two months, and the wrong one of three options tried first.

  • An ssh certificate instead of an authorized_keys file

    Adding a person meant editing a file on eleven hosts, and removing one meant remembering to. The eight-hour validity is what makes revocation mostly unnecessary — a departed…

  • Rate limiting per key rather than per address

    A limit keyed on the client address, and four integrators behind one corporate gateway sharing a quota. Keying on the credential is the only fair unit when consumers…

  • json_validate on a webhook body before anything else

    A webhook endpoint accepting bodies up to eight megabytes, and the signature check running after the decode. Validating before decoding costs one pass over the string and allocates…

  • The certificate that renewed itself and nobody verified

    A renewal job that had been running successfully for two years, and a certificate that had been served from a stale copy for the last three months. Monitoring…

  • Four credentials that existed on one laptop

    An inventory of what a second person would need, produced by asking one person to stop using their own machine for a day. The DNS account is the…

  • The dependency we vendored

    A 200-line package with 41 transitive dependencies, doing one thing, and an advisory in something four levels down that we had never heard of.

  • Reproducing a build from six months ago

    A security question about a release from July, and no way to rebuild it. The same commit produces a different image, and neither of them is wrong.

  • An idempotency key on a POST, documented

    A client that retried a timed-out payment request and created two, and no way for them to have avoided it. The conflict case is the part that has…