In this section: Build
Start
Reference code
- obsp (C)
- Conformance runner (reference service)
- obsp (Go)
- Plugfests (non-normative groundwork)
- Python reference pipelines (draft profiles, synthetic data)
- obsp-eo
- obsp-model-run (draft OIP-0012, MODEL-OBSERVER)
- obsp-sensing (draft OIP-0011, NETWORK-SENSING, provisional)
- obsp-space
- Rust reference workspace
- Performance bench (WP-RI-11)
- The 0.2 candidate (DRAFT)
- obsp-core (Rust reference library)
- obsp-federation
- obsp-node-embedded
- Node agent (obsp-node)
- Evidence verifier (obsp-verify)
- obsp-sdk (TypeScript / ES modules)
Tools
API reference
- All APIs
- Observatory Protocol service administration (production services)
- Observatory Protocol CloudEvents (draft OIP-0024 binding)
- Observatory Protocol correction subscriptions
- Observatory Protocol credential status (reference service)
- Observatory Protocol discovery (reference service)
- Observatory Protocol exchange API (reference)
- Observatory Protocol federation sync (draft OIP-0004)
- Observatory Protocol Field Topic Contract (MQTT 5 and Sparkplug B)
- Observatory Protocol participant gateway
- gRPC services
- Observatory Protocol implementations and conformance registry (reference service)
- Observatory Protocol transparency log (reference service)
- Observatory Protocol WIS 2.0 notifications (draft OIP-0009 binding)
Public services
Bindings and crosswalks
Discovery (reference service)
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
| Authority | Indexed | Last crawl | Digest |
|---|---|---|---|
alpha.example.org | yes | accepted | sha256: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.
| Field | Value |
|---|---|
| Protocol versions | obsp/0.1 |
| Profiles | OBSP-GRID, OBSP-SOV |
| Identifier kinds | site, 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.
Le document d'API : chaque opération et chaque objet de ce service.