redaction

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package redaction centralizes secret, token, raw payload, and trace redaction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cloud

func Cloud(input string) string

func Credentials added in v0.3.0

func Credentials(input string, secrets ...string) string

Credentials redacts standard credential shapes and any exact secret values already known to the caller. It is intended for diagnostics and evidence, never as a substitute for keeping secrets out of those surfaces entirely.

Types

type SensitiveClass added in v0.1.1

type SensitiveClass string
const (
	SensitiveAuthorization SensitiveClass = "authorization_header"
	SensitiveCookie        SensitiveClass = "cookie_header"
	SensitiveWebhook       SensitiveClass = "webhook_url"
	SensitiveProvider      SensitiveClass = "provider_payload"
	SensitiveSecret        SensitiveClass = "secret_pattern"
	SensitiveAbsolutePath  SensitiveClass = "absolute_path"
	SensitivePinaxInternal SensitiveClass = "pinax_internal_reference"
	SensitivePrivateBody   SensitiveClass = "private_body_leak"
)

func ScanSensitiveClasses added in v0.1.1

func ScanSensitiveClasses(input string) []SensitiveClass

Jump to

Keyboard shortcuts

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