Change the default permissions for "/plugins" and "/version". - #1831
Mickey42302 wants to merge 2 commits into
Conversation
|
What is the point of hiding those? I don't see any reason at all. And if server owners want to explicitly hide them, they can just use luckperms or something like commandwhitelist. |
|
Because they don't need the information. When configuring servers, it is best to follow the Principle of Least Privilege. Not having access to "/plugins" and "/version" won't stop people from playing on the server or enjoying the content it offers. It only prevents them from seeing a full list of installed plugins and what version of Purpur is installed. In some cases, hiding the information can even help keep the server safe. For example, if an exploit has been found, denying access to "/version" will prevent a malicious user from seeing what build number is installed. |
|
|
I'm not vouching for security through obscurity. Server owners should always keep their server up to date. Although denying access to "/version" isn't a silver bullet, it will still prevent players from easily retrieving the version data. Thus, if a malicious user doesn't know that the server owner has a patched build number installed, they will just be wasting their time by spamming the exploit to see if it works. So far, every server I've played on denies access to "/plugins" and "/version" too. I've yet to see any public servers which allow regular players to use the commands. |
A lot of servers are also proud of showing their plugins. And I think you're missing whatever I said above (which I said two times), you can still disable those with permissions. |
|
I'm aware that you can override the permission nodes with permission plugins (such as LuckPerms). I just think that the commands shouldn't have to be restricted manually; they should be restricted to operators out of the box. If a server owner really wants all of their players to see what plugins they are using, they will grant the "bukkit.command.plugins" permission node to their default group. |
|
Closed for the same reasons as outlined in PaperMC/Paper#14168 |
I would like to suggest changing the default value of the permission nodes for some of the built-in commands.
At present, all players can execute "/plugins". Regular players do not need access to the list of plugins a server has installed. It is better to let the server owner decide if someone should be able to see what plugins they have installed instead of granting access to it by default.
Regular players do not need access to "/version" either. It would be better to restrict this command to operators as well, just like with the "/purpur version" command.