redact

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package redact scrubs secret-shaped values from text seamark stores or displays: audited command lines (the gate's opt-in raw log), mined review-comment bodies, and fix-commit patches. It is best-effort pattern scrubbing, not a guarantee — but a credential a reviewer quoted once must not be re-broadcast into agent context on every edit, which is exactly what an unredacted finding does.

A leaf package: the gate and the miners (reviews, fixes) must scrub identically, and none of them may import another for it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Secrets

func Secrets(s string) string

Secrets scrubs known secret-bearing patterns from s.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL