Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@derekross
Copy link

Summary

Fixes #4336

  • Add channels.signal.groups.<groupId> config to allow specific Signal groups by ID
  • Groups listed in this config bypass the sender-level groupAllowFrom check
  • Matches the pattern used by Telegram and iMessage for group allowlists

Changes

  • Add SignalGroupConfig type and groups property to Signal config schema
  • Add SignalGroupSchema to Zod validation
  • Add resolveChannelGroupPolicy check in Signal event handler
  • Add tests for group-level allowlist functionality
  • Update docs to explain groupAllowFrom (senders) vs groups (group IDs)

Usage

{
  channels: {
    signal: {
      groupPolicy: "allowlist",
      groups: {
        "your-signal-group-id": {}  // Allow this specific group
      }
    }
  }
}

Testing

  • Added unit tests for group-level allowlist
  • Manually tested on live Signal instance

Signal's groupPolicy: allowlist was checking senders against groupAllowFrom,
but users expected to put group IDs there. This adds proper group-level
allowlisting via channels.signal.groups.<groupId>, matching the pattern
used by Telegram and iMessage.

When a group is explicitly listed in the groups config, it bypasses the
sender-level groupAllowFrom check, allowing all members of that group
to interact with the bot.

- Add SignalGroupConfig type and groups property to SignalAccountConfig
- Add resolveChannelGroupPolicy check before sender-level gating
- Add tests for group-level allowlist functionality
- Update docs to clarify groupAllowFrom vs groups config
The TypeScript type was added but the Zod runtime schema was missing,
causing config validation to reject the groups key.
@moltbot-barnacle moltbot-barnacle bot added docs Improvements or additions to documentation channel: signal Channel integration: signal labels Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: signal Channel integration: signal docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Signal groupPolicy: allowlist doesn't work with group IDs in groupAllowFrom

1 participant