Skip to content

Conversation

@AndyScherzinger
Copy link
Member

@AndyScherzinger AndyScherzinger commented Jan 25, 2025

local repo copy of approved PR #49826

Closes #49826


Summary

Do not display sensitive values in CLI output.

Before:

./occ config:app:set --value "secret!" --sensitive --type string my_app my_secret_pass        

⚠️ my pass is visible in output as plain text

Config value 'my_secret_pass' for app 'my_app' is now set to 'secret!', stored as string in fast cache

After:

./occ config:app:set --value "secret!" --sensitive --type string my_app my_secret_pass             

☑️ my pass is displayed as <sensitive>

Config value 'my_secret_pass' for app 'my_app' is now set to '<sensitive>', stored as string in fast cache

Checklist

in order to hide sensitive data from logs

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
@AndyScherzinger AndyScherzinger added enhancement 4. to release Ready to be released and/or waiting for tests to finish feature: occ labels Jan 25, 2025
@AndyScherzinger
Copy link
Member Author

/backport to stable31

@AndyScherzinger AndyScherzinger merged commit 77315cb into master Jan 25, 2025
189 checks passed
@AndyScherzinger AndyScherzinger deleted the fix/49826/occ_hide_sensitive_values branch January 25, 2025 16:51
@nextcloud-bot nextcloud-bot mentioned this pull request Aug 19, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement feature: occ

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants