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
Redact anything resembling Stripe keys when logging #894
Comments
For anyone looking for it, I believe this RegEx matches anything stripe-key-like: /(pk|sk)_(test|live)_[A-Za-z0-9]+/ Preview on regexpal.com
/(pk|sk)_(test|live)_[A-Za-z0-9]{24}}/ |
@jonchurch Just for completeness, we have API keys of different lengths and we will keep increasing the length over time. Also many API keys have different formats, legacy ones don't have |
That's good information, thank you. For anyone who finds this later, it's likely best for you to scrub specific fields from logging, and only use a regex as a backup or to verify output in tests w/ testing keys. |
No description provided.
The text was updated successfully, but these errors were encountered: