Skip to main content
Dotset CLI API Documentation / index / RedactorOptions

Interface: RedactorOptions

Defined in: src/mantle/redaction/redactor.ts:79 Redaction options

Properties

config?

optional config: MantleConfig;
Defined in: src/mantle/redaction/redactor.ts:93

enableContextual?

optional enableContextual: boolean;
Defined in: src/mantle/redaction/redactor.ts:90

enableEntropy?

optional enableEntropy: boolean;
Defined in: src/mantle/redaction/redactor.ts:87

entropyThreshold?

optional entropyThreshold: number;
Defined in: src/mantle/redaction/redactor.ts:88

excludeKeywords?

optional excludeKeywords: string[];
Defined in: src/mantle/redaction/redactor.ts:92

minConfidence?

optional minConfidence: number;
Defined in: src/mantle/redaction/redactor.ts:89

mode?

optional mode: ProtectionMode;
Defined in: src/mantle/redaction/redactor.ts:80

onExposure()?

optional onExposure: (match) => void;
Defined in: src/mantle/redaction/redactor.ts:83

Parameters

match

Returns

void

onPatternError()?

optional onPatternError: (error) => void;
Defined in: src/mantle/redaction/redactor.ts:84

Parameters

error

Returns

void

redactText?

optional redactText: string;
Defined in: src/mantle/redaction/redactor.ts:81

sensitiveKeywords?

optional sensitiveKeywords: string[];
Defined in: src/mantle/redaction/redactor.ts:91

strictPatternValidation?

optional strictPatternValidation: boolean;
Defined in: src/mantle/redaction/redactor.ts:86

trackedSecrets?

optional trackedSecrets: Map<string, string>;
Defined in: src/mantle/redaction/redactor.ts:82

useDefaultPatterns?

optional useDefaultPatterns: boolean;
Defined in: src/mantle/redaction/redactor.ts:85