Skip to content

Commit

Permalink
fix(config): Mark more configs as sensitive
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 28, 2024
1 parent 2a437b4 commit 1e5cb82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/private/AppConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -1430,10 +1430,16 @@ private function getSensitiveKeys(string $app): array {
'/^key_pairs$/',
'/^local_gskey$/',
],
'call_summary_bot' => [
'/^secret_(.*)$/',
],
'external' => [
'/^sites$/',
'/^jwt_token_privkey_(.*)$/',
],
'globalsiteselector' => [
'/^gss\.jwt\.key$/',
],
'integration_discourse' => [
'/^private_key$/',
'/^public_key$/',
Expand Down Expand Up @@ -1534,6 +1540,9 @@ private function getSensitiveKeys(string $app): array {
'user_saml' => [
'/^idp-x509cert$/',
],
'whiteboard' => [
'/^jwt_secret_key$/',
],
];

return $sensitiveValues[$app] ?? [];
Expand Down
1 change: 1 addition & 0 deletions lib/private/SystemConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class SystemConfig {
'onlyoffice' => [
'jwt_secret' => true,
],
'PASS' => true,
];

public function __construct(
Expand Down

0 comments on commit 1e5cb82

Please sign in to comment.