Skip to content

Release 0.4.1

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Jun 18:11
8742fb7
[PLAT-319] Redact log (#28)

* Add configurable secret keywords

* add proper testing tools, add test for adding different types of sensitive keywords

* wip

* Add `sensitive_keywords` info to documentation

* Remove extra args

* Fix tests

* Remove .github dir from gitignore

* Reintroduce replace_keys args

It is used in another context with a custom value to redact headers

* Testing nested keys

* Extract redacting to a `Redactor`, override `PierLogging::Logger`s log method

* Test redactor for hash

* Move require declaration to Redactor class

* Test redaction for arrays

* Fix identation

* Double quotes strings

* Rename var for clarity

* Redacting all params

Ougai is very flexible and data can be in any position.

* Add logger test without assertions

* Add assertions

* Refactor test

* Move sensitive_keyword to LoggerConfiguration

* Override `_log` not `log`, fix Heisembug

* version bump and fix log readability

* Add squad to list of authors

* Remove unused test

* remove extraneous redaction from request logger, base logger already redacts everything

* Bump version

Co-authored-by: Leonardo Bighetti <[email protected]>
Co-authored-by: Bruno Arakaki <[email protected]>