diff options
author | Robin Appelman <robin@icewind.nl> | 2025-08-04 14:10:58 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-08-07 13:09:23 +0000 |
commit | e057ecbbe7e90a35a51cba213c95475f28649cc6 (patch) | |
tree | 6eb3dd61a82871b10973d8f5cc0a0f64a1edb4bc | |
parent | a338e5738c39be62ac7c2ae71bebbece46ab1c94 (diff) | |
download | nextcloud-server-backport/54238/stable31.tar.gz nextcloud-server-backport/54238/stable31.zip |
feat: allow admins to configure additional sensitive config valuesbackport/54238/stable31
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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 d3fd1f2ab04..7296ad940da 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', [])); } /** |