honeybadger-io / honeybadger-python

Send Python and Django errors to Honeybadger.
https://www.honeybadger.io/
MIT License
15 stars 26 forks source link

Filter nested params with params_filters #57

Closed joshuap closed 4 years ago

joshuap commented 4 years ago

A customer mentioned that the following params are not being filtered:

My flask app receives some sensitive information in request's form data:

{"thing": {"password": "xxx"}}

@demsullivan could we support this?

joshuap commented 4 years ago

Here's a sample test that the customer sent:

self.app.test_request_context(path='/test', base_url='http://server:1234/path', method='POST', data={'request': json.dumps({'thing': {'password': 'xxx'}})}):`