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
Guide: operating the reference stack
On this page
How to run, configure, back up, upgrade and observe the reference stack in infra/: two
gateways (one with the 0.2 candidate switched on), two nodes, a three-peer federation set, the conformance runner,
the offline verifier site, the services site, a TLS front and a metrics collector. It is a reference aid built on one machine, not a
production deployment; what it leaves to the operator is said in each section. For choosing an environment and keeping
sovereignty see the operators guide and the OBSP-SOV guide.
Topology
| Service | Image | Networks | State | Published |
|---|---|---|---|---|
proxy |
obsp/proxy |
edge | none (certificate mounted read-only) | 127.0.0.1:8443 (TLS 1.3) |
gateway |
obsp/gateway |
edge, intake, ops | gateway-store (append-only JSON lines) |
through the proxy: gateway.obsp.test |
gateway-02 |
obsp/gateway, --obsp-0.2 (DRAFT) |
edge, intake, ops | gateway-02-store |
gateway-02.obsp.test |
node-a, node-b |
obsp/node |
intake | node-a-state, node-b-state (outbox, plan state) |
no |
fed-a, fed-b, fed-c |
obsp/federation |
federation (aliases peer-a..peer-c), ops |
in memory | no |
runner |
obsp/conformance-runner |
edge | reference-log (hash-chained, Merkle tree) |
runner.obsp.test |
verifier |
obsp/verifier-site |
edge | none | verifier.obsp.test |
services-site |
obsp/services-site |
edge | none | services.obsp.test |
prometheus |
metrics collector, pinned by digest | ops | prometheus-data (derived, 7 days) |
no |
The intake, federation and ops networks are internal (no route out of the host). Edge is the only network with a route out, because the published port needs it; no service on it makes an outbound call. The nodes and federation peers speak plain HTTP on their internal networks: the reference node agent and federation service have no TLS client (see “What is not covered”).
Configuration reference
The binaries take command-line flags (listed in each crate’s README and --help); the stack sets them in
infra/compose/compose.yaml from the variables below. Unset variables take the default shown.
Stack (compose file)
| Variable | Default | Used by | Meaning |
|---|---|---|---|
OBSP_PROJECT |
obsp |
all | project name: prefix of containers, networks and volumes |
OBSP_TAG |
dev |
all images | image tag built by infra/images/build.sh |
OBSP_BIND |
127.0.0.1 |
proxy | address the TLS port is published on |
OBSP_HTTPS_PORT |
8443 |
proxy, smoke | published TLS port |
OBSP_GATEWAY_FSYNC_EVERY |
1 |
gateways | --fsync-every: sync the store file every n writes (1: every write) |
OBSP_EXCHANGE_SEED |
/opt/obsp/examples/exchange-seed.json |
gateway | --exchange-seed: products, record versions, corrections, systems and alerts of the exchange plane (docs/guides/exchange.md) |
OBSP_MQTT_BROKER |
mqtt:1883 |
gateway | --mqtt-broker: the MQTT 5 broker the exchange publishes to |
OBSP_MQTT_IMAGE |
docker.io/library/eclipse-mosquitto:2.0.22@sha256:81a6…b279 |
mqtt | broker image, pinned by digest; reachable on the edge network only |
OBSP_VERIFIER_UNI |
uni:verifier:stack-gateway-02 |
gateway-02, smoke | --verifier-uni of the 0.2 gateway’s verifier key record |
OBSP_NODE_A_GATEWAY, OBSP_NODE_B_GATEWAY |
http://gateway:8080 |
nodes | gateway base URL each node replays to |
OBSP_RELEASE |
(set by the deploy renderer) | static sites (Kubernetes) | release id of the static site build a pod serves; switching it is the atomic release switch and rollback (infra/deploy) |
OBSP_FED_WRITE_EVERY |
5 |
fed-a | seconds between two writes of the proposing peer |
OBSP_PROMETHEUS_IMAGE |
the pinned digest in the compose file | prometheus | collector image (set to a local mirror’s reference offline) |
OBSP_POSTGRES_IMAGE |
the pinned digest in the compose file | postgres | PostgreSQL with PostGIS image of the data plane |
OBSP_NATS_IMAGE |
the pinned digest in the compose file | nats | NATS JetStream image of the data plane’s event bus |
OBSP_OBJECTS_IMAGE |
the pinned digest in the compose file | objects | S3-compatible object store emulator (local tests only) |
OBSP_OBJECTS_URL |
s3://obsp/objects?endpoint=http://objects:8333&... |
gateway-dp-1, gateway-dp-2 | object store of the data-plane replicas (--objects) |
OBSP_S3_ACCESS_KEY_ID, OBSP_S3_SECRET_ACCESS_KEY |
local (emulator) |
gateway-dp-1, gateway-dp-2 | credentials of the S3-compatible object store |
OBSP_DRILL_ADMIN_URL |
none | make dataplane-restore-test |
administrative PostgreSQL URL for the data-plane backup and restore drill |
Scripts
| Variable | Default | Used by | Meaning |
|---|---|---|---|
DOCKER |
docker |
every script | container client; another one must take the same commands, including compose |
OBSP_STATE_DIR |
infra/compose/.state |
every script | keys, test CA, backups, smoke output |
OBSP_SKIP_BUILD |
0 |
up.sh |
1: use the images already loaded (offline hosts) |
OBSP_WAIT_TIMEOUT |
180 |
up.sh, backup.sh |
seconds to wait for every healthcheck |
OBSP_DOWN_VOLUMES |
0 |
down.sh |
1: also delete the volumes (the append-only stores) |
OBSP_BACKUP_VOLUMES |
the five store volumes | backup.sh |
volumes to back up |
OBSP_BACKUP_ONLINE |
0 |
backup.sh |
1: copy while the writers run (no pause; a trailing partial line is dropped on restore) |
OBSP_TOOL_IMAGE |
obsp/conformance-runner:$OBSP_TAG |
backup.sh, restore.sh |
image whose tar, sh and Python do the copies |
OBSP_SMOKE_ONLY |
all steps | smoke.py |
comma-separated steps to run (tls_front,nodes,read_and_verify,candidate_02,federation,runner,prometheus) |
OBSP_RESTORE_TEST_PORT |
18443 |
restore_test.py |
TLS port of the drill project |
OBSP_OIDC_PORT |
8180 |
platform.yaml, platform-smoke.py |
loopback port of the local OpenID Connect provider of the platform test stack |
OBSP_PLATFORM_LOG_PORT |
8201 |
platform.yaml, platform-smoke.py |
loopback port of the production log service in the platform test stack |
OBSP_PLATFORM_STATUS_PORT |
8204 |
platform.yaml, platform-smoke.py |
loopback port of the production status service in the platform test stack |
OBSP_PROFILES |
empty | every stack script, chaos.py, the nightly jobs |
space- or comma-separated profiles: observability adds compose.observability.yaml, chaos adds compose.chaos.yaml |
Observability profile (compose.observability.yaml, observability.md)
| Variable | Default | Used by | Meaning |
|---|---|---|---|
OBSP_GRAFANA_PORT |
3000 |
grafana | loopback port of the dashboards |
OBSP_TRACE_SAMPLE |
1.0 |
every instrumented service | share of new root traces sampled (OTEL_TRACES_SAMPLER_ARG) |
OBSP_OTELCOL_IMAGE, OBSP_TEMPO_IMAGE, OBSP_LOKI_IMAGE, OBSP_ALERTMANAGER_IMAGE, OBSP_GRAFANA_IMAGE |
pinned digests | the profile’s services | images (a local mirror’s references offline) |
OBSP_PROBER_INTERVAL |
15 |
prober | seconds between probe rounds |
OBSP_PROBER_TARGETS |
every service’s health path | prober | name=url pairs probed for availability |
OBSP_PROBER_CORRECTION_WRITE, OBSP_PROBER_CORRECTION_READ |
http://gateway:8080 |
prober | where the synthetic correction is written, and where it must become visible |
OBSP_PROBER_CORRECTION_EVERY |
60 |
prober | seconds between two synthetic corrections |
OBSP_PROBER_LOG_URL, OBSP_PROBER_LOG_MAX_AGE |
http://translog:8095, 300 |
prober | transparency log probed for signing freshness, and the age a fresh tree head may have |
OBSP_LOG_FORMAT |
unset (json in the profile) |
every instrumented service | json: one JSON line per finished span on standard error |
OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_SERVICE_NAME, OTEL_TRACES_SAMPLER_ARG |
unset (set by the profile) | every instrumented service | OpenTelemetry’s standard variables: OTLP/HTTP collector, service name, sampling ratio |
Chaos profile (compose.chaos.yaml, chaos.md)
| Variable | Default | Used by | Meaning |
|---|---|---|---|
OBSP_CHAOS_STORE_SIZE |
16m |
gateway (chaos profile) | size of the bounded tmpfs store volume the disk-full experiment fills |
OBSP_CHAOS_CLOCK_OFFSET |
0 |
fed-c (chaos profile) | --clock-offset seconds |
OBSP_CHAOS_LOG_CLOCK_OFFSET |
0 |
translog | OBSP_CLOCK_OFFSET_S of the log service |
OBSP_CLOCK_OFFSET_S |
0 |
public services | seconds added to the service’s clock (fault injection only) |
OBSP_CHAOS_DB_UPSTREAM |
gateway:8080 |
db-chaos, chaos.py |
the dependency behind the fault proxy (the data plane’s database when present) |
Load and supply chain (load-testing.md, supply-chain.md)
| Variable | Default | Used by | Meaning |
|---|---|---|---|
OBSP_LOAD_TARGET |
unset | obsp_load.py, smoke.sh |
gateway base URL; unset: make load-smoke builds and starts one |
OBSP_LOAD_SCALE |
smoke |
smoke.sh, load-nightly.sh |
scale of scenarios.yaml |
OBSP_LOAD_PORT |
18480 |
smoke.sh |
loopback port of the locally started gateway |
OBSP_LOAD_BASELINE, OBSP_SBOM_BASELINE |
dist/load-baseline, dist/sbom-baseline |
nightly jobs | the previous run to compare with |
OBSP_GRYPE_IMAGE |
pinned digest | supply_chain.py scan-images |
the vulnerability scanner’s image |
Image builds
| Variable | Default | Used by | Meaning |
|---|---|---|---|
OBSP_BUILD_CA |
unset | build.sh, check-reproducible.sh |
PEM CA of a TLS-intercepting proxy, passed as the build secret build_ca (never in a layer) |
HTTPS_PROXY |
unset | same | passed as a build argument (not kept in the image); the build then uses the host network |
SOURCE_DATE_EPOCH |
1793577600 |
same | fixed time of the build |
OBSP_SYFT_IMAGE |
pinned digest | sbom.sh |
the SBOM scanner’s image |
TMPDIR |
/tmp |
check-reproducible.sh |
scratch space for the two builds |
Inside the images
| Variable | Value | Meaning |
|---|---|---|
OBSP_REPO_ROOT |
/opt/obsp |
where the Rust services and the runner read schemas, registers, the suite and fixtures |
PYTHONPATH |
the SDK, the repository root and the runner, under /opt/obsp |
runner image only |
No variable carries a secret. Keys are files mounted as secrets (next section); a deployment that keeps them in a
secret store references them as secret://<store>/<name> in its own configuration and mounts them the same way.
Key management
| Key | Where it lives | Who reads it | Public part |
|---|---|---|---|
| Node signing keys (Ed25519 seeds) | .state/secrets/node-a.seed.hex, node-b.seed.hex, mounted at /run/secrets/node_key |
obsp-node (signingKey.seedFile in config/node-*/node.json) |
key record published by the node to the gateway (observatory.node.key.published), keyUni from the configuration |
| 0.2 verifier key | .state/secrets/gateway-02-verifier.seed.hex, /run/secrets/verifier_key |
gateway-02 (--verifier-key) |
GET /node-ingest/v0.2/verifier-key |
| Runner report key | .state/secrets/runner-key.json (alg, seed, kid), /run/secrets/runner_key |
runner (--key) |
kid in every signed report; python -m conformance_runner public-key --key <file> prints the public JWK |
| TLS server key | .state/pki/proxy/server.key |
proxy |
server.crt, signed by the test CA |
| Test CA key | .state/pki/ca.key |
nobody at run time | ca.crt (clients pass it explicitly; never add it to a system trust store) |
| Federation identities | none: derived from public seeds 1000 to 1002 (--keys test-fixture) |
fed-* |
key records built by the service |
scripts/init-secrets.sh generates each key once, from the operating system’s random source, into a folder of mode
0700; existing files are kept. The seeds never appear in a variable, a command line, an image or a log. The federation
identities are the federation reference’s test keys: anyone can sign as them, and the stack uses them only because the
reference service has no key loading of its own yet.
Rotation (draft OIP-0008). A key record has a status ACTIVE, ROTATED or REVOKED (REVOKED needs
revokedAt), and verifiers resolve a kid inside their own trust domain and reject revoked keys (SIG-5,
OBS-SIG-0003). To rotate a node key in the stack: write a new seed file, give the node a new keyUni and
validFrom in its node.json, point the secret at the new file and run the node; it publishes the new key record
and signs with the new key from then on. The old key record stays in the gateway’s append-only store, as it must for
old signatures to verify. Publishing the old record again with status ROTATED (or REVOKED and revokedAt after a
compromise) is the step the drafts call for; the reference node and gateway have no operation for it today, so an
operator distributes the changed key record to the verifiers of its trust domain with the evidence sets they check.
The runner key rotates the same way: a new key file with a new kid; keep the old public key to verify old reports
(python3 -m conformance_runner verify --report <report> --jwk <public JWK>). The test CA and the server certificate
last 30 days: scripts/gen-test-ca.sh --force, then restart proxy.
Revocation after a compromise. Stop the node or service, remove the seed file, rotate as above, and record the
compromised key’s revocation (REVOKED, revokedAt) in the key records distributed to verifiers; signatures made
after revokedAt must then fail. Decommissioning a node revokes its identities and wipes or returns its keys
(REQ-5.12-2).
Backup and restore
The append-only stores are the gateways’ JSON-lines files, the runner’s reference log and the nodes’ outboxes. Prometheus data is derived and not kept.
infra/compose/scripts/backup.sh [folder] # default .state/backups/<UTC time>; prints the folder
infra/compose/scripts/restore.sh <folder> [--force]
make stack-restore-test # the drill below
backup.shstops the writers (gateways, runner) for the copy and starts them again, so every file ends on a complete line and the copy is one point in time;OBSP_BACKUP_ONLINE=1copies without the pause. Each volume becomes<volume>.tar.gzwith numeric owners;SHA256SUMSandmanifest.json(line counts per file) sit next to them. The folder is mode 0700: a backup holds what the stores hold.restore.shchecksSHA256SUMS, creates the project’s containers without starting them, stops whatever uses a volume being restored, refuses a volume that already holds data unless--force(restoring over an append-only store drops what was appended since the backup), unpacks, drops a trailing partial line from any JSON-lines file and requires every remaining line to parse, and verifies the reference log’s hash chain and Merkle root. It does not start the stack.- The drill (
scripts/restore_test.py): reads the running stack’s records and log head, backs up, restores into a second project (obsp-restoretest, port 18443), checks that a second restore over the data is refused, starts the restored gateways, runner, verifier and proxy, and requires the same records and the same log tree head; then it deletes the drill project. The running stack keeps serving (it is paused only for the copy).
A gateway rebuilds its state from its store file at start, and the runner its log head from its log file. A node’s outbox decides what it sends again: restoring an older outbox makes the node replay batches the gateway already holds, which it answers as idempotent replays.
Upgrades
- Back up (
backup.sh). - Build the images of the new commit under a new tag (
OBSP_TAG=<new> infra/images/build.sh), and their SBOMs. OBSP_TAG=<new> OBSP_SKIP_BUILD=1 make stack-up: the compose engine recreates the changed services; the volumes stay.OBSP_TAG=<new> make stack-smoke.- To roll back:
OBSP_TAG=<old>,stack-up; when the new version wrote entries the old one cannot read, stop the stack and restore the backup of step 1 with--force.
The store formats are those of the reference crates, not protocol contracts; a change of one is stated in the crate’s README. The 0.2 candidate is DRAFT and its routes and record shapes change with the drafts.
Logs and metrics
Every service logs to standard output (the compose file keeps 3 files of 10 MB per container): the gateways print
their base URL; the federation peers one line per driver event (binding ... installed, joined, lease granted at epoch n, lease renewed, wrote <uni>, counterpart unreachable: PARTITION recorded, counterpart back: reconciled, REJOIN recorded); the nodes a JSON run summary (settled, pending, dispositions); the proxy and the
verifier site one access line per request (address, virtual host, request line, status, bytes, time). No service logs
a request body, a key or a credential.
GET /metrics in the Prometheus text format, on the ops network only (the proxy answers 404 for it):
| Metric | Type | Labels | Service |
|---|---|---|---|
obsp_gateway_requests_total |
counter | family (gateway, ingest, v02, exchange, metrics), class (1xx..5xx) |
gateways |
obsp_gateway_request_seconds_sum |
counter | family |
gateways |
obsp_gateway_store_entries |
gauge | gateways (one entry per recorded write or intake batch) | |
obsp_gateway_build_info |
gauge (1) | version, obsp_0_2 |
gateways |
obsp_gateway_start_time_seconds, obsp_gateway_uptime_seconds |
gauge | gateways | |
obsp_federation_binding_installed, obsp_federation_left |
gauge (0/1) | peers | |
obsp_federation_writes_held, obsp_federation_current_records, obsp_federation_correction_candidates |
gauge | peers | |
obsp_federation_events |
gauge | type (JOIN, LEAVE, PARTITION, REJOIN) |
peers |
obsp_federation_partitioned_peers |
gauge | peers | |
obsp_federation_lease_epoch, obsp_federation_lease_held |
gauge | namespace |
peers |
The gateway also serves obsp_gateway_request_duration_seconds (histogram), obsp_http_responses_total
(operation, class, error_code), obsp_ingest_batch_duration_seconds (histogram), obsp_ingest_events_total
(disposition), obsp_gateway_requests_in_flight and obsp_telemetry_spans_dropped_total; the peers
obsp_federation_peer_contact_age_seconds (peer). With Accept: application/openmetrics-text the answer is
OpenMetrics with a trace exemplar per histogram bucket. The full list, the span conventions, the observability
profile (collector, trace and log stores, alert manager, dashboards, prober) and the objectives are in
docs/ops/observability.md and docs/ops/slo.md.
The endpoints exist when the crates are built with the metrics feature (the images are); the labels are fixed sets
and binding namespaces, never identifiers or content. The runner answers GET /v1/health and GET /v1/log (tree size
and root hash). Health: every long-running container has a healthcheck (docker compose ps).
Threats this stack touches
See the threat model. TH-01 rogue node and TH-02 cloned identity: node seeds are files
readable only through a 0700 folder, and a copied seed signs as the node (the stack has no attestation of its own).
TH-07 poisoned observation: the gateway’s intake verifies every node signature and refuses forged events
(OBS-SIG-0005). TH-09 partitioned federation: the smoke test cuts the parties apart and checks that only the lease
holder writes and that the rejoin loses nothing. TH-15 harvest now, decrypt later: the TLS front offers TLS 1.3 only;
nothing here establishes post-quantum keys.
Offline and sovereign deployment
The stack makes no outbound connection when it runs: the runner’s allow-list names only the two gateways, the
verifier page’s policy refuses every connection (connect-src 'none'), the collector has no remote write, no image
checks for updates, and the internal networks have no route out. To run it on a host with no network:
- On a connected build host (or one with local mirrors of the crate and package indexes, passed through
HTTPS_PROXYandOBSP_BUILD_CA), build the images and their SBOMs and save them:docker save obsp/gateway:dev obsp/node:dev obsp/verify:dev obsp/federation:dev obsp/conformance-runner:dev obsp/verifier-site:dev obsp/proxy:dev <collector image> -o obsp-images.tar, thensha256sum obsp-images.tar. - Carry the archive, its digest, the SBOMs and a checkout of the same commit to the offline host; check the digest;
docker load -i obsp-images.tar. OBSP_SKIP_BUILD=1 make stack-up(keys and the CA are generated on that host and never leave it), thenmake stack-smoke.- For a runner that must make no connection at all, start it with
--offlineinstead of--allow(evidence-set runs, signing and the log keep working).
Every key, certificate, store and backup then stays on that host. Checking that a build needs nothing from its
publisher (no outbound call, no credential, no billing hook, the same digest on rebuild) is what the OBSP-SOV cases
CT-SOV-001 to CT-SOV-010 ask of an implementer; this stack gives inputs for that check (SBOMs, the
reproducibility script), not a result.
What is not covered
- No authentication or authorization: the gateways, the runner and the federation peers have none of their own, and the TLS front adds none. Put the operator’s mutual TLS or OAuth 2.0 in front before exposing anything beyond the loopback interface.
- No TLS between the nodes and the gateway or between the federation peers: the reference node and federation service speak plain HTTP. FED-3 asks for https endpoints in a binding; the federation reference checks that in the binding, not on the wire.
- No key distribution or revocation service, no hardware key custody, no attestation appraisal.
- No high availability: one container per service, stores on local volumes.
- Measured on one host with one container engine; other engines and builders are expected to work from the same files but were not run.