secret

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package secret holds the canonical secret-env-key predicate shared by every site that filters or redacts environment variables before they reach a child process or an exported config. Keeping ONE list prevents the divergence that let a bare *_KEY (e.g. PRIVATE_KEY) be redacted on one path and leak on another (audit finding B-09).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSecretEnvKey

func IsSecretEnvKey(name string) bool

IsSecretEnvKey reports whether an environment variable name looks sensitive (case-insensitive substring match against secretEnvMarkers). It is a best-effort hygiene denylist, not a security boundary: callers strip or mask matching keys before a child process or an exported profile can observe them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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