Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

chore: pin compose images, prune unused dep, and fix config/docs drift (#645)

Yudhi Armyndharis3efd85d57b53
diff --git a/.env.example b/.env.example
index 5c27d0214..86fad7f84 100644
--- a/.env.example
+++ b/.env.example
@@ -8,6 +8,10 @@
# CORE SETTINGS
# =============================================================================
NODE_ENV=production
+# Port the app binds to when run directly (bare metal / `npm run start:prod`). In the bundled Docker
+# Compose the container always listens on 2785; the API_PORT below is only the HOST-published port.
+PORT=2785
+# Docker Compose only: the host-side port mapped to the container's 2785 (no effect on a bare-metal run).
API_PORT=2785
LOG_LEVEL=info # error | warn | info | debug
# Console output format. Default: json in production (containers, log aggregators),
@@ -154,6 +158,12 @@ DATABASE_CONNECTION_TIMEOUT_MS=10000 # Fails fast if a new connection can't be a
# =============================================================================
REDIS_ENABLED=false # Enable Redis for queue and caching
REDIS_BUILTIN=false # Use built-in Redis container?
+# Process webhooks/ingress through the BullMQ queue (needs a reachable Redis via REDIS_HOST/REDIS_PORT).
+# Off by default (inline dispatch). In the bundled Docker Compose this is dashboard-managed
+# (Infrastructure > Redis & Queue) — a host value here is not forwarded to the container.
+# QUEUE_ENABLED=false
+# Redis-backed caching, independent of the queue. Off by default (in-memory cache).
+# CACHE_ENABLED=false
# Redis settings (auto-configured if REDIS_BUILTIN=true)
REDIS_HOST=localhost
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 2d11bf060..c3c4b678f 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -46,3 +46,16 @@ updates:
interval: monthly
labels:
- ci
+
+ # Base images (Dockerfile) + the compose stack's pinned images (socket-proxy, postgres,
+ # redis, minio). Keeps the security-critical docker-socket-proxy pin and the datastore
+ # images moving instead of drifting on a stale tag.
+ - package-ecosystem: docker
+ directory: /
+ schedule:
+ interval: weekly
+ day: monday
+ open-pull-requests-limit: 3
+ labels:
+ - dependencies
+ - docker
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 000000000..2bd5a0a98
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+22
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 667d2b969..27f54fe64 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- **Graceful shutdown now drains on `SIGTERM`/`SIGINT`** (rolling deploys, `docker stop`, Ctrl+C), not just on the admin restart endpoint. On a termination signal the app flips readiness to `503` immediately so a load balancer/orchestrator stops routing, keeps serving in-flight requests for a bounded grace window, then tears down and exits deterministically. ⚠️ **Behavior change:** a `docker stop` / redeploy now takes up to the grace window (`SHUTDOWN_DELAY_MS`, default **3s** in production, **0** in dev) plus teardown instead of tearing down instantly, and the process now exits `0` on a clean signal. In Docker set `stop_grace_period` ≥ `SHUTDOWN_DELAY_MS` + your worst-case teardown (the bundled compose now sets `45s`); for Kubernetes set `terminationGracePeriodSeconds` accordingly. A second signal during the drain forces an immediate exit. The whatsapp-web.js engine no longer lets Puppeteer install its own signal handlers (which previously killed Chromium at signal time / `exit(130)` before the drain could run).
+- **The bundled Docker Compose stack pins its `docker-socket-proxy` and `minio` images to explicit tags** (they were on `:latest`) for reproducible, non-drifting deploys, and a Dependabot `docker` ecosystem was added so base and stack images keep receiving update PRs. A Node `>=22` `engines` floor + `.nvmrc` were declared, and the transitive install-time Scarf telemetry (via `swagger-ui-dist`) is disabled.
### Fixed
@@ -17,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **A fatal uncaught exception is now written to the structured log** (with its stack and origin) before the process exits, instead of only a raw stack on stderr that the log pipeline missed. This is observe-only: the crash-and-restart posture is unchanged (the container restart policy still fires and the process never continues on corrupted post-exception state).
- **`POST /infra/import-data` no longer swallows a genuine database error while clearing tables.** The table-clearing step tolerated only a genuinely-absent table but previously used a blanket catch, so an I/O/lock error (or an aborted transaction) could let a restore commit a *merged* rather than *replaced* dataset on SQLite. Such errors now surface and roll the whole import back (a real fault returns a `500` carrying the actual cause); the intended tolerance for a missing table is preserved.
- **A session no longer schedules a reconnect while the process is shutting down** — a disconnect during the drain window would otherwise launch a fresh Chromium racing the shutdown teardown. The session is left `DISCONNECTED` (a later start / auto-restore re-initializes it cleanly).
+- **Documentation & config accuracy.** `.env.example` now documents `PORT` (the port the app binds to on bare metal) distinctly from the Compose-only host-published `API_PORT`, and adds the `QUEUE_ENABLED`/`CACHE_ENABLED` toggles. `SECURITY.md`'s supported-versions table and the Java SDK install snippets are refreshed to the current releases. The unused `uuid`/`@types/uuid` dependency was removed, and stale "not yet wired" comments on the plugin ingress-manifest validation (which the loader has called since it shipped) were corrected.
## [0.8.9] - 2026-07-06
diff --git a/SECURITY.md b/SECURITY.md
index 5e57e8097..20d72feef 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -10,8 +10,8 @@ Security fixes land on the latest minor release. Please upgrade older deployment
| Version | Supported |
| ------- | ------------------ |
-| 0.2.x | :white_check_mark: |
-| < 0.2 | :x: |
+| 0.8.x | :white_check_mark: |
+| < 0.8 | :x: |
## Reporting a vulnerability
diff --git a/docker-compose.yml b/docker-compose.yml
index 67bab54ec..5766d5fd5 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -4,7 +4,7 @@
services:
# ===== CORE: Docker Socket Proxy (sole container with /var/run/docker.sock access) =====
docker-proxy:
- image: tecnativa/docker-socket-proxy
+ image: tecnativa/docker-socket-proxy:v0.4.2
container_name: openwa-docker-proxy
restart: unless-stopped
# Only on the isolated internal network — reachable solely by openwa-api, NOT the
@@ -234,7 +234,7 @@ services:
# ===== OPTIONAL: Built-in MinIO (S3-compatible) =====
minio:
- image: minio/minio
+ image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: openwa-minio
profiles: ['minio', 'full']
restart: unless-stopped
diff --git a/package-lock.json b/package-lock.json
index cb6d84e72..750761fe7 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -45,7 +45,6 @@
"tar-stream": "^3.2.0",
"typeorm": "^0.3.29",
"undici": "^8.7.0",
- "uuid": "^14.0.1",
"whatsapp-web.js": "^1.34.7",
"zod": "^4.4.3"
},
@@ -65,7 +64,6 @@
"@types/qrcode": "^1.5.5",
"@types/supertest": "^6.0.2",
"@types/tar-stream": "^3.1.4",
- "@types/uuid": "^11.0.0",
"concurrently": "^10.0.3",
"eslint": "^10.6.0",
"eslint-config-prettier": "^10.0.1",
@@ -81,6 +79,9 @@
"tsconfig-paths": "^4.2.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.62.1"
+ },
+ "engines": {
+ "node": ">=22"
}
},
"node_modules/@angular-devkit/core": {
@@ -646,6 +647,7 @@
"integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@babel/code-frame": "^7.29.0",
"@babel/generator": "^7.29.0",
@@ -1151,6 +1153,7 @@
"resolved": "https://registry.npmjs.org/@bull-board/api/-/api-8.1.0.tgz",
"integrity": "sha512-RLm7YOsLBAbKRCOQpH++Ec/FzllrGkNRGT0Bxj9sTwph5qKNlp1MikcBAK4zq3/IufluOnWAySdl8GVdxUcfrg==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"redis-info": "^3.1.0"
},
@@ -1189,6 +1192,7 @@
"resolved": "https://registry.npmjs.org/@bull-board/ui/-/ui-8.1.0.tgz",
"integrity": "sha512-BX7ATnvyAaFbcKwHcpsdMLpr1bawU9FZK9G5oeW4ebHSVXbAtNrmhQFWOrhMyN8Xfhx2Y88R/iC7rKR2LBekpg==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"@bull-board/api": "8.1.0"
}
@@ -1226,6 +1230,7 @@
"resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz",
"integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"@keyv/serialize": "^1.1.1"
}
@@ -1556,6 +1561,7 @@
"resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.4.tgz",
"integrity": "sha512-k9Dj3DV/itK9D06Y8f190Qgop7/Ui+D0njFV3LHMPwPT75DpXLQohE9Wmz0QElrJnzsjB7KPWiKJbOl7IPDArQ==",
"license": "Apache-2.0",
+ "peer": true,
"dependencies": {
"@grpc/proto-loader": "^0.8.0",
"@js-sdsl/ordered-map": "^4.4.2"
@@ -1587,6 +1593,7 @@
"resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz",
"integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==",
"license": "Apache-2.0",
+ "peer": true,
"dependencies": {
"lodash.camelcase": "^4.3.0",
"long": "^5.0.0",
@@ -1698,7 +1705,6 @@
"resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
"integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=18"
}
@@ -1715,7 +1721,6 @@
"os": [
"darwin"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -1738,7 +1743,6 @@
"os": [
"darwin"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -1758,7 +1762,6 @@
"os": [
"freebsd"
],
- "peer": true,
"dependencies": {
"@img/sharp-wasm32": "0.35.1"
},
@@ -1781,7 +1784,6 @@
"os": [
"darwin"
],
- "peer": true,
"funding": {
"url": "https://opencollective.com/libvips"
}
@@ -1798,7 +1800,6 @@
"os": [
"darwin"
],
- "peer": true,
"funding": {
"url": "https://opencollective.com/libvips"
}
@@ -1815,7 +1816,6 @@
"os": [
"linux"
],
- "peer": true,
"funding": {
"url": "https://opencollective.com/libvips"
}
@@ -1832,7 +1832,6 @@
"os": [
"linux"
],
- "peer": true,
"funding": {
"url": "https://opencollective.com/libvips"
}
@@ -1849,7 +1848,6 @@
"os": [
"linux"
],
- "peer": true,
"funding": {
"url": "https://opencollective.com/libvips"
}
@@ -1866,7 +1864,6 @@
"os": [
"linux"
],
- "peer": true,
"funding": {
"url": "https://opencollective.com/libvips"
}
@@ -1883,7 +1880,6 @@
"os": [
"linux"
],
- "peer": true,
"funding": {
"url": "https://opencollective.com/libvips"
}
@@ -1900,7 +1896,6 @@
"os": [
"linux"
],
- "peer": true,
"funding": {
"url": "https://opencollective.com/libvips"
}
@@ -1917,7 +1912,6 @@
"os": [
"linux"
],
- "peer": true,
"funding": {
"url": "https://opencollective.com/libvips"
}
@@ -1934,7 +1928,6 @@
"os": [
"linux"
],
- "peer": true,
"funding": {
"url": "https://opencollective.com/libvips"
}
@@ -1951,7 +1944,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -1974,7 +1966,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -1997,7 +1988,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -2020,7 +2010,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -2043,7 +2032,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -2066,7 +2054,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -2089,7 +2076,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -2112,7 +2098,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -2129,7 +2114,6 @@
"integrity": "sha512-PCQUoQdZyE8tp3HpbevuihfUmgSP4qWI0FGEPWoeXqaS+cUrFfemabHQiebUmUmlUhCuNnQMxGrQ+CPqK4hnxg==",
"license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
"optional": true,
- "peer": true,
"dependencies": {
"@emnapi/runtime": "^1.11.0"
},
@@ -2149,7 +2133,6 @@
],
"license": "Apache-2.0",
"optional": true,
- "peer": true,
"dependencies": {
"@img/sharp-wasm32": "0.35.1"
},
@@ -2172,7 +2155,6 @@
"os": [
"win32"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -2192,7 +2174,6 @@
"os": [
"win32"
],
- "peer": true,
"engines": {
"node": "^20.9.0"
},
@@ -2212,7 +2193,6 @@
"os": [
"win32"
],
- "peer": true,
"engines": {
"node": ">=20.9.0"
},
@@ -3476,6 +3456,7 @@
"resolved": "https://registry.npmjs.org/@nestjs/bull-shared/-/bull-shared-11.0.4.tgz",
"integrity": "sha512-VBJcDHSAzxQnpcDfA0kt9MTGUD1XZzfByV70su0W0eDCQ9aqIEBlzWRW21tv9FG9dIut22ysgDidshdjlnczLw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"tslib": "2.8.1"
},
@@ -3630,6 +3611,7 @@
"resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.27.tgz",
"integrity": "sha512-kEGSzqM2lWr4whh4Ubflw+oPZSEzxvRMu9WL+LveZploJWTjec5bBlCiRVlVzTPg2kIwBiLwWSvCCW7Wnin1gg==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"file-type": "21.3.4",
"iterare": "1.2.1",
@@ -3676,6 +3658,7 @@
"resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.1.27.tgz",
"integrity": "sha512-K6DX7hcqmZdeXkv7tsPakKBRCgqL19a4mtbX4FluY0hWtFdtPKp6lbe+lb8gWPfvLdbOWr/CPScn7BSjBX+Ecg==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"fast-safe-stringify": "2.1.1",
"iterare": "1.2.1",
@@ -3735,6 +3718,7 @@
"resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-11.1.27.tgz",
"integrity": "sha512-0ZFhz6H6EdGh4xQVbUNwjoAwBuz73P7FvUAl67h9CTdMqQlJDaQYJApBv8pKfVZ1fGjMCbl0m9DcC6pXaZPWSQ==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"cors": "2.8.6",
"express": "5.2.1",
@@ -3756,6 +3740,7 @@
"resolved": "https://registry.npmjs.org/@nestjs/platform-socket.io/-/platform-socket.io-11.1.27.tgz",
"integrity": "sha512-xgpLzaIDGOCC6xOAtHnRAz8sqieFgGxxu3MN5ID026Jt6oeL3efp29N5QHhPr7UlqBfy/Jd02uj0POkZq6Au3Q==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"socket.io": "4.8.3",
"tslib": "2.8.1"
@@ -3968,6 +3953,7 @@
"resolved": "https://registry.npmjs.org/@nestjs/typeorm/-/typeorm-11.0.3.tgz",
"integrity": "sha512-zJ+E5l7auVVA7c0PsvcMdyvRPKTUqU5s2ToYmOA2QEsXQ42qbUGtK4+1HlRfpHqBkCSXP+phiH4luvf9DyJNog==",
"license": "MIT",
+ "peer": true,
"peerDependencies": {
"@nestjs/common": "^10.0.0 || ^11.0.0",
"@nestjs/core": "^10.0.0 || ^11.0.0",
@@ -3981,6 +3967,7 @@
"resolved": "https://registry.npmjs.org/@nestjs/websockets/-/websockets-11.1.27.tgz",
"integrity": "sha512-X3OgJt9KgYTvt9D7sNz9SOj3A1daAHy7DZrYhM1pky8Fh+erlKQH5IQ/tKm+GaJKA5M0srBUr1CMqjak/qNxOw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"iterare": "1.2.1",
"object-hash": "3.0.0",
@@ -4506,6 +4493,7 @@
"integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@types/estree": "*",
"@types/json-schema": "*"
@@ -4635,6 +4623,7 @@
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.1.0.tgz",
"integrity": "sha512-O0A1G3xPGy4w7AgQdAQYUlQ+BKk2Oovw8eRpofyp5KdBZULnbe+WqaOVNrm705SHphCiG4XHsACrSmPu1f+Kgw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"undici-types": "~8.3.0"
}
@@ -4762,17 +4751,6 @@
"@types/node": "*"
}
},
- "node_modules/@types/uuid": {
- "version": "11.0.0",
- "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-11.0.0.tgz",
- "integrity": "sha512-HVyk8nj2m+jcFRNazzqyVKiZezyhDKrGUA3jlEcg/nZ6Ms+qHwocba1Y/AaVaznJTAM9xpdFSh+ptbNrhOGvZA==",
- "deprecated": "This is a stub types definition. uuid provides its own type definitions, so you do not need this installed.",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "uuid": "*"
- }
- },
"node_modules/@types/validator": {
"version": "13.15.10",
"resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.15.10.tgz",
@@ -4860,6 +4838,7 @@
"integrity": "sha512-sPhE4iHuJDSvoAiec+Ro8JyXw8f0ql13HFR82P99nCm9GwTEKG0KYLvDe6REk8BCXuit6vJAv/Yxg5ABaNS2rA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@typescript-eslint/scope-manager": "8.62.1",
"@typescript-eslint/types": "8.62.1",
@@ -5611,6 +5590,7 @@
"integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
"devOptional": true,
"license": "MIT",
+ "peer": true,
"bin": {
"acorn": "bin/acorn"
},
@@ -5708,6 +5688,7 @@
"integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
@@ -6290,6 +6271,7 @@
"resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.8.2.tgz",
"integrity": "sha512-riJjyv1/mHLIPX4RwiK+oW9/4c3TEUeORHKefKAKnZ5kyslbN+HXowtbaVEqt4IMUB7OXlfixcs6gsFeo/jhiQ==",
"license": "Apache-2.0",
+ "peer": true,
"peerDependencies": {
"bare-abort-controller": "*"
},
@@ -6579,6 +6561,7 @@
}
],
"license": "MIT",
+ "peer": true,
"dependencies": {
"baseline-browser-mapping": "^2.10.12",
"caniuse-lite": "^1.0.30001782",
@@ -6669,6 +6652,7 @@
"resolved": "https://registry.npmjs.org/bullmq/-/bullmq-5.79.2.tgz",
"integrity": "sha512-FebD+8XCZl/hnS1R4to24L4EAN70XSndKZO0776M36vGRk5MKVhKlNFM8/34zXLXKyYB4QaeIPFhVXSYYGTHpQ==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"cron-parser": "4.9.0",
"ioredis": "5.10.1",
@@ -6986,6 +6970,7 @@
"integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"readdirp": "^4.0.1"
},
@@ -7064,13 +7049,15 @@
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.5.1.tgz",
"integrity": "sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==",
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/class-validator": {
"version": "0.15.1",
"resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.15.1.tgz",
"integrity": "sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"@types/validator": "^13.15.3",
"libphonenumber-js": "^1.11.1",
@@ -7923,7 +7910,8 @@
"version": "0.0.1581282",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1581282.tgz",
"integrity": "sha512-nv7iKtNZQshSW2hKzYNr46nM/Cfh5SEvE2oV0/SEGgc9XupIY5ggf84Cz8eJIkBce7S3bmTAauFD6aysMpnqsQ==",
- "license": "BSD-3-Clause"
+ "license": "BSD-3-Clause",
+ "peer": true
},
"node_modules/dezalgo": {
"version": "1.0.4",
@@ -8421,6 +8409,7 @@
"integrity": "sha512-6lVbcqSodALYo+4ELD0heG6lFiFxnLMuLkiMi2qV8LMp54N8tE8FT1GMH+ev4Ti00nFjNze2+Su6DsV5OQW3Dg==",
"dev": true,
"license": "MIT",
+ "peer": true,
"workspaces": [
"packages/*"
],
@@ -8480,6 +8469,7 @@
"integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==",
"dev": true,
"license": "MIT",
+ "peer": true,
"bin": {
"eslint-config-prettier": "bin/cli.js"
},
@@ -8828,6 +8818,7 @@
"resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",
"integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"accepts": "^2.0.0",
"body-parser": "^2.2.1",
@@ -9757,6 +9748,7 @@
"resolved": "https://registry.npmjs.org/hono/-/hono-4.12.27.tgz",
"integrity": "sha512-1yrb/+w6HWQJrUCLkJ2IF5jNIPvvFkblV5RNOYl6bV+OA6p9GLcMpHFFGTosSvHvcAUibuUukRqhlYI4z32C7Q==",
"license": "MIT",
+ "peer": true,
"engines": {
"node": ">=16.9.0"
}
@@ -9987,6 +9979,7 @@
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.11.1.tgz",
"integrity": "sha512-ehuGcf94bQXhfagULNXrJdfnWO38v070jxSx/qE87Kjzmu2fU7ro5EFAb+OPituLqgfyuQaym5DlrNydW2sJ9A==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"@ioredis/commands": "1.10.0",
"cluster-key-slot": "1.1.1",
@@ -10259,6 +10252,7 @@
"integrity": "sha512-Yi1jqNC/Oq0N4hBgNH/YvBpP1P57QqundgytzYqy3yqAa7NZPNjSoi4SGbRAXDMdBzNE6xBCi5U7RgfrvMEUVQ==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@jest/core": "30.4.2",
"@jest/types": "30.4.1",
@@ -12621,6 +12615,7 @@
"resolved": "https://registry.npmjs.org/pg/-/pg-8.22.0.tgz",
"integrity": "sha512-8wih1vVIBMxoUM2oB4soJsD9tDnDpLv4OXBJ+EJzFsvycD+lfyIreC2gGHq78f8jbLLt+bvlPTFdFZfJkOuzAA==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"pg-connection-string": "^2.14.0",
"pg-pool": "^3.14.0",
@@ -12959,6 +12954,7 @@
"integrity": "sha512-yWG/o/4oJfo036EKAfK6ACAoDOfHeRHx4tuxkfBZiauURiaSmYwlpOr5LQqKtIkRD2z1PLteme2WoxEnj4tHTg==",
"dev": true,
"license": "MIT",
+ "peer": true,
"bin": {
"prettier": "bin/prettier.cjs"
},
@@ -13674,7 +13670,8 @@
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz",
"integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==",
- "license": "Apache-2.0"
+ "license": "Apache-2.0",
+ "peer": true
},
"node_modules/require-directory": {
"version": "2.1.1",
@@ -13823,6 +13820,7 @@
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",
"integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",
"license": "Apache-2.0",
+ "peer": true,
"dependencies": {
"tslib": "^2.1.0"
}
@@ -14412,6 +14410,7 @@
"integrity": "sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==",
"hasInstallScript": true,
"license": "BSD-3-Clause",
+ "peer": true,
"dependencies": {
"bindings": "^1.5.0",
"node-addon-api": "^7.0.0",
@@ -14922,6 +14921,7 @@
"integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fast-uri": "^3.0.1",
@@ -15275,6 +15275,7 @@
"integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==",
"devOptional": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@cspotcode/source-map-support": "^0.8.0",
"@tsconfig/node10": "^1.0.7",
@@ -15459,6 +15460,7 @@
"resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.3.30.tgz",
"integrity": "sha512-8T35PzjefOdqc2ZR9mwLQj0pUGp6lQhMbK2EvVMwJVJWlaoHm0v/Q6dThNOZkFchD+0yMg8gwjKM28ePiLSXSQ==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"@sqltools/formatter": "^1.2.5",
"ansis": "^4.2.0",
@@ -15678,6 +15680,7 @@
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"devOptional": true,
"license": "Apache-2.0",
+ "peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -15913,19 +15916,6 @@
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
"license": "MIT"
},
- "node_modules/uuid": {
- "version": "14.0.1",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.1.tgz",
- "integrity": "sha512-6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew==",
- "funding": [
- "https://github.com/sponsors/broofa",
- "https://github.com/sponsors/ctavan"
- ],
- "license": "MIT",
- "bin": {
- "uuid": "dist-node/bin/uuid"
- }
- },
"node_modules/v8-compile-cache-lib": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
@@ -16018,6 +16008,7 @@
"integrity": "sha512-wGN3qcrBQIFmQ/c0AiOAQBvrZ5lmY8vbbMv4Mxfgzqd/B6+9pXtLo73WuS1dSGXM5QYY3hZnIbvx+K1xxe6FyA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@types/eslint-scope": "^3.7.7",
"@types/estree": "^1.0.8",
@@ -16086,6 +16077,7 @@
"integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fast-uri": "^3.0.1",
@@ -16622,6 +16614,7 @@
"resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
"integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
"license": "MIT",
+ "peer": true,
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
diff --git a/package.json b/package.json
index 3c149c07c..d380a8a37 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,12 @@
"author": "Yudhi Armyndharis & OpenWA Contributors",
"private": true,
"license": "MIT",
+ "engines": {
+ "node": ">=22"
+ },
+ "scarfSettings": {
+ "enabled": false
+ },
"scripts": {
"build": "nest build",
"build:all": "nest build && npm run dashboard:build",
@@ -82,7 +88,6 @@
"tar-stream": "^3.2.0",
"typeorm": "^0.3.29",
"undici": "^8.7.0",
- "uuid": "^14.0.1",
"whatsapp-web.js": "^1.34.7",
"zod": "^4.4.3"
},
@@ -102,7 +107,6 @@
"@types/qrcode": "^1.5.5",
"@types/supertest": "^6.0.2",
"@types/tar-stream": "^3.1.4",
- "@types/uuid": "^11.0.0",
"concurrently": "^10.0.3",
"eslint": "^10.6.0",
"eslint-config-prettier": "^10.0.1",
diff --git a/sdk/README.md b/sdk/README.md
index 98a30b0c0..7dcb681f2 100644
--- a/sdk/README.md
+++ b/sdk/README.md
@@ -135,7 +135,7 @@ handler is a `MockHandler` — no global state, no network.
<dependency>
<groupId>com.rmyndharis</groupId>
<artifactId>openwa</artifactId>
- <version>0.1.0</version>
+ <version>0.1.1</version>
</dependency>
```
diff --git a/sdk/java/README.md b/sdk/java/README.md
index 608f45c90..3e2eafde5 100644
--- a/sdk/java/README.md
+++ b/sdk/java/README.md
@@ -16,14 +16,14 @@ Java 17+, one runtime dependency ([Gson](https://github.com/google/gson)).
<dependency>
<groupId>com.rmyndharis</groupId>
<artifactId>openwa</artifactId>
- <version>0.1.0</version>
+ <version>0.1.1</version>
</dependency>
```
**Gradle**
```groovy
-implementation 'com.rmyndharis:openwa:0.1.0'
+implementation 'com.rmyndharis:openwa:0.1.1'
```
## Quickstart
diff --git a/src/core/plugins/plugin.interfaces.ts b/src/core/plugins/plugin.interfaces.ts
index e401e72a7..1bfc3dcfb 100644
--- a/src/core/plugins/plugin.interfaces.ts
+++ b/src/core/plugins/plugin.interfaces.ts
@@ -103,7 +103,8 @@ export interface PluginManifest {
sdkVersion?: string;
// Inbound webhook routes this plugin claims (requires the `webhook:ingress` permission). Validated
- // by validateIngressManifest; not yet wired into the loader (see that function's doc comment).
+ // by validateIngressManifest, which the loader calls on every external plugin load (loadPlugin).
+ // (Built-in registration declares no ingress and bypasses that validation.)
ingress?: PluginIngressRoute[];
}
@@ -229,7 +230,7 @@ export const SUPPORTED_SDK_MAJOR = 1;
* Validates a manifest's `ingress` declarations: SDK major compatibility, the `webhook:ingress`
* permission, route uniqueness, and that a declared `toleranceSec` is usable (> 0 — a replay window
* of zero or less would make the tolerance check a no-op). A manifest with no `ingress` entries is a
- * no-op. Pure validation — not yet called from the plugin loader (wiring lands in a later task).
+ * no-op. Called from PluginLoaderService.loadPlugin, so a malformed declaration is rejected at load time.
*/
export function validateIngressManifest(manifest: PluginManifest): void {
if (!manifest.ingress?.length) return; // no ingress declared → nothing to validate