redact

package
v0.128.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package redact is THE ONE secret redactor: what looks like a credential in a line of text an agent or a page will be shown is replaced by Mark.

🔴 ONE COPY, EVERY CALLER. It was internal/mirrorhost's (the pending-action summary a waiting session sends, below) and moved here unchanged when the chief's sessions_overview began quoting session transcripts (internal/api's sessions_overview.go); the host also runs every field of a rendered view's transcript stream through it (internal/mirrorhost's redact_stream.go). A second redactor would drift from this one — the shapes it knows are a list that grows — so all of them call this.

Index

Constants

View Source
const Mark = "«redacted»"

Mark replaces each secret.

Variables

This section is empty.

Functions

func Secrets

func Secrets(s string) string

Secrets is s with every value that looks like a secret replaced by «redacted» (see the comment above for the shapes).

Types

This section is empty.

Jump to

Keyboard shortcuts

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