Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs: correct how a scoped key is refused, and log the picker
Yudhi Armyndharis8d6934c2f446
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 02219ebaf..8b526701a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Added+- The dashboard's API Keys page can limit an operator or viewer key to chosen sessions, on creation+ and on a key that already exists. Leaving the picker empty keeps access to every session, including+ ones created later, and the keys table shows each key's scope. `allowedSessions` was already+ accepted by the REST API; this is the UI for it. Thanks @sebathi.- `PUPPETEER_PROTOCOL_TIMEOUT_MS` raises the per-browser-command budget on the whatsapp-web.jsengine, for large accounts whose reads fail with `Runtime.callFunctionOn timed out`. Unset keepsPuppeteer's own budget, so nothing changes for a deployment that does not set it. The gatewaydiff --git a/README.md b/README.mdindex 3238cdce5..9e13c2e3f 100644--- a/README.md+++ b/README.md@@ -50,7 +50,7 @@ Built on a **pluggable architecture**, OpenWA lets you select database engines (When you create or edit an **operator** or **viewer** API key in the dashboard, you can tick the WhatsApp sessions that key may use.- **No sessions selected** — the key can access every session, including ones created later.-- **One or more sessions selected** — the key can only list, read, and (for operator) manage those sessions. Requests to any other session return `401`.+- **One or more sessions selected** — the key can only list, read, and (for operator) manage those sessions. A request naming any other session returns `401`; session-filtered lists (sessions, audit, webhook delivery failures) return that key's rows rather than an error; and the key-management routes and the queue dashboard, which name no session at all, return `403`.Admin keys stay unscoped in the dashboard so they can keep managing other API keys. The HTTP API still accepts `allowedSessions` on any role if you need that from a client.