Ravinou / borgwarehouse

A fast and modern WebUI for a BorgBackup's central repository server.
https://borgwarehouse.com
GNU Affero General Public License v3.0
314 stars 22 forks source link

Add option to disable deletion on server #243

Open Forceu opened 1 week ago

Forceu commented 1 week ago

If an attacker gains access to the webinterface, they can delete repositories without any further confirmation or authentication. This pull request adds an option that can be set with an environment variable to disable deletion.

I tried removing the button as well in the interface, but unfortunately was not able to, as I am not very proficient with node.js. Feel free to edit the PR, if you would like to hide the button or change it to a text saying that it its disabled.