Ability to request temporary permissions #5182
Replies: 3 comments 4 replies
-
But with manage roles perm or requesting admin perm for 5 minutes or smth, the bot could just create a new role with admin perms and attach it to themselfes... |
Beta Was this translation helpful? Give feedback.
-
Couldn't an evil bot just nuke the server or something in 5 minutes? IMO it just gives the user a false sense of security. Personally I'd like to be able to request approval for the specific action (eg. Kick @user, timeout @user2 for 10 minutes) and have the permission granted for that specific action. |
Beta Was this translation helpful? Give feedback.
-
It won't make things safer, let alone better from a user experience perspective. I think I understand the idea. Some bots need certain "critical" permissions only to ensure the operation of a single, very little used feature, like applying a server backup. First, 5 minutes is enough to raid. Second, you can't force bots to use a temporary permission system. Malicious bots will continue to request critical permissions when adding them. Users should be careful about the permissions they grant. I noticed that you are the author of an anti-raid bot, it is the responsibility of such bots to ensure security against potentially malicious bots in this case. Being able to change the permissions requested by the bot when it is first authorized would be more appropriate. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bot permissions are generally permanently granted unless they are manually changed in role settings. This is bad for security, since a lot of bots asks when added for permissions that can be dangerous if compromised, like manage channels/roles. However, many bots use administrative permissions like these on an ad hoc basis, when a user makes a certain command or for a one-time automatic configuration for example.
To avoid bots from asking for too many permissions in the initial authorization, I suggest a new feature that enables users to simply add permissions to an existing bot without messing with role settings, either temporarily or permanently. This could be done through an in-app popup triggered by a button, or a webpage when asked from a web dashboard or similar.
I made a simple mockup of what it could look like:

This will improve the UX for users over existing solutions (i.e. a message telling users to go to role settings) while improving security with temporary permissions. It will no longer be necessary to ask for these permissions from the start because of the risk of losing users with a complicated process to add them later.
Beta Was this translation helpful? Give feedback.
All reactions