{"action":"opened","issue":{"url":"https://api.github.com/repos/slackapi/steno/issues/42","repository_url":"https://api.github.com/repos/slackapi/steno","labels_url":"https://api.github.com/repos/slackapi/steno/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/slackapi/steno/issues/42/comments","events_url":"https://api.github.com/repos/slackapi/steno/issues/42/events","html_url":"https://github.com/slackapi/steno/issues/42","id":258507991,"number":42,"title":"Remove sensitive data before it's recorded","user":{"login":"aoberoi","id":494795,"avatar_url":"https://avatars2.githubusercontent.com/u/494795?v=4","gravatar_id":"","url":"https://api.github.com/users/aoberoi","html_url":"https://github.com/aoberoi","followers_url":"https://api.github.com/users/aoberoi/followers","following_url":"https://api.github.com/users/aoberoi/following{/other_user}","gists_url":"https://api.github.com/users/aoberoi/gists{/gist_id}","starred_url":"https://api.github.com/users/aoberoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aoberoi/subscriptions","organizations_url":"https://api.github.com/users/aoberoi/orgs","repos_url":"https://api.github.com/users/aoberoi/repos","events_url":"https://api.github.com/users/aoberoi/events{/privacy}","received_events_url":"https://api.github.com/users/aoberoi/received_events","type":"User","site_admin":false},"labels":[{"id":669500256,"url":"https://api.github.com/repos/slackapi/steno/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":674224840,"url":"https://api.github.com/repos/slackapi/steno/labels/security","name":"security","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-18T14:49:36Z","updated_at":"2017-09-18T14:49:36Z","closed_at":null,"author_association":"OWNER","body":"### Description\r\n\r\nIt's a pain to remove sensitive data after a recording has been made. It would be helpful to have an option to replace the sensitive data with different tokens at record-time. We'd have to supply a map in the configuration, like the following:\r\n\r\n`xoxp-123456-abcdefghijklmnop-qrstuvwxyz` -> `xoxp-FAKE-USER-TOKEN`\r\n\r\nthe replacement should be against the request and response bodies, and also the URLs.\r\n\r\nan issue to consider would be encoding. this should plug into a processing pipeline where it happens after the recorded data is formatted (JSON-parsed and/or form decoded).\r\n\r\n### Requirements (place an `x` in each of the `[ ]`)\r\n* [x] I've read and understood the [Contributing guidelines](https://github.com/slackapi/steno/blob/master/.github/contributing.md) and have done my best effort to follow them.\r\n* [x] I've read and agree to the [Code of Conduct](https://slackhq.github.io/code-of-conduct).\r\n* [x] I've searched for any related issues and avoided creating a duplicate issue.\r\n"}}
{"actor":{"display_login":"aoberoi"}}