fix(files_external) Add sensitive S3 values redacted by list command

Signed-off-by: Josh <josh.t.richards@gmail.com>
pull/43440/head
Josh 2024-02-07 10:05:46 +07:00 committed by GitHub
parent 0171812932
commit 2e00184eb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

@ -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***');
}
}
}