-
Notifications
You must be signed in to change notification settings - Fork 32
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
Redacting API keys #13
Comments
@rstacruz: Sounds doable. The I'm hoping to spend some time on some much-needed updates to this module over the holidays, but pull requests are always welcome! |
Neat, are you saying I can modify |
@rstacruz: You can't |
@avik-das Do you think it's possible to add a feature like Ruby VCR where you can filter sensitive data? We'd need something like this: sepia.filterSensitiveData("<MY_API_KEY1>", () => process.env.MY_API_KEY1);
sepia.filterSensitiveData("<MY_API_KEY2>", () => process.env.MY_API_KEY2);
// etc In record mode, the value returned by the function is replace by the string provided as the first argument. In playback mode, all strings matching the first argument will be replaced with the value returned by the function. |
Is it possible to get API keys out of the .headers files?
They are in
.headers
files like so:It'd be great if they can be censored out.
The text was updated successfully, but these errors were encountered: