WeTransfer / Diagnostics

Allow users to easily share Diagnostics with your support team to improve the flow of fixing bugs.
MIT License
953 stars 55 forks source link

Make it possible to detect sensitive data #17

Closed AvdLee closed 4 years ago

AvdLee commented 4 years ago

Try to find words like "token" and either filter it out or throw an error

mustiikhalil commented 4 years ago

What if we pass in an array of keys that we want to filter out? example: Diagnostics.Filter(keys: ["Token", "email"])

AvdLee commented 4 years ago

@mustiikhalil thanks for the suggestion! I went for a slightly more advanced approach that is more flexible. See the attached PR 🙂

Let me know your thoughts!

mustiikhalil commented 4 years ago

Looks great!