Added ability to hide sensative logs #825
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I know this isn't ready to be merged, but the main idea is there.
Below is an example of posting some splash code, along with some variables to be executed (I pretty printed the JSON for readability):
As you can clearly see it logs
posted_json
which contains our sensitive info (email, password, proxy configs, etc.) as well aslua_source
which can also contain sensitive information.As a solution I've added a command line arg that will disable the logging of these features.
Below is an example of the same code being posted to the endpoint with my changes in place
As you can see, there's no
lua_source
orposted_json
Please feel free to comment on this PR and we can work together to get the feature wrapped into splash!
Thanks
Jack