Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions docs/release-notes/0.8.1.json
Original file line number Diff line number Diff line change
@@ -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"
}
38 changes: 38 additions & 0 deletions docs/release-notes/0.8.1.md
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 3 additions & 3 deletions extension.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"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",
"homepage": "https://github.com/OpenConditions/openconditions",
"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"
}
]
Expand Down
19 changes: 13 additions & 6 deletions services/contributions-api/service.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
Expand All @@ -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"
Expand Down
19 changes: 13 additions & 6 deletions services/federation/service.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -35,7 +39,8 @@
"timeout": "5s",
"retries": 5,
"startPeriod": "30s"
}
},
"digest": "sha256:f78d8a7f16278a2bffd1fe90f58246a99addc269b9060ed10fdc6412cec7895a"
},
"volumes": [
{
Expand All @@ -45,7 +50,9 @@
"readOnly": false
}
],
"provides": ["openconditions/federation"],
"provides": [
"openconditions/federation"
],
"ownsSchema": "conditions",
"ui": {
"category": "data"
Expand Down
7 changes: 4 additions & 3 deletions services/ingest-heavy/service.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -38,7 +38,8 @@
"timeout": "5s",
"retries": 5,
"startPeriod": "30s"
}
},
"digest": "sha256:b71815688e8179e70b844aad31dc967698792af30cd5fd53f80a2b56c22d6ed1"
},
"volumes": [
{
Expand Down
7 changes: 4 additions & 3 deletions services/ingest/service.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -10,7 +10,7 @@
"quality": "community-verified",
"container": {
"image": "ghcr.io/openconditions/ingest",
"tag": "latest",
"tag": "0.8.1",
"expose": [
4100
],
Expand Down Expand Up @@ -41,7 +41,8 @@
"timeout": "5s",
"retries": 5,
"startPeriod": "30s"
}
},
"digest": "sha256:b71815688e8179e70b844aad31dc967698792af30cd5fd53f80a2b56c22d6ed1"
},
"volumes": [
{
Expand Down
Loading