Задать вопрос

Тел: +7 965 3737 888

579

Просмотров

0

Ответов

Mask sensitive POST fields in error e-mails

For PyCon we have our crash messages go to a mailman group so that people working on the site would be aware of issues. This saved us many times. But sensitive information would some times come up such as login passwords and fields we did not want going on the list.

the solution was to mask these POST fields when an exception occurs and is being handled. This is simple drop-in code which will mask the values of POST arguments which contain keywords (such as 'password', 'protected', and 'private').

Вопрос полезен? Да0/Нет0
file_3964.py(756.0б)
None