ADR-0041: security.txt names security@ on the mail subdomain, and its expiry is set by hand#

  • Status: accepted. Replaces ADR-0008's publishing no security.txt or CAA iodef, using the address ADR-0037 gave them.
  • Date: 2026-11-29

Context#

RFC 9116 asks a site for one file, at /.well-known/security.txt over HTTPS, served as text/plain; charset=utf-8. Contact is required. Expires is required exactly once, recommended to be less than a year ahead, and a file past it is to be treated as stale. A cleartext OpenPGP signature is recommended.

An earlier version of the site published one. Its contact was a link to the repository's private vulnerability reporting, and the build set Expires a year after each build. It was removed with the site's other links to the repository, and with no mailbox there was nothing honest to name instead (ADR-0008).

Mail on the subdomain changed that. security@mail.testz.dev is one of the RFC 2142 role addresses SES's receipt rule accepts, and the forwarder sends what it receives to the owner.

Setting Expires from the build date meant every deploy pushed it a year out. The date then said when the site was last deployed, not when anyone last checked that the contact reaches a person, which is what the field exists to say.

Decision#

  1. The contact comes from state. site_facts.security_contact is mailto:security@mail.testz.dev while the receipt rule accepts that address, and null otherwise. With null, the build writes no security.txt, and the deploy's sync deletes any that is there. The apex's CAA iodef names the same address, under the same condition.
  2. Expires is set by hand, in site/templates/security.txt, less than a year ahead, after a test message to the contact has arrived. Moving it is the statement that the address still works. The build refuses a date that has passed or is more than a year ahead, so make site fails once it lapses, and no lapsed file is deployed.
  3. The file holds Contact, Expires, Preferred-Languages: en and a Canonical of its own URL. It is served from the site bucket on the apex, retyped by site-deploy to text/plain; charset=utf-8.
  4. The health check fails a month before Expires. Twice a day it fetches the file without following a redirect, and fails on a status other than 200, another media type or charset, any Contact other than that one address, no Canonical naming its URL, and an Expires that is missing, doubled, not an RFC 3339 date-time, passed, within 30 days, or more than 365 days ahead. It fails, too, unless the CAA record has one iodef, naming that address.

Alternatives considered#

Expires a year after each build, as before. It never lapses while the site is deployed, so it never prompts anyone to check the address.

A scheduled rebuild to renew it. The same flaw, and one more workflow to justify (ADR-0029).

The repository's private vulnerability reporting. A link to the repository, which the site avoids, and one a reporter cannot use while the repository is private.

A personal address. Barred from files by ADR-0011, and a role address outlives a change of who reads it.

The contact written into the template. Simpler, and it could advertise an address SES refuses, if security were dropped from the recipients.

Signing the file. Needs a published OpenPGP key and its protection, and a signed file must be re-signed at every renewal. No key exists.

Consequences#

Positive: reporters have a contact on the domain, and its Expires means someone checked it. A lapse is seen by the health check a month ahead and refused by the build when it happens.

Negative:

  • A renewal at least once a year. Missed, it fails every make check and every deploy until someone renews, which is the point and the cost.
  • Reports reach one person through the forwarder, with no promised response. A message the forwarder cannot pass on is unreadable (ADR-0037), and the public address will draw spam, which is forwarded too.
  • The file is unsigned: only TLS vouches for who published it.
  • Nothing from outside checks that mail to security@ arrives, beyond the test message each renewal sends. The health check makes no SMTP connection.

Neutral: no monthly cost.

Revisit when#

  • The repository goes public: its private vulnerability reporting could be a second Contact, and the health check would allow it.
  • An OpenPGP key is published through Web Key Directory: sign the file and add Encryption.
  • security@ gets more mail than one person reads, or mail on the subdomain is turned off.

Built 2026-12-01 from commit 5f3eb2c4b04f9d8367364b6f4598a05a364e2263. This page was generated from the same source that provisions the infrastructure it describes.