Skip to content

Telegram: gate groups via telegram.groups - #241

Closed
kitze wants to merge 0 commit into
openclaw:mainfrom
kitze:pr/telegram-groups
Closed

kitze wants to merge 0 commit into
openclaw:mainfrom
kitze:pr/telegram-groups

Conversation

@kitze

@kitze kitze commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Treat telegram.groups as a group allowlist ("*" keeps existing allow-all behavior)
  • Skip group messages that are not configured
  • Add test coverage for allowlist behavior

Testing

  • Not run (not requested)

@steipete steipete closed this Jan 6, 2026
@steipete
steipete force-pushed the pr/telegram-groups branch from 284614e to ca8f66f Compare January 6, 2026 03:30
steipete pushed a commit that referenced this pull request Jan 6, 2026
steipete added a commit that referenced this pull request Jan 6, 2026
@steipete steipete mentioned this pull request Jan 6, 2026
steipete added a commit that referenced this pull request Jan 6, 2026
@steipete

steipete commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

Unable to reopen PR without author enabling maintainer edits + new commits on the fork. Changes already in main; merged reconciliation in #265.

jalehman pushed a commit to jalehman/clawdbot that referenced this pull request Jan 15, 2026
jalehman pushed a commit to jalehman/clawdbot that referenced this pull request Jan 15, 2026
jalehman pushed a commit to jalehman/clawdbot that referenced this pull request Jan 15, 2026
jalehman pushed a commit to jalehman/clawdbot that referenced this pull request Jan 15, 2026
jalehman pushed a commit to jalehman/clawdbot that referenced this pull request Jan 22, 2026
jalehman pushed a commit to jalehman/clawdbot that referenced this pull request Jan 22, 2026
davidrudduck pushed a commit to davidrudduck/openclaw that referenced this pull request Feb 22, 2026
davidrudduck pushed a commit to davidrudduck/openclaw that referenced this pull request Feb 22, 2026
davidrudduck pushed a commit to davidrudduck/openclaw that referenced this pull request Feb 22, 2026
davidrudduck pushed a commit to davidrudduck/openclaw that referenced this pull request Feb 22, 2026
Fato07 referenced this pull request in Fato07/elav Mar 26, 2026
- Added disableSignUp to authConfigSchema in config-schema.ts
- Added authDisableSignUp to Config interface
- Added parsing from PAPERCLIP_AUTH_DISABLE_SIGN_UP env or config file
- Passed to better-auth emailAndPassword.disableSignUp

When true, blocks new user registrations on public instances.
Defaults to false (backward compatible).

Fixes DenchHQ#241
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
@smallwei0301

Copy link
Copy Markdown

Grounded verification note (runtime / tests / risk)

I verified that the Telegram group gating behavior is present in the runtime surface, not just in issue text or isolated tests.

What is grounded in runtime now

  • Runtime group policy evaluation exists in src/telegram/group-access.ts:108-205
    • telegram.groups is part of chat-level allowlist evaluation
    • explicit group entries can authorize a group even when sender-level allowlist entries are empty
    • wildcard "*" does not bypass sender-level allowlist checks by itself
    • block reasons are explicit, including:
      • group-policy-disabled
      • group-policy-allowlist-no-sender
      • group-policy-allowlist-empty
      • group-policy-allowlist-unauthorized
      • group-chat-not-allowed
  • Telegram runtime wiring into bot flow exists in src/telegram/bot.ts:241-247
    • chat id is passed into the channel group policy resolver during runtime processing

Runtime artifact evidence

  • Built runtime bundles in /app/dist contain group-policy-allowlist-empty
  • Built runtime bundles also contain the verbose block message for group allowlist-empty cases

Tests I ran just now

  • pnpm vitest run src/telegram/group-access.policy-access.test.ts src/telegram/group-access.group-policy.test.ts src/telegram/group-migration.test.ts
  • Result: 3 files passed, 17 tests passed

Current risk boundary

  • The runtime gate is present.
  • Remaining risk is mostly config/operator-side confusion around explicit numeric group ids vs wildcard behavior, not absence of runtime enforcement.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
muneebhashone pushed a commit to muneebhashone/clawdbot that referenced this pull request Aug 25, 2026
muneebhashone pushed a commit to muneebhashone/clawdbot that referenced this pull request Aug 25, 2026
muneebhashone pushed a commit to muneebhashone/clawdbot that referenced this pull request Aug 25, 2026
zeekay pushed a commit to Dream-AI-4444/bot that referenced this pull request Sep 11, 2026
zeekay pushed a commit to Dream-AI-4444/bot that referenced this pull request Sep 11, 2026

This branch was successfully deployed

1 active and 1 inactive deployments
staging - docs — ca8f66f8 Deployed Jan 6, 2026 by mintlify[bot]
github-pages — ca8f66f8 Deployed Jan 6, 2026 by steipete
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.

4 participants