Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/observability / / RedactionValidatorOptions
Interface: RedactionValidatorOptions
Defined in: packages/observability/src/redaction/types.ts:66
Configuration shape for createRedactionValidator.
Stable
Extended by
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
customValidator? | readonly | (input) => | RedactionOutput | null | Optional pluggable additional check, fired after the pattern scan succeeds. The callback returns null to drop the value or a sanitized RedactionOutput to forward. | packages/observability/src/redaction/types.ts:103 |
disabledPatterns? | readonly | readonly string[] | Per-name deny-list. Patterns listed here are skipped entirely. Applied after enabledPatterns. | packages/observability/src/redaction/types.ts:92 |
enabledPatterns? | readonly | readonly string[] | Per-name allow-list. When provided, only patterns whose name appears here are evaluated. Empty array disables all pattern matching (tier filtering still applies). | packages/observability/src/redaction/types.ts:87 |
failOnUnredactedSensitive? | readonly | boolean | When true, throw a RedactionValidationError on any drop. Useful in tests; production should keep this off so the validator silently drops + counts. | packages/observability/src/redaction/types.ts:76 |
id? | readonly | string | Identifier reported via validator.id. Defaults to 'default'. | packages/observability/src/redaction/types.ts:68 |
minTier? | readonly | Sensitivity | Lowest tier that may pass through the validator. Default: 'public'. | packages/observability/src/redaction/types.ts:70 |
onViolation? | readonly | RedactionViolationCallback | Optional sink invoked on every violation. Receives only sanitized data; never receives secret values. | packages/observability/src/redaction/types.ts:97 |
patterns? | readonly | readonly RedactionPattern[] | Pattern catalogue. Defaults to the 14 built-in default-on patterns. Custom patterns can extend or replace this list. | packages/observability/src/redaction/types.ts:81 |