1 Commits

Author SHA1 Message Date
Roman Isecke
7ad8e88a95
feat: leverage logger to hide sensitive data in ingest logs (#2175)
### Description
Modify the logger being used by ingest to leverage a new class
implemented inheriting `logging.Formatter` which adds in some middleware
to update the message being logged to omit any sensitive content. It
does this by dynamically pulled out any valid json from the string being
logged and runs that through a `hide_sensitive_fields` method which
updated any values that are considered sensitive. Replaces the original
json strings with the `json.dumps` version of the new dictionary.
2023-11-29 18:16:23 +00:00