netpalm icon indicating copy to clipboard operation
netpalm copied to clipboard

FR: method to scrub logs

Open brobare opened this issue 4 years ago • 1 comments

Per slack conversation with @tbotnz opening a ticket to create an impelmention of "log scrubbing". Idea being, a method of removing certain patterns, such as usernme/password, from being presented in logs.

One idea on the implementation would be to allow for customized patterns to be matched:

{
    "scrub": [
         "password",
         "userrname",
         "some_special_key",
         "x-api-key"
    ]
}

brobare avatar Mar 19 '22 01:03 brobare

We could use SecretStr from pydantic for this.

https://docs.pydantic.dev/usage/types/#secret-types

rhwendt avatar Dec 21 '22 13:12 rhwendt