diff options
author | Robin Appelman <robin@icewind.nl> | 2025-08-07 15:08:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-07 15:08:56 +0200 |
commit | 5660a73a3d4afe8bfd891cd1a9fc32a6bb3aa575 (patch) | |
tree | 3c54c04800049d82e783ac15acb9e90b5a266ada /lib/private | |
parent | 43aa92f6c3972e17830747de5a3859b4d5d0e536 (diff) | |
parent | 064e1133f5e6d31dd7b52f09227ca7462c2ef9ce (diff) | |
download | nextcloud-server-master.tar.gz nextcloud-server-master.zip |
feat: allow admins to configure additional sensitive config values
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/SystemConfig.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/SystemConfig.php b/lib/private/SystemConfig.php index 57777b06ed6..7e8946f4d05 100644 --- a/lib/private/SystemConfig.php +++ b/lib/private/SystemConfig.php @@ -15,8 +15,9 @@ use OCP\IConfig; * fixes cyclic DI: AllConfig needs AppConfig needs Database needs AllConfig */ class SystemConfig { - /** @var array */ - protected $sensitiveValues = [ + protected array $sensitiveValues; + + protected const DEFAULT_SENSITIVE_VALUES = [ 'instanceid' => true, 'datadirectory' => true, 'dbname' => true, @@ -114,6 +115,7 @@ class SystemConfig { public function __construct( private Config $config, ) { + $this->sensitiveValues = array_merge(self::DEFAULT_SENSITIVE_VALUES, $this->config->getValue('config_extra_sensitive_values', [])); } /** |