micromata / dave

A totally simple and very easy to configure stand alone webdav server
Apache License 2.0
350 stars 46 forks source link

Add ip address and general message to enable brute force detection #14 #19

Closed chclaus closed 3 years ago

chclaus commented 4 years ago

https://github.com/micromata/dave/issues/14

Added some unified log output and remote addresses to failed login attempts. Examples

WARN[0023] User failed to login                          address=127.0.0.1 error="username not found or password empty" user=foo
WARN[0035] User failed to login                          address=127.0.0.1 error="Password doesn't match" user=user
WARN[0073] User failed to login                          address=127.0.0.1 error="user not found" user=foo
codecov[bot] commented 4 years ago

Codecov Report

Merging #19 into develop will decrease coverage by 0.19%. The diff coverage is 64.70%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #19      +/-   ##
===========================================
- Coverage    64.62%   64.43%   -0.20%     
===========================================
  Files            3        3              
  Lines          229      239      +10     
===========================================
+ Hits           148      154       +6     
- Misses          72       74       +2     
- Partials         9       11       +2     
Impacted Files Coverage Δ
app/security.go 72.30% <64.70%> (-2.24%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d4ea130...da2f77f. Read the comment docs.