From f3817e44110a447317aadd1f0e295b33d5b7c7d4 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Fri, 3 Nov 2023 16:07:15 +0300 Subject: [PATCH] Pull request 2053: 6357-auth-log-remote-ip Updates #6357. Squashed commit of the following: commit 0d375446204d126d3fc20db0a0718e849112450b Merge: 61858bdec 52713a260 Author: Stanislav Chzhen Date: Fri Nov 3 14:47:10 2023 +0300 Merge branch 'master' into 6357-auth-log-remote-ip commit 61858bdec27f9efb35c6fa5306ace1c0053300ca Author: Stanislav Chzhen Date: Fri Nov 3 14:44:58 2023 +0300 all: upd chlog commit 1eef67261ff1e4eb667e11a58a5fe1f9b1dbdd7c Author: Stanislav Chzhen Date: Thu Nov 2 19:20:41 2023 +0300 home: imp code commit 2956aed9054309ab15dc9e61bcae59b76ccd5930 Author: Stanislav Chzhen Date: Thu Nov 2 16:10:07 2023 +0300 home: imp docs commit ca0f53d7c28d17287d80c0c5d1d76b21506acb64 Author: Stanislav Chzhen Date: Tue Oct 31 15:08:37 2023 +0300 home: imp code commit 6b11b461180f1ee7528ffbaf37d5e76a1a7f208a Author: Stanislav Chzhen Date: Fri Oct 27 19:45:55 2023 +0300 home: auth log remote ip --- CHANGELOG.md | 5 + internal/home/auth.go | 407 ++---------------- internal/home/auth_internal_test.go | 89 ++++ internal/home/authhttp.go | 352 +++++++++++++++ ...auth_test.go => authhttp_internal_test.go} | 80 ---- internal/home/config.go | 2 +- internal/home/controlinstall.go | 2 +- 7 files changed, 487 insertions(+), 450 deletions(-) create mode 100644 internal/home/auth_internal_test.go create mode 100644 internal/home/authhttp.go rename internal/home/{auth_test.go => authhttp_internal_test.go} (68%) diff --git a/CHANGELOG.md b/CHANGELOG.md index b67bc8cc..285d74dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,10 @@ NOTE: Add new changes BELOW THIS COMMENT. - Ability to specify multiple domain specific upstreams per line, e.g. `[/domain1/../domain2/]upstream1 upstream2 .. upstreamN` ([#4977]). +### Changed + +- Improved authentication failure logging ([#6357]). + ### Fixed - `$important,dnsrewrite` rules do not take precedence over allowlist rules @@ -39,6 +43,7 @@ NOTE: Add new changes BELOW THIS COMMENT. [#6204]: https://github.com/AdguardTeam/AdGuardHome/issues/6204 [#6329]: https://github.com/AdguardTeam/AdGuardHome/issues/6329 [#6335]: https://github.com/AdguardTeam/AdGuardHome/issues/6335 +[#6357]: https://github.com/AdguardTeam/AdGuardHome/issues/6357