Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Build
Start
Reference code
Tools
API reference
Public services
Agents
Bindings and crosswalks

Discovery (reference service)

Source services/public-services/README-discovery.md

On this page
  1. Reference snapshot
  2. Authorities in the snapshot
  3. The well-known document
  4. API

Serves this authority’s /.well-known/obsp document, keeps a federated index of other authorities, and resolves authority-form UNIs, after draft OIP-0016. Code: obsp_public/discovery.py. API: obsp-discovery.openapi.yaml.

Function Rules
GET /.well-known/obsp serves the operator’s AuthorityDocument as given (application/json). The service refuses to start if the document fails the draft schema, has expired, is issued in the future, or carries a signature that does not verify with a key it lists (DSC-4, DSC-9)
Index fetches only the authorities on the operator’s allow-list (--peers, DSC-5, SOV-1), from https://<host>/.well-known/obsp (for did:web:<host>, the same host); no redirect, 64 KiB limit, 5 s timeout, application/json only. A fetched document is kept only if it validates, names the authority asked for (DSC-3), has not expired, has a sequence not lower than the held one (an equal sequence must be the same document), verifies when signed, and is not an unsigned successor of a signed document (DSC-9). A refused or unreachable fetch keeps the held document
Offline mode --offline: nothing is fetched; pinned documents ("pinned": "<file>" in the peers file) seed the index and are checked the same way
GET /v1/resolve?uni= parses uni:<kind>:<local> and uni:<authority>:<kind>:<local> (DSC-1; checked against the 20 UNI vectors of the draft); a default-authority UNI resolves to this authority (DSC-2), any other to the indexed document of its authority, or 404 if that authority is not on the allow-list or has no valid document. Resolution never fetches and never rewrites the UNI
POST /v1/crawl operator token; crawls every allow-listed authority or one (403 for an authority off the list)

The peers file is a JSON list: [{"authority": "alpha.example.org", "pinned": "alpha.json"}, ...]. A baseUrl may replace the https origin; plain http is accepted only for a loopback address and only with --allow-loopback-http, for local tests. Host names are not pinned to addresses: an operator who allows a name trusts its resolution and TLS.

Not implemented: the key-record references of an authority document are not fetched (only its JWK set is used), and a new document’s signing key is not required to appear in the previous document (key continuity is an open point, see the threat note: docs/security/service-discovery.md).

Reference snapshot

Snapshot of the public reference services run locally with published TEST keys. It shows the shapes the services answer with; it is not the record of any deployed service.

Example records only: no implementation is listed in IMPLEMENTATIONS.md, and a level shown here is a test value, not a level reached.

Authorities in the snapshot

AuthorityIndexedLast crawlDigest
alpha.example.orgyesacceptedsha256:f22dc5318cbe…

The well-known document

What /.well-known/obsp answers on a host that runs the protocol: its protocol versions, profiles, policies, identifier kinds and keys.

FieldValue
Protocol versionsobsp/0.1
ProfilesOBSP-GRID, OBSP-SOV
Identifier kindssite, node, sensor-passport, obs, trigger, key
{
  "apiVersion": "obsp/authority-document/v3.1",
  "authority": "beta.example.org",
  "contact": {
    "form": "https://beta.example.org/contact"
  },
  "endpoints": {
    "gateway": "https://gw.beta.example.org/obsp/v1",
    "revocations": "https://status.beta.example.org/v1/lists",
    "transparencyLog": "https://log.beta.example.org/"
  },
  "expires": "2027-02-19T09:03:21Z",
  "issuedAt": "2026-11-20T09:03:21Z",
  "keys": {
    "jwks": {
      "keys": [
        {
          "alg": "Ed25519",
          "crv": "Ed25519",
          "kid": "uni:key:test-authority-beta",
          "kty": "OKP",
          "use": "sig",
          "x": "o21_GLtkknBTPf2bGhMuE7p-8TgCoDMG9chsO1YqwN4"
        }
      ]
    }
  },
  "kind": "AuthorityDocument",
  "policies": [
    {
      "digest": "sha256:6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f6f",
      "kind": "DATA",
      "uri": "https://observatory.example.org/policies/data"
    },
    {
      "kind": "PRIVACY",
      "uri": "https://observatory.example.org/policies/privacy"
    }
  ],
  "profiles": [
    "OBSP-GRID",
    "OBSP-SOV"
  ],
  "protocolVersion": "obsp/0.1",
  "protocolVersions": [
    "obsp/0.1"
  ],
  "schemaVersion": "3.1.0",
  "sequence": 1,
  "signature": {
    "alg": "ed25519",
    "canonicalization": "JCS",
    "format": "COSE_Sign1",
    "kid": "uni:key:test-authority-beta",
    "payloadDigest": "sha256:2ecc2cb00fd681c8eb3b549779e8fda1e201211478dea3dae745489fa0f7b7bf",
    "protected": "ogEyBFgbdW5pOmtleTp0ZXN0LWF1dGhvcml0eS1iZXRh",
    "signature": "496hogH5Xxmj54vl0caa4zwcB0fzdtDNU8eGtZG6sP7Na5KMPxxRkDrqynA5Ekas8sNQgx95BKqxae7yDwBiCg"
  },
  "uniKinds": [
    "site",
    "node",
    "sensor-passport",
    "obs",
    "trigger",
    "key"
  ]
}

API

The API document: every operation and object of this service.