Skip to content

Bug: ALLOWED_CHAT_IDS env var propagation #896

Closed

Description

@dmibaranov

Description

The current implementation fails to propagate the ALLOWED_CHAT_IDS environment variable to the Telegram bridge child process. This results in a security bypass where any user can interact with the bot regardless of the whitelist settings.

Reproduction Steps

$ env | grep ALLOWED
ALLOWED_CHAT_IDS=<redacted>
$ nemoclaw start
[services] telegram-bridge started (PID 42541)
...
$ ps -wwp 42541 -E | grep ALLOWED || echo "missed"
missed

Environment

  • OS: macOS 26.3.1
  • Node.js: v25.2.1
  • Docker: Docker Desktop 4.62.0, Engine 29.2.1
  • NemoClaw: v0.1.0

Debug Output

Logs

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Activity

  1. changed the title [-]Bug: ALLOWED_CHAT_IDS doesn't work[/-] [+]Bug: ALLOWED_CHAT_IDS env var propagation[/+] on Mar 25, 2026
  2. added
    integration: telegram
    and removed on Mar 25, 2026
  3. wscurran commented on Mar 25, 2026

    @wscurran
    Contributor

    ✨ Thanks for submitting this issue with a detailed summary, it addresses a bug with the Telegram bridge failing to propagate the ALLOWED_CHAT_IDS environment variable, which could be related to the Telegram integration or security configuration.


    Possibly related open PRs:

  4. added 2 commits that reference this issue on Mar 26, 2026
    2fe4329
    2239799
  5. WuKongAI-CMU commented on Mar 26, 2026

    @WuKongAI-CMU
    Contributor

    I rechecked the current main service-launch path with a minimal harness and the telegram-bridge child still sees ALLOWED_CHAT_IDS in its environment. That suggests this may have been an older-install or older-script-path issue rather than a current main regression. If someone can still reproduce it on current main, the next useful artifact would be the exact launch path plus the bridge child environment from that run.

  6. self-assigned this
    on Mar 31, 2026
  7. prekshivyas commented on Apr 1, 2026

    @prekshivyas
    Collaborator

    @dmibaranov can you confirm if you are still seeing this issue with the latest release?

  8. added a commit that references this issue on Apr 2, 2026
    9eed23b
  9. added a commit that references this issue on Apr 2, 2026
    8f631ae
  10. added a commit that references this issue on Apr 4, 2026
    b1c9803
  11. added 2 commits that reference this issue on Apr 14, 2026
    1bb0040
    7415fa9
  12. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

integration: telegram

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions