Repository navigation
Verification and ownership
This article explains part of Radio 2.0 in plain words. It is not normative: where it differs from the specification, the specification is right.
Verification is the rule that decides whether a Radio 2.0 manifest really belongs to the station it describes. The test is simple: the station's own homepage origin must serve or link the manifest. Moves and claims, handled by directories, build on that rule, and the optional locked flag adds extra protection.
| Defined in | Specification 4.2 to 4.4 |
| Members |
manifestUrl, homepage, guid, locked
|
| Unit of trust | The origin of the homepage
|
| Error code |
guid_taken (for APIs that take submissions) |
| Status | Draft |
A publisher may serve the same manifest at several addresses, but manifestUrl names one. A consumer that fetched the manifest from another address must fetch manifestUrl and use that copy. If the two differ in guid, it must discard both. The address compared is the final one after redirects.
Wherever two URLs are compared, they are equal when the scheme and host match without regard to case, ports match (a missing port equals the default), paths and queries match exactly (an empty path equals /), and fragments are ignored.
Both conditions must hold:
- Its
manifestUrlis/.well-known/radio-manifest.jsonon the origin of itshomepage, or the homepage document's HTML link names exactly itsmanifestUrl. - In production,
homepageandmanifestUrlusehttps.
Whoever controls the homepage origin controls the station's manifest. A development-tier manifest is never verified, although a consumer may still apply the first condition and report it passed so publishers can test. Directories should show unverified manifests as unverified, or not list them. A publisher hosting many stations on one origin must not serve the well-known address for more than one of them.
A directory remembers, per guid, the verified manifestUrl and homepage origin it last accepted. When it meets a verified manifest with a known guid at a different manifestUrl:
- Same homepage origin: it must accept the new address.
-
New homepage origin: accepted when the old
manifestUrlanswers 301 or 308 to the new one, or when the manifest still served at the old address names the new one as itsmanifestUrl. -
Otherwise: if
lockedisfalse, a directory may accept the new address after the old one has answered 404 or 410 for at least 30 days. Iflockedistrue, it must not accept without review by a person. - Unverified manifests must never change a stored record.
locked is optional and defaults to false. Set to true, it asks directories never to move the station to a new owner automatically. It only affects the last case above.
When a directory refuses a verified manifest because its guid already belongs to another station, it should say plainly that the guid is taken and that each station must create its own. An API taking submissions should answer with the error code guid_taken. It must not reveal anything about the other station beyond what that station's own manifest publishes.
A temporarily unavailable manifest should be answered with 503 and Retry-After. Consumers must not treat 503 or a network failure as removal. 404 and 410 mean the station no longer publishes at that address.
{
"guid": "3f0c9a52-7e1b-5d24-8c6a-0b9e4f2d7a13",
"manifestUrl": "https://dune.example.com/.well-known/radio-manifest.json",
"locked": true,
"homepage": "https://dune.example.com/"
}Here the manifest sits at the well-known address on the homepage origin, so it passes the first condition.
Radio 2.0 is an open standard, MIT licensed. Documentation: radio2.org. Questions: Discussions.
Overview
The manifest
Discovery and identity
Live data
Money
Implementations and tools
- Implementations
- Reference implementation
- radio2 command line tool
- Create a manifest
- Conformance
- Stations
- Brand and badges
Project
Documentation
Community