mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #54238 from nextcloud/extra_sensitive_values
feat: allow admins to configure additional sensitive config values
This commit is contained in:
commit
5660a73a3d
1 changed files with 4 additions and 2 deletions
|
|
@ -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', []));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue