Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSensitiveKey ¶
IsSensitiveKey checks if a key name indicates sensitive data
func MaskConfig ¶
func MaskConfig(cfg interface{}) map[string]interface{}
MaskConfig masks sensitive fields in a configuration struct or map
func MaskSensitiveEnvVars ¶
MaskSensitiveEnvVars parses environment variables and masks sensitive ones
Types ¶
type MaskedValue ¶
type MaskedValue struct {
Masked string `json:"masked"`
}
MaskedValue represents a masked sensitive value in structured log format
func MaskValue ¶
func MaskValue(value string) MaskedValue
MaskValue returns a masked version of sensitive data wrapped in a MaskedValue struct
Source Files
¶
- masking.go
Click to show internal directories.
Click to hide internal directories.