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:37 +0000 |
commit | 1859f03697d669e29df365ef4c934f1249b7c2d9 (patch) | |
tree | 2bab1bb85c98bb610be2702ea9543d0e7dfd9a9f | |
parent | 23f13ff406cc431d1e4890f507e0661bedfd04a3 (diff) | |
download | nextcloud-server-backport/54238/stable30.tar.gz nextcloud-server-backport/54238/stable30.zip |
feat: allow admins to configure additional sensitive config valuesbackport/54238/stable30
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', [])); } /** |