Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs: document the wildcard-instance config residue in the fabric
Yudhi Armyndharise83805b9d0a0
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f6d8eeb3e..da3c8c736 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/25 documents the known wildcard-instance config residue: per-instance isolation covers ingress dispatch only; wildcard/null siblings still merge into the plugin base config.- `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/25-integration-fabric.md b/docs/25-integration-fabric.mdindex e041253c7..aa7eb907c 100644--- a/docs/25-integration-fabric.md+++ b/docs/25-integration-fabric.md@@ -111,6 +111,12 @@ Alongside this async pipeline, a route may additionally declare a `response` conmany instances (for example, one external account per WhatsApp number). Each instance owns a host-mintedingress secret, a resolved session scope, and a config slice. It is a serializable field threadedthrough payloads and rows — **not** a separate worker; there is still one worker per plugin.+ _Known residue:_ per-instance isolation covers the **ingress dispatch** path (concrete-scoped+ instances resolve their own config slice). A `wildcard`/`null`-scoped sibling is still projected+ into the plugin's **base** config with last-write-wins merging, so a sparse wildcard instance+ inherits keys a sibling projected, and hook dispatch resolves config without per-instance+ scoping. Run one enabled wildcard instance per plugin, or scope instances concretely, until the+ projection is re-keyed per instance.- **`conversation.send` capability** — a normalized outbound send authored by the plugin and translatedhost-side to the message service, so persistence and the message hook chain are preserved. It is gatedby a `conversation:send` permission and the instance's session scope.