I’m attempting to use Advanced Data Scrubbing to remove some sensitive data from a payload being sent as extras.currentState. The payload is a deeply nested object, but it looks something like this:
I specifically want to filter the extras.currentState,context.viewer.userbackupCodes property, which may either be null or an Array. I’ve tried various incantations in the Advanced Data Scrubbing settings for the project, but none have worked. Any suggestions?
That’s actually what I currently have there, and it doesn’t work (in this case it’s None because the value is null but what’s more important is redacting it when it’s an array of data). When I tried earlier with having it replace the data rather than remove it, it would never be replaced.
Ah, I think I understand it now – it’s not removing them because there’s nothing to remove since the value is null. I tried with a different array field, and it’s kind of working; it’s finding the field, but instead replacing the values with another string or removing them, I’m seeing <invalid> instead. For example, in the roles field here, which I’ve configured with [Mask] [Anything] from [extra.currentState.context.viewer.user.roles.*] (the same thing happens if I use [Replace] instead of [Mask]).