Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: method to scrub logs #184

Open
brobare opened this issue Mar 19, 2022 · 1 comment
Open

FR: method to scrub logs #184

brobare opened this issue Mar 19, 2022 · 1 comment

Comments

@brobare
Copy link
Contributor

brobare commented Mar 19, 2022

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"
    ]
}
@rhwendt
Copy link
Contributor

rhwendt commented Dec 21, 2022

We could use SecretStr from pydantic for this.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants