sensitive

package
v0.2.105 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package sensitive centralizes defense-in-depth recognition and redaction of credential-shaped keys before values reach diagnostics or persistent logs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key(key string) bool

Key reports whether a label conventionally carries credential material. Separators are canonicalized so human-readable process output such as "Unseal Key" receives the same protection as UNSEAL_KEY configuration.

func RedactText

func RedactText(text string) string

RedactText removes values from sensitive key/value lines while retaining the label and delimiter for useful diagnostics. It operates on arbitrary text so stdout/stderr forwarded through the logging layer receives the same guarantee as structured fields.

Types

This section is empty.

Jump to

Keyboard shortcuts

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