mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #43440 from nextcloud/fix/files-external-s3-redact-values
fix(files_external) Redact sensitive S3 values
This commit is contained in:
commit
e96cd54269
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***');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue