From 97f07c385178203d88d64a4e27c453d36759f04b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 24 Nov 2026 10:52:59 +0000 Subject: [PATCH] Prepare 0.8.1 release-preparation:cc203cb9432cdf1306e6961b1118139e0096c8f0fd3f40483fda47cd12c063ab --- docs/release-notes/0.8.1.json | 56 +++++++++++++++++++++++++ docs/release-notes/0.8.1.md | 38 +++++++++++++++++ extension.json | 6 +-- services/contributions-api/service.json | 19 ++++++--- services/federation/service.json | 19 ++++++--- services/ingest-heavy/service.json | 7 ++-- services/ingest/service.json | 7 ++-- 7 files changed, 131 insertions(+), 21 deletions(-) create mode 100644 docs/release-notes/0.8.1.json create mode 100644 docs/release-notes/0.8.1.md diff --git a/docs/release-notes/0.8.1.json b/docs/release-notes/0.8.1.json new file mode 100644 index 000000000..3ec05f9c2 --- /dev/null +++ b/docs/release-notes/0.8.1.json @@ -0,0 +1,56 @@ +{ + "imageSourceSha": "92e9b45dd1c6e2df013a0095cb0e4b39ad492334", + "images": { + "contributions-api": { + "buildSourceSha": "92e9b45dd1c6e2df013a0095cb0e4b39ad492334", + "digest": "sha256:4f79cd82038af4877bca038a14f7357d6e151d8f80ef3b2d091868b8bd711055", + "platforms": [ + "linux/amd64" + ], + "provenanceArtifactId": 14911029172, + "qualificationArtifactId": 14910503664, + "repository": "ghcr.io/openconditions/contributions-api", + "sbomArtifactId": 14910503664 + }, + "federation": { + "buildSourceSha": "92e9b45dd1c6e2df013a0095cb0e4b39ad492334", + "digest": "sha256:f78d8a7f16278a2bffd1fe90f58246a99addc269b9060ed10fdc6412cec7895a", + "platforms": [ + "linux/amd64" + ], + "provenanceArtifactId": 14911029172, + "qualificationArtifactId": 14911196947, + "repository": "ghcr.io/openconditions/federation", + "sbomArtifactId": 14911196947 + }, + "ingest": { + "buildSourceSha": "92e9b45dd1c6e2df013a0095cb0e4b39ad492334", + "digest": "sha256:b71815688e8179e70b844aad31dc967698792af30cd5fd53f80a2b56c22d6ed1", + "platforms": [ + "linux/amd64" + ], + "provenanceArtifactId": 14911029172, + "qualificationArtifactId": 14910783899, + "repository": "ghcr.io/openconditions/ingest", + "sbomArtifactId": 14910783899 + }, + "openlr-resolver": { + "buildSourceSha": "92e9b45dd1c6e2df013a0095cb0e4b39ad492334", + "digest": "sha256:6e0d114f5966613e0bdc822fa2751d06df1f7ce085139833fc1d074c9c423450", + "platforms": [ + "linux/amd64" + ], + "provenanceArtifactId": 14911029172, + "qualificationArtifactId": 14911716206, + "repository": "ghcr.io/openconditions/openlr-resolver", + "sbomArtifactId": 14911716206 + } + }, + "producer": { + "runAttempt": 1, + "runId": 45375043796, + "workflowFile": ".github/workflows/ci.yml" + }, + "schemaVersion": 1, + "version": "0.8.1" +} diff --git a/docs/release-notes/0.8.1.md b/docs/release-notes/0.8.1.md new file mode 100644 index 000000000..b43f951f6 --- /dev/null +++ b/docs/release-notes/0.8.1.md @@ -0,0 +1,38 @@ +# Product 0.8.1 + +This release resets the database migration history to one generated baseline and reworks the `conditions` schema before OpenMapX's first production install. 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, or the whole database, and the old `drizzle.__drizzle_migrations_oc` table before starting the ingest service. +- **Set the new required secret `OPENCONDITIONS_SECRETS_KEY`** (64 hex characters, `openssl rand -hex 32`) on the ingest service, the heavy-feeds process, the contributions API and, when enabled, federation. + - Generate it once for the ingest service and copy the same value to the others. Under OpenMapX, enter it on each service's Credentials page. + - The first ingest process to start seals it, and a service with a different key refuses to start. + - Keep it in your recovery set. Under OpenMapX, also keep OpenMapX's own secrets key, which encrypts it in the vault. +- **Create the roles before the ingest service first starts.** + - `openconditions_ingest` owns `conditions` and keeps `CREATE` on the database at every start. The heavy-feeds process and federation connect as this role. + - `openconditions_contributions` is the contributions API's role. + - Give both `search_path = conditions, extensions`. + - At every start the ingest service grants this role, and OpenMapX's `openmapx_tiles_owner`, exactly what they use. A role created later gets its grants at the next ingest start. +- **Rebuild the OpenLR resolver graph.** It now lives in its own schema `openlr`. + +## Changes + +- **Migrations:** only the ingest processes migrate, and the history lives in `conditions.__drizzle_migrations`. The contributions API and federation wait for the schema version, for up to five minutes by default. +- **Encryption:** OAuth tokens and the issuer and federation private keys are stored encrypted with AES-256-GCM. +- **Crowd reporters:** + - They are deleted 12 months after their last activity, with their votes, refusals and quotas. + - Deleting a reporter removes its key from what it reported. + - Several unneeded reporter columns are gone. +- **Schema conventions:** + - Every constraint and index follows one naming convention. + - Identity ids replace `bigserial`. + - Closed value sets are checked. + - The observation tables store fixed-width columns first. +- **Retention:** a series' history is read and purged within its current retention, across retention classes. +- **Ordering:** SMN messages come back in a deterministic order. +- **API:** `/feeds/status` no longer reports `unknownStatus`. + +Compatibility details, every schema difference and the deferred items are in `docs/release-notes/database-baseline.md` and pull request #455. + +Deploy together with OpenMapX releases that contain OpenMapX/openmapx#1079. diff --git a/extension.json b/extension.json index 57bfc56de..c7df85bce 100644 --- a/extension.json +++ b/extension.json @@ -1,7 +1,7 @@ { "id": "openconditions", "name": "OpenConditions — Road & Traffic Conditions", - "version": "0.1.5", + "version": "0.8.1", "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": "Apache-2.0", @@ -9,12 +9,12 @@ "services": [ { "repo": "https://github.com/OpenConditions/openconditions", - "ref": "v0.1.5", + "ref": "v0.8.1", "service": "openconditions-ingest" }, { "repo": "https://github.com/OpenConditions/openconditions", - "ref": "v0.1.5", + "ref": "v0.8.1", "service": "openconditions-contributions-api" } ] diff --git a/services/contributions-api/service.json b/services/contributions-api/service.json index 4108e8c20..1f194775a 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.1.0", + "version": "0.8.1", "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", "license": "AGPL-3.0-or-later", @@ -10,9 +10,13 @@ "quality": "community-verified", "container": { "image": "ghcr.io/openconditions/contributions-api", - "tag": "latest", - "expose": [4200], - "networkAliases": ["openconditions-contributions-api"], + "tag": "0.8.1", + "expose": [ + 4200 + ], + "networkAliases": [ + "openconditions-contributions-api" + ], "environment": { "PORT": "4200", "HOST": "0.0.0.0" @@ -33,9 +37,12 @@ "timeout": "5s", "retries": 5, "startPeriod": "30s" - } + }, + "digest": "sha256:4f79cd82038af4877bca038a14f7357d6e151d8f80ef3b2d091868b8bd711055" }, - "provides": ["openconditions/crowd-reports-api"], + "provides": [ + "openconditions/crowd-reports-api" + ], "ownsSchema": "conditions", "ui": { "category": "data" diff --git a/services/federation/service.json b/services/federation/service.json index 7979b95d6..d184b3e3a 100644 --- a/services/federation/service.json +++ b/services/federation/service.json @@ -1,7 +1,7 @@ { "id": "openconditions-federation", "name": "OpenConditions Federation", - "version": "0.1.0", + "version": "0.8.1", "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", "license": "AGPL-3.0-or-later", @@ -10,9 +10,13 @@ "quality": "community-verified", "container": { "image": "ghcr.io/openconditions/federation", - "tag": "latest", - "expose": [4300], - "networkAliases": ["openconditions-federation"], + "tag": "0.8.1", + "expose": [ + 4300 + ], + "networkAliases": [ + "openconditions-federation" + ], "environment": { "PORT": "4300", "HOST": "0.0.0.0", @@ -35,7 +39,8 @@ "timeout": "5s", "retries": 5, "startPeriod": "30s" - } + }, + "digest": "sha256:f78d8a7f16278a2bffd1fe90f58246a99addc269b9060ed10fdc6412cec7895a" }, "volumes": [ { @@ -45,7 +50,9 @@ "readOnly": false } ], - "provides": ["openconditions/federation"], + "provides": [ + "openconditions/federation" + ], "ownsSchema": "conditions", "ui": { "category": "data" diff --git a/services/ingest-heavy/service.json b/services/ingest-heavy/service.json index df6d73fef..524f5c443 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.1.0", + "version": "0.8.1", "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", "license": "AGPL-3.0-or-later", @@ -10,7 +10,7 @@ "quality": "community-verified", "container": { "image": "ghcr.io/openconditions/ingest", - "tag": "latest", + "tag": "0.8.1", "environment": { "PORT": "4100", "HOST": "0.0.0.0", @@ -38,7 +38,8 @@ "timeout": "5s", "retries": 5, "startPeriod": "30s" - } + }, + "digest": "sha256:b71815688e8179e70b844aad31dc967698792af30cd5fd53f80a2b56c22d6ed1" }, "volumes": [ { diff --git a/services/ingest/service.json b/services/ingest/service.json index d6f49da98..9b37e070c 100644 --- a/services/ingest/service.json +++ b/services/ingest/service.json @@ -1,7 +1,7 @@ { "id": "openconditions-ingest", "name": "OpenConditions Ingest", - "version": "0.1.0", + "version": "0.8.1", "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", "license": "AGPL-3.0-or-later", @@ -10,7 +10,7 @@ "quality": "community-verified", "container": { "image": "ghcr.io/openconditions/ingest", - "tag": "latest", + "tag": "0.8.1", "expose": [ 4100 ], @@ -41,7 +41,8 @@ "timeout": "5s", "retries": 5, "startPeriod": "30s" - } + }, + "digest": "sha256:b71815688e8179e70b844aad31dc967698792af30cd5fd53f80a2b56c22d6ed1" }, "volumes": [ {