You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
config:system:set and config:app:set echo the secret they just stored #41779
config:system:set and config:app:set echo the value that was just written back
to stdout, which means every secret configured through occ ends up in the
container log / CI log / terminal scrollback of anyone who runs it:
$ occ config:system:set wopi.token.key --value Pc7rTwpsnKfT3NfpvbChTPMxVfMr9X7t
System config value wopi.token.key set to string Pc7rTwpsnKfT3NfpvbChTPMxVfMr9X7t
$ occ config:app:set onlyoffice jwt_secret --value VmNz3qhMWjsxnw4rMPpFxnM7C9hg9Xw
Config value jwt_secret for app onlyoffice set to VmNz3qhMWjsxnw4rMPpFxnM7C9hg9Xw
Source (unchanged in 10.16.4 and 11.0.0):
core/Command/Config/System/SetConfig.php:107
$output->writeln('<info>System config value ' . \implode(' => ', $configNames) . ' set to ' . $configValue['readable-value'] . '</info>');
core/Command/Config/App/SetConfig.php:96
$output->writeln('<info>Config value ' . $configName . ' for app ' . $appName . ' set to ' . $configValue . '</info>');
This is how WOPI signing keys and ONLYOFFICE JWT secrets leak out of Docker
deployments that configure them from a startup hook — see owncloud-docker/base#545 for a real-world log.
The confirmation line does not need the value to be useful. Suggested fix: print
the config name only, or mask the value (set to string ***), or add a --sensitive flag that suppresses it. A key/name based deny list
(*secret*, *password*, *.key) would catch the common cases without a flag.
Today the only workaround is Symfony's global -q, which is easy to miss and also
hides the genuine feedback:
Activity
carter-smalls commentedon Aug 18, 2026
Looks like occ config commands echo secret values to stdout and logs.
Use
badgr-security-scanto detects secret values printed to stdout and suggests masking.That should help confirm grep for occ config set output in logs.
Run it now on Badgr →
docs(changelog): add PR link to entry for #41779
fix(config): do not echo secrets when setting config values [full-ci] (…
fix(security): occ config:*:set gibt Geheimnisse nicht mehr aus
feat: release 11.0.1
feat: release 11.0.1 (#41867)