dataScrubbingRelayPiiConfig.js 423 B

1234567891011121314
  1. export function DataScrubbingRelayPiiConfig() {
  2. return {
  3. rules: {
  4. 0: {type: 'password', redaction: {method: 'replace', text: 'Scrubbed'}},
  5. 1: {type: 'creditcard', redaction: {method: 'mask'}},
  6. 2: {
  7. type: 'pattern',
  8. pattern: '[a-zA-Z0-9]+',
  9. redaction: {method: 'replace', text: 'Placeholder'},
  10. },
  11. },
  12. applications: {password: ['0'], $message: ['1', '2']},
  13. };
  14. }