redact

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package redact applies OpenUdon Ramen's conservative redaction policy on top of the shared evidence/redact primitives. Ramen deliberately redacts an entire string that mentions a secret-like keyword, because untrusted executor output may embed secrets in free text. Structural traversal and provider/credential pattern redaction are delegated to evidence/redact.

Index

Constants

View Source
const Value = ev.Value

Value is the marker substituted for redacted content.

Variables

This section is empty.

Functions

func Any

func Any(value any) any

Any redacts common JSON/YAML-like values.

func Map

func Map(in map[string]any) map[string]any

Map redacts a map[string]any document.

func SensitiveKey

func SensitiveKey(key string) bool

SensitiveKey reports whether a key name usually carries a secret value.

func String

func String(value string) string

String redacts secret-like content from value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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