sensitive

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPrefixes = []string{
	"ANTHROPIC_API_KEY=",
	"GH_TOKEN=",
	"GITHUB_TOKEN=",
	"OPENAI_API_KEY=",
	"OPENCODE_API_KEY=",
}

DefaultPrefixes lists environment variable prefixes that contain secrets.

Functions

func MergePrefixes

func MergePrefixes(extra []string) []string

MergePrefixes returns a deduplicated, normalized list of sensitive environment variable prefixes by combining DefaultPrefixes with extra.

func NormalizePrefix

func NormalizePrefix(prefix string) string

NormalizePrefix trims whitespace and ensures the prefix ends with "=".

Types

This section is empty.

Jump to

Keyboard shortcuts

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