Sensitive headers logged in info log #235
Labels
ext:authclient
status:ready for adoption
Feel free to implement this issue.
type:enhancement
Enhancement
This issue has originally been reported by @sanjakovac at yiisoft/yii2#16488.
Moved here by @samdark.
What steps will reproduce the problem?
What is the expected result?
Yii/httpclient/StreamTransport.send should log only basic information about request.
Token should not be logged in info log, since it may contain sensitive information. Values of headers carrying sensitive information, should be obfuscated.
What do you get instead?
Yii/httpclient/StreamTransport.send will log all the headers including username/password if it was sent with request.
Additional info
The text was updated successfully, but these errors were encountered: