netpalm
netpalm copied to clipboard
FR: method to scrub logs
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"
]
}
We could use SecretStr from pydantic for this.
https://docs.pydantic.dev/usage/types/#secret-types