Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bots should only receive messages targeted at them #1109

Open
turt2live opened this issue Jun 7, 2022 · 2 comments
Open

Bots should only receive messages targeted at them #1109

turt2live opened this issue Jun 7, 2022 · 2 comments
Labels
A-Client-Server Issues affecting the CS API A-E2EE Issues about end-to-end encryption feature Suggestion for a significant extension which needs considerable consideration

Comments

@turt2live
Copy link
Member

Note: Some bots legitimately need access to all messages, and we should still permit those cases.

The general case for a bot is that it responds to commands by reading every message and doing something if it thinks the message matches a predetermined set. This is obviously not great as less trusted bots could become loggers too, though there is certainly an argument about only adding trusted bots to rooms.

This is more of an issue with encrypted rooms, where the bot has no reason to see messages not directed at it and can even be excluded more easily.

A challenge is doing this in a way where the bot can identify itself from a regular user (given bots are just user accounts), and not exposing metadata to the bot (ie: in an encrypted room, the bot doesn't need to know that a message was sent either).

Related:

@turt2live turt2live added feature Suggestion for a significant extension which needs considerable consideration A-Client-Server Issues affecting the CS API A-E2EE Issues about end-to-end encryption labels Jun 7, 2022
@michaelsmoody
Copy link

I'm intrigued by this as a spec. How do we plan to target specific messages to bots, and are you going to leave the option open for bots that need access to all messages?

@turt2live
Copy link
Member Author

This issue exists because there's isn't even an MSC for it yet, so no idea how it'll be solved.

As for leaving the option open for access to all message - please see the first line of the issue description ;)

Note: Some bots legitimately need access to all messages, and we should still permit those cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Client-Server Issues affecting the CS API A-E2EE Issues about end-to-end encryption feature Suggestion for a significant extension which needs considerable consideration
Projects
None yet
Development

No branches or pull requests

2 participants