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.txtor CAAiodef, 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#
- The contact comes from state.
site_facts.security_contactismailto:security@mail.testz.devwhile the receipt rule accepts that address, and null otherwise. With null, the build writes nosecurity.txt, and the deploy's sync deletes any that is there. The apex's CAAiodefnames the same address, under the same condition. Expiresis set by hand, insite/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, somake sitefails once it lapses, and no lapsed file is deployed.- The file holds
Contact,Expires,Preferred-Languages: enand aCanonicalof its own URL. It is served from the site bucket on the apex, retyped bysite-deploytotext/plain; charset=utf-8. - 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, anyContactother than that one address, noCanonicalnaming its URL, and anExpiresthat 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 oneiodef, 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 checkand 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.