Documentation
¶
Overview ¶
Package redact applies provider-declared redaction rules to resource AttributesJSON at the store boundary.
Provider packages register per-type rules in their init() blocks alongside scanner registration. Store.UpsertResources calls Apply once per row before insert — providers must not pre-sanitize.
Index ¶
Constants ¶
View Source
const Placeholder = "[REDACTED]"
Placeholder replaces redacted scalar values.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply walks attributesJSON under every rule registered for resourceType. Returns the input unchanged when no rules exist or JSON parse fails.
Types ¶
Click to show internal directories.
Click to hide internal directories.