Merge pull request #64 from restic/fix-append-only

Security: Refuse overwriting the config file in append-only mode
This commit is contained in:
Alexander Neumann
2018-04-02 13:25:46 +02:00
3 changed files with 217 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
Security: Refuse overwriting config file in append-only mode
While working on the `rclone serve restic` command we noticed that is currently
possible to overwrite the config file in a repo even if `--append-only` is
specified. The first commit adds proper tests, and the second commit fixes the
issue.
https://github.com/restic/rest-server/pull/64