Corj.resolveCaughtObjectReportRedactPolicy({ keys: ['password'] });
// { keys: ['password'], paths: [], patterns: [], replacement: '[redacted]', transform: null }
Corj.resolveCaughtObjectReportRedactPolicy({ patterns: [/sk-\w+/] }); // TypeError: redact.patterns must all be global; …
Validates and freezes a redaction policy;
undefinedandnullboth mean "no policy". Call it at startup so a bad policy fails before the first catch block that would use it.