Avoid sending passwords in the API#39841
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
C0rby
left a comment
There was a problem hiding this comment.
Looks good to me. But we should also tackle the other things like private key or OAuth2 secret.
|
There is no changelog. Tests? There could be unit tests to check that the special password is produced in output, and that it is correctly recognised when it arrives as input. And/or I can get someone to add a couple of API acceptance tests that check GET and POST of this stuff. |
C0rby
left a comment
There was a problem hiding this comment.
Yeah, @phil-davis is right. At least a unit test and a changelog would be good.
612e514 to
8f7e81c
Compare
AlexAndBear
left a comment
There was a problem hiding this comment.
LGTM so far.
But we need to add tests, that the actual password won't be changed if you provided the REDACTED_PASSWORD via a patch.
If this would ever happen, it might be a crucial bug, so let's better be safe here.
|
Kudos, SonarCloud Quality Gate passed! |








Description
Passwords could be seen in several requests made by ownCloud
Related Issue
https://github.com/owncloud/enterprise/issues/5036
Motivation and Context
How Has This Been Tested?
Manually checked with some external storages and some operations on them.
Screenshots (if appropriate):
Types of changes
Checklist: