Skip to content

fix(whatsapp): fail closed when groupPolicy is not configured#3

Merged
pallaoro merged 2 commits into
whatsapp-ondemand-historyfrom
whatsapp-group-policy-failclosed
Jul 23, 2026
Merged

fix(whatsapp): fail closed when groupPolicy is not configured#3
pallaoro merged 2 commits into
whatsapp-ondemand-historyfrom
whatsapp-group-policy-failclosed

Conversation

@pallaoro

Copy link
Copy Markdown
Member

A configured channels.whatsapp without an explicit groupPolicy previously fell back to open and listened to every group the linked number is a member of. This falls back to allowlist instead: group inbound stays blocked until groups are explicitly configured.

  • extensions/whatsapp/src/runtime-group-policy.ts: resolveOpenProviderRuntimeGroupPolicyresolveAllowlistProviderRuntimeGroupPolicy
  • Regression test for the fallback (runtime-group-policy.test.ts)
  • Regenerated clawnify-patches/whatsapp-clawnify-tools.patch against v2026.7.1 (verified: clean apply on a pristine v2026.7.1 worktree, plugin build green, whatsapp suite 1038/1040 — the 2 conversation-store.test.ts failures are pre-existing and unrelated)

Explicit groupPolicy values and groupAllowFrom sender filtering are unchanged.

Note: upstream CI checks are expected red on this fork (structural; no branch protection — see docs).

pallaoro added 2 commits July 23, 2026 12:51
A configured channels.whatsapp without an explicit groupPolicy previously
fell back to "open" and listened to every group the linked number is a
member of. Fall back to "allowlist" instead: group inbound stays blocked
until groups are explicitly configured. Explicit groupPolicy values and
groupAllowFrom sender filtering are unchanged.
@pallaoro
pallaoro merged commit 18bdb36 into whatsapp-ondemand-history Jul 23, 2026
65 of 77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant