Skip to content

contextcraft.SecretPolicy

Python
SecretPolicy(mode: SecretMode = 'redact', allow_paths: tuple[str, ...] = ()) -> None

Output protection mode and path exemptions.

An allowed path bypasses both sensitive-file suppression and content scanning.

Attributes:

contextcraft.SecretPolicy.allow_paths

Python
allow_paths: tuple[str, ...] = ()

contextcraft.SecretPolicy.mode

Python
mode: SecretMode = 'redact'