php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

RequestDataCollector: How to mask passwords?

Open caugner opened this issue 6 years ago • 0 comments

Background: So far, I had only displayed debug data related to the current request. However, I have recently switched to FileStorage to debug non-HTML requests with more data than could fit into the headers.

Problem: The RequestData collects the POSTed password during login, password change etc.

Question: How can I prevent the password from appearing among the debug data?

PS: Ideally I would tell the RequestDataCollector to mask certain fields like Sentry's sanitizeKeys:

grafik

caugner avatar Nov 13 '19 17:11 caugner