Lenses CLI: redaction types for data policies

Hello folks!

I’m getting some bad behaviour with policies and the redaction type, even though I created the policy with the redaction field established as All in the yaml file, once the policy is created this field is fixed to None. This is a little bit tedious because the policy should be manually modified once it’s created.

Could you help me to understand what is wrong?

Here is an example of the policy in yaml format:

name: policy_example
impactType: HIGH
category: PII
redaction: All
datasets:
  - topic.exmple
fields:
  - field.example
obfuscation: None


Hi @superbrain_bug

I found the issue with your configuration. You’re using redaction in your request, but the correct field name is obfuscation.

To fix:

  • Change redaction to obfuscation

  • Set the value to ALL

  • Remove the redaction field entirely

Please update your configuration and let me know if you need any further assistance. We are curious if you used redaction because of a misleading documentation from us.

Regards,

1 Like