Problem/Motivation
Some events reported by Rollbar include potentially sensitive information (e.g. access tokenes).
Rollbar provides a "scrub_fields" configuration option to allow these data fields to be scrubbed: See https://docs.rollbar.com/docs/php-configuration-reference
scrub_fields: An array of field names to scrub out of the entire payload excluding the top level access_token. Values will be replaced with asterisks. If overriding, make sure to list all fields you want to scrub, not just fields you want to add to the default. Param names are converted to lowercase before comparing against the scrub list.
Currently, the Rollbar module does not support configuration of scrub_fields.
It would be useful it were possible to configure scrub_fields from the Rollbar settings form.
Proposed resolution
Add a "scrub_fields" configuration field to `RollbarSettingsForm`.
Comment | File | Size | Author |
---|---|---|---|
#7 | allow-configuration-scrub-fields-3409446-7.patch | 1.74 KB | Leo Pitt |
#2 | allow-configuration-scrub-fields-3409446-2.patch | 2.5 KB | Leo Pitt |
Comments
Comment #2
Leo Pitt CreditAttribution: Leo Pitt commentedPatch attached:
Comment #3
Leo Pitt CreditAttribution: Leo Pitt commentedComment #4
Leo Pitt CreditAttribution: Leo Pitt at SystemSeed commentedComment #5
intrafusionThis is unnecessarily complicated, the following changes can be made:
Also a merge request is much easier for a maintainer to review and accept
Comment #6
Leo Pitt CreditAttribution: Leo Pitt at SystemSeed commentedThanks, new patch incoming.
Comment #7
Leo Pitt CreditAttribution: Leo Pitt at SystemSeed commentedUpdated patch attached.
Comment #8
Leo Pitt CreditAttribution: Leo Pitt at SystemSeed commentedComment #10
intrafusion