From 7558c0380ed042b58557cef3d63960cc3b060db1 Mon Sep 17 00:00:00 2001 From: DaneEveritt Date: Sun, 10 Jul 2022 14:30:11 -0400 Subject: [PATCH] Don't log SFTP logins, it just is noisy --- .../Api/Remote/SftpAuthenticationController.php | 8 -------- resources/lang/en/activity.php | 1 - 2 files changed, 9 deletions(-) diff --git a/app/Http/Controllers/Api/Remote/SftpAuthenticationController.php b/app/Http/Controllers/Api/Remote/SftpAuthenticationController.php index c71c4a592..ab8ef8246 100644 --- a/app/Http/Controllers/Api/Remote/SftpAuthenticationController.php +++ b/app/Http/Controllers/Api/Remote/SftpAuthenticationController.php @@ -78,14 +78,6 @@ class SftpAuthenticationController extends Controller $this->validateSftpAccess($user, $server); - Activity::event('auth:sftp.success')->actor($user) - ->subject($user) - ->property(array_filter([ - 'method' => isset($key) ? 'ssh_key' : 'password', - 'fingerprint' => isset($key) ? 'SHA256:' . $key->getFingerprint('sha256') : null, - ])) - ->log(); - return new JsonResponse([ 'user' => $user->uuid, 'server' => $server->uuid, diff --git a/resources/lang/en/activity.php b/resources/lang/en/activity.php index 8edbfbe8b..ce567cbb9 100644 --- a/resources/lang/en/activity.php +++ b/resources/lang/en/activity.php @@ -17,7 +17,6 @@ return [ 'token' => 'Solved two-factor challenge', 'ip-blocked' => 'Blocked request from unlisted IP address for :identifier', 'sftp' => [ - 'success' => 'Logged in using SFTP', 'fail' => 'Failed SFTP log in', ], ],