diff --git a/docs/release-notes/0.8.2.json b/docs/release-notes/0.8.2.json new file mode 100644 index 00000000..a66ff4a0 --- /dev/null +++ b/docs/release-notes/0.8.2.json @@ -0,0 +1,56 @@ +{ + "imageSourceSha": "0b8762200fc4050f3a86317f1cd80679033068a5", + "images": { + "contributions-api": { + "buildSourceSha": "0b8762200fc4050f3a86317f1cd80679033068a5", + "digest": "sha256:87c8e548f24910e7fe3cd3ad69844f8f6e01d1d1e9a2d5105cf9f198b3153445", + "platforms": [ + "linux/amd64" + ], + "provenanceArtifactId": 14997882610, + "qualificationArtifactId": 14996834599, + "repository": "ghcr.io/openconditions/contributions-api", + "sbomArtifactId": 14996834599 + }, + "federation": { + "buildSourceSha": "0b8762200fc4050f3a86317f1cd80679033068a5", + "digest": "sha256:9c967786378d0a06f70aa64d9a046a06730ec593a273ca0159c90cab8dacb3bf", + "platforms": [ + "linux/amd64" + ], + "provenanceArtifactId": 14997882610, + "qualificationArtifactId": 14997935943, + "repository": "ghcr.io/openconditions/federation", + "sbomArtifactId": 14997935943 + }, + "ingest": { + "buildSourceSha": "0b8762200fc4050f3a86317f1cd80679033068a5", + "digest": "sha256:e9e7990e2a0ba4455407c1a09e46b741d55d5bb2fbd6833fc11e2e126763792f", + "platforms": [ + "linux/amd64" + ], + "provenanceArtifactId": 14997882610, + "qualificationArtifactId": 14996949189, + "repository": "ghcr.io/openconditions/ingest", + "sbomArtifactId": 14996949189 + }, + "openlr-resolver": { + "buildSourceSha": "0b8762200fc4050f3a86317f1cd80679033068a5", + "digest": "sha256:56575e1bff3216e217ce31530a19f754da4dfa1c979c3b0474ff6c5b268cf19c", + "platforms": [ + "linux/amd64" + ], + "provenanceArtifactId": 14997882610, + "qualificationArtifactId": 14997802006, + "repository": "ghcr.io/openconditions/openlr-resolver", + "sbomArtifactId": 14997802006 + } + }, + "producer": { + "runAttempt": 1, + "runId": 45559966432, + "workflowFile": ".github/workflows/ci.yml" + }, + "schemaVersion": 1, + "version": "0.8.2" +} diff --git a/docs/release-notes/0.8.2.md b/docs/release-notes/0.8.2.md new file mode 100644 index 00000000..1da4284a --- /dev/null +++ b/docs/release-notes/0.8.2.md @@ -0,0 +1,32 @@ +# Product 0.8.2 + +# Product 0.8.2 + +This release settles the database, configuration and crowd protocol before OpenMapX's first production install. It replaces 0.8.1, which was prepared but never published, and includes everything 0.8.1 contained. It needs a fresh database and new operator steps. + +## Action + +- **Start from a fresh database.** A database created by an earlier build is not upgraded. Drop the `conditions` schema (under OpenMapX only that schema) and the old `drizzle.__drizzle_migrations_oc` table before starting the ingest service. +- **Set `OPENCONDITIONS_INSTANCE_ID` on every service before the first start**: ingest, the heavy-feeds process, the contributions API and, when enabled, federation, all to the same lower-case DNS name, usually the instance's public host name. It has no default any more. The first ingest process seals it in the database, every service then refuses another id, and it cannot change later. +- **Set the required secret `OPENCONDITIONS_SECRETS_KEY`** (64 hex characters, `openssl rand -hex 32`) once for ingest and copy the same value to the heavy-feeds process, the contributions API and federation. The first ingest process seals it. Keep it in your recovery set. +- **Under OpenMapX, set `OPENCONDITIONS_RELAY_TOKEN`** (at least 32 characters) on the contributions API to the same value as OpenMapX's own. Relayed enrollments then share one relay limit (`OPENCONDITIONS_RELAY_ENROLL_LIMIT_PER_MINUTE`, default 600) instead of the 10 a minute one address gets. +- **Create the roles before the ingest service first starts**: `openconditions_ingest` (owns `conditions`, keeps `CREATE` on the database; heavy feeds and federation connect as it) and `openconditions_contributions`, both with `search_path = conditions, extensions`. Ingest grants them, and OpenMapX's `openmapx_tiles_owner`, what they use at every start. +- **Rebuild the OpenLR resolver graph.** It lives in its own schema `openlr`. + +## Changes + +- **Migrations:** one generated baseline; only the ingest processes migrate, with the history in `conditions.__drizzle_migrations`. The contributions API and federation wait for the schema version. +- **Instance identity:** a required, sealed instance id (`conditions.instance_identity`), checked as a DNS name in configuration, peer and actor configs. +- **Encryption:** OAuth tokens and the issuer and federation private keys are stored encrypted with AES-256-GCM. +- **Crowd protocol:** every signed report and vote body carries `"v": 1`; others are refused with `400` and `CLAIM_VERSION_UNSUPPORTED`. Clients must sign the new member. +- **Crowd reporters:** deleted 12 months after their last activity, with their votes, refusals and quotas; deleting a reporter removes its key from what it reported. +- **Relay trust:** the contributions API trusts an authenticated relay for its enrollment limit; a wrong bearer is logged without the token or address. +- **Manifests:** every service manifest declares `platform: "1.0"`, `quality: "community"` and `configSchema.required` for what it cannot start without; the extension declares `AGPL-3.0-or-later`. +- **Schema conventions:** one naming convention for constraints and indexes, identity ids, checked value sets, fixed-width columns first. +- **Retention and ordering:** series history is read and purged within its current retention; SMN messages come back in a deterministic order. +- **API:** the ingest OpenAPI document describes the routing, speed and status routes OpenMapX reads, and paths never break. `/feeds/status` no longer reports `unknownStatus`. +- **Federation guide:** the compose example uses OpenMapX's real network and volume names and pins the image to the release tag. + +Details are in `docs/release-notes/database-baseline.md`, `docs/release-notes/pre-launch-contracts.md` and pull requests #455 and #460. + +Deploy together with OpenMapX releases that contain OpenMapX/openmapx#1083. diff --git a/extension.json b/extension.json index b7d0abe2..cc9891c6 100644 --- a/extension.json +++ b/extension.json @@ -1,7 +1,7 @@ { "id": "openconditions", "name": "OpenConditions — Road & Traffic Conditions", - "version": "0.8.1", + "version": "0.8.2", "platform": "1.0", "description": "Live road and traffic conditions as data (DATEX II / OpenLR / Open511 / WZDx) ingested into PostGIS and rendered as a map overlay, with Valhalla road-closure avoidance. Ships the ingestion service and the contributions API, serving the roads, fuel, parking, charging, cameras, hazards, weather, vehicles and border domains; OpenMapX reads all but weather, vehicles and border through its built-in OpenConditions integration and renders the overlay UI.", "license": "AGPL-3.0-or-later", @@ -9,12 +9,12 @@ "services": [ { "repo": "https://github.com/OpenConditions/openconditions", - "ref": "v0.8.1", + "ref": "v0.8.2", "service": "openconditions-ingest" }, { "repo": "https://github.com/OpenConditions/openconditions", - "ref": "v0.8.1", + "ref": "v0.8.2", "service": "openconditions-contributions-api" } ] diff --git a/services/contributions-api/service.json b/services/contributions-api/service.json index a89919fb..9e603d66 100644 --- a/services/contributions-api/service.json +++ b/services/contributions-api/service.json @@ -1,7 +1,7 @@ { "id": "openconditions-contributions-api", "name": "OpenConditions Contributions API", - "version": "0.8.1", + "version": "0.8.2", "platform": "1.0", "description": "Crowd-report intake and evidence lifecycle for road conditions: verifies signed device reports, deduplicates and corroborates co-located phenomena, cross-validates against official feeds, and serves the operator reviewer surface — all over the shared PostGIS `conditions` schema. Peer confirmation never routes or trains reputation on its own; only official-feed cross-validation (and operator resolution) does.", "author": "OpenConditions", @@ -11,7 +11,7 @@ "quality": "community", "container": { "image": "ghcr.io/openconditions/contributions-api", - "tag": "0.8.1", + "tag": "0.8.2", "expose": [ 4200 ], @@ -39,7 +39,7 @@ "retries": 5, "startPeriod": "30s" }, - "digest": "sha256:4f79cd82038af4877bca038a14f7357d6e151d8f80ef3b2d091868b8bd711055" + "digest": "sha256:87c8e548f24910e7fe3cd3ad69844f8f6e01d1d1e9a2d5105cf9f198b3153445" }, "provides": [ "openconditions/crowd-reports-api" diff --git a/services/federation/service.json b/services/federation/service.json index e15b9854..8d389591 100644 --- a/services/federation/service.json +++ b/services/federation/service.json @@ -1,7 +1,7 @@ { "id": "openconditions-federation", "name": "OpenConditions Federation", - "version": "0.8.1", + "version": "0.8.2", "platform": "1.0", "description": "Exchanges road and traffic conditions with pinned peer instances: serves this instance's actor document and signed outbox, takes peers' subscriptions and pushes to their inboxes, lands their records through the same admission as crowd reports, and keeps this instance subscribed to the peers it follows — all over the shared PostGIS `conditions` schema. Off until OPENCONDITIONS_FEDERATION_ENABLED is true; peers reach it only through a public route the operator provides (see docs/federation-onboarding.md).", "author": "OpenConditions", @@ -11,7 +11,7 @@ "quality": "community", "container": { "image": "ghcr.io/openconditions/federation", - "tag": "0.8.1", + "tag": "0.8.2", "expose": [ 4300 ], @@ -41,7 +41,7 @@ "retries": 5, "startPeriod": "30s" }, - "digest": "sha256:f78d8a7f16278a2bffd1fe90f58246a99addc269b9060ed10fdc6412cec7895a" + "digest": "sha256:9c967786378d0a06f70aa64d9a046a06730ec593a273ca0159c90cab8dacb3bf" }, "volumes": [ { @@ -60,7 +60,10 @@ }, "configSchema": { "type": "object", - "required": ["DATABASE_URL", "OPENCONDITIONS_INSTANCE_ID"], + "required": [ + "DATABASE_URL", + "OPENCONDITIONS_INSTANCE_ID" + ], "properties": { "DATABASE_URL": { "type": "string", diff --git a/services/ingest-heavy/service.json b/services/ingest-heavy/service.json index dd9377ea..7ed07d4c 100644 --- a/services/ingest-heavy/service.json +++ b/services/ingest-heavy/service.json @@ -1,7 +1,7 @@ { "id": "openconditions-ingest-heavy", "name": "OpenConditions Ingest (heavy feeds)", - "version": "0.8.1", + "version": "0.8.2", "platform": "1.0", "description": "Optional second OpenConditions ingest process, from the same image: it polls only the feeds its Feeds this process polls setting names (such as nl-ndw-flow and nl-ndw-charging), so their long parses and writes stop delaying the other feeds. It serves no API and runs no maintenance; openconditions-ingest does both and must leave these feeds to it (its Feeds left to another process setting).", "author": "OpenConditions", @@ -11,7 +11,7 @@ "quality": "community", "container": { "image": "ghcr.io/openconditions/ingest", - "tag": "0.8.1", + "tag": "0.8.2", "environment": { "PORT": "4100", "HOST": "0.0.0.0", @@ -40,7 +40,7 @@ "retries": 5, "startPeriod": "30s" }, - "digest": "sha256:b71815688e8179e70b844aad31dc967698792af30cd5fd53f80a2b56c22d6ed1" + "digest": "sha256:e9e7990e2a0ba4455407c1a09e46b741d55d5bb2fbd6833fc11e2e126763792f" }, "volumes": [ { diff --git a/services/ingest/service.json b/services/ingest/service.json index 40d1c9f2..327a766c 100644 --- a/services/ingest/service.json +++ b/services/ingest/service.json @@ -1,7 +1,7 @@ { "id": "openconditions-ingest", "name": "OpenConditions Ingest", - "version": "0.8.1", + "version": "0.8.2", "platform": "1.0", "description": "Fetches open road-condition, fuel-price, parking and EV-charging feeds (NDW, Autobahn, Digitraffic, DriveBC, WZDx, Tankerkoenig, ParkAPI, BNetzA, OCPI and DATEX II charging publishers, and others), normalises them to the canonical model, and writes them to the shared PostGIS `conditions` schema for OpenMapX to read. Also serves public, rate-limited emitter feeds (GeoJSON, TraFF, DATEX II, GTFS-RT, JSON-LD, Valhalla exclusions, SSE).", "author": "OpenConditions", @@ -11,7 +11,7 @@ "quality": "community", "container": { "image": "ghcr.io/openconditions/ingest", - "tag": "0.8.1", + "tag": "0.8.2", "expose": [ 4100 ], @@ -43,7 +43,7 @@ "retries": 5, "startPeriod": "30s" }, - "digest": "sha256:b71815688e8179e70b844aad31dc967698792af30cd5fd53f80a2b56c22d6ed1" + "digest": "sha256:e9e7990e2a0ba4455407c1a09e46b741d55d5bb2fbd6833fc11e2e126763792f" }, "volumes": [ {