-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config+Auth: Add flags to log unauthorized requests
This patch adds new command line flags in order to support logging of unauthorized requests to the server. The flag `--log-auth-failure` enables the logging and uses the remote address of the request as the default for the logged ip. If the server is used behind a reverse proxy for, `--header-for-ip` can be used to specify a header like "X-Forwarded-For" to be used for logging the ip.
- Loading branch information
1 parent
1172d7e
commit 30b3069
Showing
5 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Feature: Logging of unauthorized requests | ||
|
||
Two new command line flags have been added in order to support logging of | ||
unauthorized requests to the server. The flag `--log-auth-failure` enables | ||
the logging and uses the remote address of the request as the default for | ||
the logged ip. If the server is used behind a reverse proxy for, `--header-for-ip` | ||
can be used to specify a header like "X-Forwarded-For" to be used for logging | ||
the ip. | ||
|
||
https://github.com/restic/rest-server/pull/167 | ||
https://forum.restic.net/t/rest-server-and-fail2ban/2569 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters