yeti-platform / yeti

Your Everyday Threat Intelligence
https://yeti-platform.io/
Apache License 2.0
1.76k stars 291 forks source link

Improved Log Redaction and Filtering #1151

Closed 1nv8rzim closed 1 month ago

1nv8rzim commented 1 month ago

This PR implements a new LogFilter() in logger.py which allows for redaction of specific fields and ignoring the logging of specific endpoints.

With this the logging middleware in webapp.py is modified to push all logs and have logger.py handle them and likewise attempt to convert all requests to a JSON format (Yeti login uses multipart/form-data)