Documentation
¶
Overview ¶
Package redact removes secrets from text before it is persisted (SPEC-ADDITIONS §18.4): the sleep consolidation cycle harvests arc history and stages guiding text that can carry credentials, so every staged string passes through here first. Detection is offloaded to betterleaks' maintained ruleset — this package is only the thin wrapper that replaces each detected secret with a placeholder.
Index ¶
Constants ¶
View Source
const Placeholder = "[REDACTED]"
Placeholder replaces a detected secret in redacted text.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redactor ¶
type Redactor struct {
// contains filtered or unexported fields
}
Redactor detects and removes secrets using betterleaks' embedded default ruleset. Build one with New and reuse it; Redact holds no per-call state.
Click to show internal directories.
Click to hide internal directories.