In this section: Learn
Guides
- Guide: choosing and implementing a binding
- Guide: OBSP-COMMUNITY (COMMUNITY)
- Conformance guide
- Guide: OBSP-CONSTELLATION (CONSTELLATION)
- Guide: OBSP-CONSUMER
- Guide: the exchange plane (reference implementation)
- Guide: OBSP-GRID
- Implementers guide
- Guide: OBSP-MOBILE (MOBILE)
- Guide: OBSP-MODEL-OBSERVER (MODEL-OBSERVER)
- Guide: OBSP-NETWORK-SENSING (NETWORK-SENSING, provisional)
- Guide: OBSP-NODE
- Guide: operating the reference stack
- Operators guide
- Guide: OBSP-PROVIDER
- Python SDK: the 0.2 candidate mode (DRAFT)
- Release guide
- Guide: OBSP-SITE
- Guide: OBSP-SOV (operator sovereignty overlay)
- Start here: from a clone to a checked evidence set in 30 minutes
- Guide: the web front ends
Domain packs
- All domain packs
- Agriculture: fields, crops, livestock and stored grain
- Air quality: reference monitors and sensor networks
- Cryosphere: snow, glaciers, permafrost, sea and lake ice
- Greenhouse gases and methane: in-situ, flux and remote sensing
- Health (One Health): environment, animals and people
- Hydrology: river, lake, groundwater and water-quality stations
- Infrastructure: structural health of bridges, dams, tunnels and buildings
- Meteorology: surface synoptic and climate stations (GBON-oriented)
- Ocean: moorings, buoys, profiling floats and coastal stations
- Seismology and geodesy: seismometers, strong motion, GNSS and InSAR
- Space weather: geomagnetism, ionosphere and the solar wind
Participants
- Non-profits, humanitarian organisations, communities and citizen networks
- Device makers
- Enterprises and infrastructure owners
- Governments, agencies and utilities
- Individual experts, developers and students
- United Nations agencies and intergovernmental organisations
- National consortiums, national standards councils and national hosts
- Universities, observatories and research networks
- Managed-service and technology providers
Security and privacy
- Threat note: obsp-mcp (reference Model Context Protocol server)
- Threat note: credential status publisher (reference service)
- Threat note: discovery (reference service)
- Threat note: production public services
- Threat note: implementations and conformance registry (reference service)
- Threat note: transparency log (reference service)
- Supply chain: controls and current status
- Threat model of the Observatory Protocol (version 2)
- Privacy assessments
- Draft privacy impact assessment: COMMUNITY profile (OIP-0017)
- Draft privacy impact assessment: MOBILE profile, person-carried case (OIP-0013)
- Draft privacy impact assessment: NETWORK-SENSING profile (OIP-0011)
- Privacy impact assessment template
Pilot kits
Operations
- Operations
- Capacity scaling
- Capacity plan
- Chaos and resilience experiments
- Data plane
- Deploy
- Error-budget policy
- Game days
- Game day: clock skew
- Game day: disk full
- Game day: federation partition and rejoin
- Game day: replica loss
- Game day: slow or unreachable database
- Incident response
- Key rotation and compromise recovery
- Load and soak testing
- Observability conventions
- Offline site operation
- What the owner must decide
- Restore
- Rollback
- Service-level objectives
- Static web sites
- Supply chain and release hardening: the checks
- Variables
Restore
On this page
Every store of the deployment is an append-only JSON-lines file on its own volume: the gateway (one per replica),
the registry, the log, the conformance runner’s report log and, in dev, the federation service. A store is restored
from a backup object (S3-compatible storage, written by infra/deploy/scripts/backup.sh) or from a volume snapshot.
The tests in tests/test_deploy.py run both scripts against a stand-in object store.
What a backup is
<bucket>/<environment>/<service>/<replica>/<UTC time>-<bytes>.jsonl: the store’s prefix up to its last complete
line when the backup started, and next to it <same name>.manifest.json with the byte count, line count and SHA-256.
The script reads the stored object back and compares digests before it counts the backup as done. Because the store
is append-only, a newer backup contains every older one; older objects are deleted after RETAIN_DAYS.
Restore into a Kubernetes volume
- Pick the object: list
<bucket>/<environment>/<service>/<replica>/and take the newest*.manifest.jsonwhose time is before the event you are recovering from. - Stop writers: for the gateway, first remove the autoscaler (
kubectl -n <ns> delete hpa obsp-gateway; it is re-applied from the rendered manifests in step 5), thenkubectl -n <ns> scale statefulset/obsp-<service> --replicas=0. - Start the restore job with the object name (the rendered job targets ordinal 0; for another replica, edit the claim name in the created Job before it runs):
kubectl -n <ns> create job --from=cronjob/obsp-<service>-restore restore-1 --dry-run=client -o yaml \
| sed 's/REPLACE-WITH-OBJECT-NAME/<object name without .jsonl>/' | kubectl apply -f -
kubectl -n <ns> logs -f job/restore-1
- The job refuses, and changes nothing, when the object’s digest does not match its manifest, or when the store on
the volume is not a prefix of the backup (restoring would drop records). In the second case decide: if the volume’s
store is damaged, re-run with
RESTORE_FORCE=yes; the replaced file stays next to the restored one as<file>.before-restore-<time>and is never deleted by the job. - Scale back up; re-apply the HPA; watch readiness (the gateway replays the whole file on start).
- Records written after the backup are lost from this store. Node agents resend unanswered batches from their outbox; for answered ones, compare with the kept file and ask senders to replay.
Restore from a volume snapshot
Where snapshots.enabled: create a claim from the VolumeSnapshot (dataSource: {kind: VolumeSnapshot, name: ..., apiGroup: snapshot.storage.k8s.io}) named like the StatefulSet’s claim (store-obsp-<service>-<ordinal>) after
deleting the damaged claim with the workload scaled to zero. A snapshot is crash-consistent: check the last line.
Partial last line
After a power loss the store can end in a partial line, and the gateway refuses to start (line N: ...). Backups
never contain one. On the volume (from a debug pod with the volume mounted, workload scaled to zero): copy the file
aside, then cut it after its last newline, for example
head -c "$(( $(wc -c < f) - $(printf '%s' "$(tail -n 1 f)" | wc -c) ))" f > f.cut && mv f.cut f, and keep the copy.
The cut line was never answered to its sender (a write is answered only after it is written).
Plain machines
systemctl stop obsp-<service>, then run /opt/obsp/infra/deploy/scripts/restore.sh as the obsp user with the
variables of /etc/obsp/backup.env and /etc/obsp/backup-<service>.env plus RESTORE_OBJECT (and
RESTORE_FORCE=yes when needed), then systemctl start obsp-<service>.
Restore drill
Monthly in staging, quarterly in production: restore the newest backup of each store into a scratch volume, start the service on it read-only, and compare its line count and SHA-256 with the manifest. Record the time it took; that is the recovery time the SLO discussion (OD-08) needs.