The Tor relays on AS215248 each carry a ContactInfo string, and that string is free text. Nothing stops a stranger from putting my domain in theirs. For a network that lives on trust, an operator claim anyone can make is not worth much.
A claim the domain has to confirm
The ContactInfo Information Sharing Specification
fixes this with an Authenticated Relay Operator ID (AROI). The relay says which domain
it belongs to and how to verify that; the domain then has to agree. With the
proof:uri-rsa method from version 2 of the spec, agreement is a plain text file at a
fixed path:
https://as215248.net/.well-known/tor-relay/rsa-fingerprint.txt
One 40-character RSA fingerprint per line, one line per relay. A relay whose fingerprint is on that list, served from the domain it names, is verifiably operated by whoever controls that domain. A relay that names the domain but is missing from the list is not.
Version 3: one ID instead of a list
While writing this up I found the spec has moved on. Version 3 drops the RSA methods in
favour of Tor’s newer happy families: all relays share one family key, and the domain
publishes just the public family ID at /.well-known/tor-relay/ed25519-family-id.txt.
That is a far better shape — adding a relay no longer means editing a list on the website,
because the relay proves membership with the family key itself.
The relays already run a Tor version that supports happy families, so they now share one family key and point at the version 3 proof:
https://as215248.net/.well-known/tor-relay/ed25519-family-id.txt
The RSA list stays up as well. It costs nothing, and tools that still read version 2 can use it.
Make it impossible to break quietly
These files are tiny, and that is exactly the risk. If a rebuild drops one, or a stray line sneaks in, every relay loses its verified status and nothing on the site looks any different. So the build now checks them:
- both files must exist in the built output;
- the family file must hold a 43-character public family ID — the public half only, never the secret key;
- every non-comment line of the RSA list must be an uppercase 40-hex fingerprint, with no duplicates;
- any relay that Onionoo reports on AS215248 but that is missing from the list is a warning, not a failure.
That last one is deliberate. The list is maintained by hand because it is my statement about which relays are mine; generating it from Onionoo would just repeat back whatever the relays say about themselves. The warning makes sure a new relay gets added, without letting a third-party API decide what I vouch for.
Both have to stay plain text: text/plain, no redirect to another host, and never the
HTML of a fallback page. Caddy’s file server does that out of the box for a .txt file.