Documentation
¶
Overview ¶
ABOUTME: Secret detection and masking pipeline stage for sync pipeline. ABOUTME: Detects credentials/tokens via regex and replaces with [REDACTED:pattern_name].
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaskResult ¶
MaskResult holds the output of secret masking: masked text, count, and pattern names.
func MaskSecrets ¶
func MaskSecrets(content string) MaskResult
MaskSecrets applies all secret patterns to the content, replacing matches with [REDACTED:pattern_name]. Returns the masked text, count of secrets found, and a deduplicated list of which pattern names matched.
Click to show internal directories.
Click to hide internal directories.