Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: allow admins to configure additional sensitive config values
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and backportbot[bot] committed Aug 7, 2025
commit e057ecbbe7e90a35a51cba213c95475f28649cc6
6 changes: 4 additions & 2 deletions lib/private/SystemConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
* 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,
Expand Down Expand Up @@ -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', []));
}

/**
Expand Down
Loading