0
Config reports only redact a fixed list of keys
Source: nextcloud/server#67581 · opened by @susnux
Description
occ config:list system and the system report redact sensitive values based on a fixed list of key names (plus the admin-configurable config_extra_sensitive_values):
Secrets stored by apps in config.php (e.g. oidc_login_client_secret) are not on that list, so they are printed in clear text – and admins regularly paste this output into public issues, which is how such secrets end up public.
_Found by code reading._
Proposal
Additionally redact keys by name pattern (e.g. containing secret, password, token or key), or let apps declare their sensitive system config keys.
occ config:list system and the system report redact sensitive values based on a fixed list of key names (plus the admin-configurable config_extra_sensitive_values):
Secrets stored by apps in config.php (e.g. oidc_login_client_secret) are not on that list, so they are printed in clear text – and admins regularly paste this output into public issues, which is how such secrets end up public.
_Found by code reading._
Proposal
Additionally redact keys by name pattern (e.g. containing secret, password, token or key), or let apps declare their sensitive system config keys.
No pledges yet. Be the first to back this.
Comments
Similar requests
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.php
0 votes · 0 comments
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.php
0 votes · 0 comments
Encryption keys should also be stored in the database
0 votes · 0 comments
scan.nextcloud.com reports wrong data
0 votes · 0 comments
Allow for (optional) Redis Key Prefix
0 votes · 0 comments
No comments yet.