Created
January 18, 2013 22:36
-
-
Save dcramer/4569278 to your computer and use it in GitHub Desktop.
XPath / JSON / Sentry filters concept
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The gist is, you give a path expression (xpath-like), a condition, and a action. | |
---- | |
Scrub all local vars in a stackframe where the key matches something like a password: | |
Path: | |
//sentry.interfaces.Stacktrace/frames[*]/vars/key | |
Condition: | |
Matches: (password|passwd|secret) | |
Action: | |
Set to '' | |
---- | |
Scrub all values where the key matches something like a password: | |
Path: | |
* # this makes no sense | |
Condition: | |
Matches: (password|passwd|secret) | |
Action: | |
Set to '' | |
Maybe the answer here is its not just a path, but theres a component that says "select key" or "select tree". | |
---- | |
Remove all local vars | |
Path: | |
//sentry.interfaces.Stacktrace/frames[*]/vars | |
Action: | |
Remove value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment