Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs: cover every breaking change since 0.12.0 in the upgrade hazards table

Yudhi Armyndharisf381a50d2d70
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f6d8eeb3e..ea936170f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
+- docs/14's Known Upgrade Hazards table covers every breaking change since 0.12.0 (15 missing rows across 0.14-0.20, including both v0.20.0 config opt-outs); the Redis switch steps now name the real queues.
- `message.received` / `message.sent` WebSocket events shed inline media over `WEBHOOK_MEDIA_INLINE_MAX_BYTES` with the same omitted marker as webhooks; a large blob was broadcast in full to every subscribed socket (and across Redis pub/sub in multi-node).
- The chat-media orphan sweep's `mediaPath IN (...)` lookup is served by a new partial index (`WHERE mediaPath IS NOT NULL`); it was a full messages-table scan per chunk.
- `GET /api/health` audits a presented-but-invalid API key (`API_KEY_AUTH_FAILED`) like every other key-validation surface, rate-bounded per IP; probing through the unthrottled health route was invisible to the audit log.
diff --git a/docs/03-system-architecture.md b/docs/03-system-architecture.md
index c02b5dbfe..afdcd4063 100644
--- a/docs/03-system-architecture.md
+++ b/docs/03-system-architecture.md
@@ -389,7 +389,7 @@ Trimmed to the load-bearing directories — `src/modules/` holds 31 feature modu
is common to all of them; the rest of the shape varies. Most pair a `*.controller.ts` with a
`*.service.ts`, but `events/` is a WebSocket gateway, `mcp/` an MCP server and `queue/` pure BullMQ
wiring (none of the three has either); `docker/` and `status-store/` are service-only; `health/`,
-`infra/` and `settings/` are controller-only; and 8 modules own an `entities/` directory:
+`health/` and `settings/` are controller-only (`infra/` gained `infra-data.service.ts`); and 9 modules own an `entities/` directory:
```
src/
@@ -411,13 +411,11 @@ src/
│ ├── hooks/
│ └── agent-tools/
│
-├── plugins/
-│ └── engines/ # Built-in whatsapp-web.js + baileys engine plugins
-│
├── engine/ # WhatsApp engine abstraction
│ ├── engine.module.ts
│ ├── engine.factory.ts
│ ├── adapters/ # whatsapp-web-js.adapter.ts, baileys.adapter.ts, mappers, stores
+│ ├── builtin/ # Built-in engine plugins: baileys/, whatsapp-web-js/
│ ├── identity/ # Neutral WhatsApp id helpers + lid-mapping store
│ ├── interfaces/ # whatsapp-engine.interface.ts
│ └── types/
diff --git a/docs/08-development-guidelines.md b/docs/08-development-guidelines.md
index 80f3f3271..a3ea9657c 100644
--- a/docs/08-development-guidelines.md
+++ b/docs/08-development-guidelines.md
@@ -11,9 +11,9 @@ openwa/
│ ├── config/ # Runtime config, env validation, bootstrap security, Swagger
│ ├── core/ # Hook and plugin framework
│ ├── database/ # TypeORM data sources and migrations
-│ ├── engine/ # WhatsApp engine abstraction, adapters, identity mapping
+│ ├── engine/ # WhatsApp engine abstraction, adapters, identity mapping,
+│ │ # and the built-in engine plugins (engine/builtin/)
│ ├── modules/ # API feature modules
-│ └── plugins/ # Built-in engine and extension plugins
├── test/ # E2E smoke tests and mocks
├── dashboard/ # React/Vite dashboard
├── sdk/ # Client SDKs: go, java, javascript, php, python
diff --git a/docs/14-migration-guide.md b/docs/14-migration-guide.md
index 1ba2b750a..a7c267f8e 100644
--- a/docs/14-migration-guide.md
+++ b/docs/14-migration-guide.md
@@ -256,7 +256,7 @@ BullMQ stores job data in Redis. When switching Redis instances, pending jobs ma
# Step 1: Check queue status via Bull Board
# Visit: http://localhost:2785/api/admin/queues
-# Step 2: Wait until MESSAGE and WEBHOOK queues are empty
+# Step 2: Wait until the webhook and ingress queues are empty (Bull Board shows webhook-queue and ingress-queue; there is no MESSAGE queue)
# Or check via API:
curl -s 'http://localhost:2785/api/infra/status' \
-H 'X-API-Key: YOUR_KEY' | jq '.queue'
@@ -276,7 +276,7 @@ docker compose up -d
| Built-in → External Redis | ⚠️ | Drain queue first |
> [!WARNING]
-> **Job Loss Prevention**: Always ensure the MESSAGE and WEBHOOK queues are empty before switching Redis instances. Check the `/api/admin/queues` dashboard.
+> **Job Loss Prevention**: Always ensure the `webhook-queue` and `ingress-queue` queues are empty before switching Redis instances (there is no MESSAGE queue). Check the `/api/admin/queues` dashboard.
### Infrastructure Migration Summary
@@ -720,13 +720,28 @@ docker compose run --rm openwa-api npm run migration:run:prod
### Known Upgrade Hazards
-| Release | Change | Action |
-| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `0.12.0` | `PUT /api/plugins/:id/sessions` is a full replacement of the global activation set and now requires an **unrestricted ADMIN** key; a session-scoped key is rejected with `403` whatever it sends | Switch any automation that drives global plugin activation from a scoped key to an unrestricted ADMIN key. The per-session config override route `PUT /api/plugins/:id/config/:sessionId` is unaffected and stays scoped to the addressed session |
-| `0.8.15` | PostgreSQL schemas bootstrapped with `DATABASE_SYNCHRONIZE=true` crash-loop on boot | Self-healing guard migration; see [14.9](#149-troubleshooting-migration-issues) for the large-table window |
-| `0.9.0` | `GET /api/settings` no longer returns the always-zero `general.sessionTimeout` | Remove reads of that field — there is no replacement |
-| `0.10.3` | Boolean/numeric request fields are parsed strictly (`1`, `yes`, `""` now `400`) | Send canonical JSON values; JSON clients and the SDKs are unaffected |
-| `0.10.3` | Status posts pass the `message:sending` plugin gate, with no `chatId` in the input | Branch on `source`/`type` before reading `input.chatId` |
+| Release | Change | Action |
+| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `0.20.0` | With `WEBHOOK_SSRF_PROTECT=false`, deliveries no longer follow redirects, and `SSRF_ALLOWED_HOSTS` entries pin to their resolved addresses (must resolve at registration) | Set `WEBHOOK_SSRF_REDIRECTS=true` for a receiver legitimately behind a 3xx; ensure allowlisted hostnames resolve when the webhook is saved |
+| `0.20.0` | Plugin installs from a URL require a `#sha256=<64 hex>` pin under `NODE_ENV=production` (the compose default) | Pin catalog URLs, or set `PLUGIN_INSTALL_REQUIRE_PIN=false` to lift the requirement |
+| `0.19.0` | Production boot refuses a set `API_MASTER_KEY` shorter than 32 characters | Strengthen a short key before upgrading; unset stays allowed (first boot generates one) |
+| `0.19.0` | `POST /sessions/:id/messages/send-catalog` and `PUT /api/settings` are removed (both always answered `501`) | Drop calls to either; catalog reads and `GET /api/settings` are unchanged |
+| `0.18.0` | `NODE_ENV` outside `production`/`development`/`test` fails boot with a named error | Set a legal value or unset it (unset remains valid) |
+| `0.18.0` | Go SDK: `UpdateWebhookRequest.Secret`/`.Headers` and `UpdateTemplateRequest.Header`/`.Footer` become pointers, plus a `ClearFilters` flag | Take the address of a variable to send a clearing value, or leave nil to keep the stored one |
+| `0.17.0` | Two enabled instances of one plugin sharing a session scope no longer collapse onto a single config | Move shared keys onto each instance when provisioning a second one on the same session |
+| `0.17.0` | `AUDIT_RETENTION_DAYS` is validated at boot as a plain integer | Replace `30d`-style values with plain integers (`0`/negatives keep their documented meaning) |
+| `0.17.0` | Plugins must declare a `storage:use` permission to reach `ctx.storage` | Upgrade the official plugins to the floors listed in the 0.17.0 changelog BEFORE upgrading the gateway |
+| `0.16.0` | `POST /sessions/:id/groups` answers `501` on the whatsapp-web.js engine (the page code it used no longer exists) | Create groups through the Baileys engine |
+| `0.16.0` | Engine calls during a WhatsApp Web page reload answer a retryable `409` naming the reload (previously `500`, or `200 {success:false}` on six chat-write routes); typed 4xx no longer latch the send breaker | Retry the named-reload `409` after the session re-emits `ready` |
+| `0.16.0` | `POST /groups` returns the summary shape (`participantsCount`, not the detail type), and three SDK response shapes were retyped (`ParticipantsResult`, `ContactRecord.pushName`/fields, `sendProduct` → `{id}`) | Adjust typed SDK reads; untyped JSON consumers are unaffected |
+| `0.16.0` | Baileys transport failures (dead socket) propagate as 5xx instead of misclassified `403`/`400`/`404` | Treat 5xx as retryable transport failure; keep 4xx handling for genuine refusals |
+| `0.14.0` | Eager status backfill on session ready is opt-in (`STATUS_SEED_ON_READY`, default off) | Set the flag only after validating the account; live status events are unaffected |
+| `0.14.0` | Link previews are opt-in on the Baileys engine | Pass `linkPreview: true` or a `customLinkPreview` where a card is wanted |
+| `0.12.0` | `PUT /api/plugins/:id/sessions` is a full replacement of the global activation set and now requires an **unrestricted ADMIN** key; a session-scoped key is rejected with `403` whatever it sends | Switch any automation that drives global plugin activation from a scoped key to an unrestricted ADMIN key. The per-session config override route `PUT /api/plugins/:id/config/:sessionId` is unaffected and stays scoped to the addressed session |
+| `0.8.15` | PostgreSQL schemas bootstrapped with `DATABASE_SYNCHRONIZE=true` crash-loop on boot | Self-healing guard migration; see [14.9](#149-troubleshooting-migration-issues) for the large-table window |
+| `0.9.0` | `GET /api/settings` no longer returns the always-zero `general.sessionTimeout` | Remove reads of that field — there is no replacement |
+| `0.10.3` | Boolean/numeric request fields are parsed strictly (`1`, `yes`, `""` now `400`) | Send canonical JSON values; JSON clients and the SDKs are unaffected |
+| `0.10.3` | Status posts pass the `message:sending` plugin gate, with no `chatId` in the input | Branch on `source`/`type` before reading `input.chatId` |
The authoritative list is `CHANGELOG.md`; breaking items are flagged there with ⚠️ **Breaking**.