diff options
author | Josh <josh.t.richards@gmail.com> | 2024-02-07 10:05:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-07 10:05:46 -0500 |
commit | 2e00184eb401588a8a7fa34a5d84ad7f6f19ba54 (patch) | |
tree | 37992a42a01162a411c007c75aac9420ca8938e7 /apps | |
parent | 0171812932167de72daf4f03e6196151d9a003d3 (diff) | |
download | nextcloud-server-2e00184eb401588a8a7fa34a5d84ad7f6f19ba54.tar.gz nextcloud-server-2e00184eb401588a8a7fa34a5d84ad7f6f19ba54.zip |
fix(files_external) Add sensitive S3 values redacted by list command
Signed-off-by: Josh <josh.t.richards@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/Command/ListCommand.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Command/ListCommand.php b/apps/files_external/lib/Command/ListCommand.php index e4a33a99a92..f83df5747df 100644 --- a/apps/files_external/lib/Command/ListCommand.php +++ b/apps/files_external/lib/Command/ListCommand.php @@ -125,12 +125,12 @@ class ListCommand extends Base { } if (!$input->getOption('show-password')) { - $hideKeys = ['password', 'refresh_token', 'token', 'client_secret', 'public_key', 'private_key']; + $hideKeys = ['key', 'bucket', 'secret', 'password', 'refresh_token', 'token', 'client_secret', 'public_key', 'private_key']; foreach ($mounts as $mount) { $config = $mount->getBackendOptions(); foreach ($config as $key => $value) { if (in_array($key, $hideKeys)) { - $mount->setBackendOption($key, '***'); + $mount->setBackendOption($key, '***REMOVED SENSITIVE VALUE***'); } } } |