Skip to content

Instantly share code, notes, and snippets.

@dcramer
Created January 18, 2013 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcramer/4569278 to your computer and use it in GitHub Desktop.
Save dcramer/4569278 to your computer and use it in GitHub Desktop.
XPath / JSON / Sentry filters concept
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