security

package
v2.7.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultSensitiveFields

func DefaultSensitiveFields() []string

func DefaultSensitiveFieldsMap

func DefaultSensitiveFieldsMap() map[string]bool

DefaultSensitiveFieldsMap provides a cached map version of DefaultSensitiveFields for efficient lookup operations. All field names are lowercase for case-insensitive matching. The map is initialized only once.

func IsSensitiveField

func IsSensitiveField(fieldName string) bool

IsSensitiveField checks if a field name is considered sensitive based on the default sensitive fields list. The check is case-insensitive. Short tokens (like "key", "auth") use exact token matching to avoid false positives, while longer patterns use word-boundary matching.

Types

This section is empty.

Jump to

Keyboard shortcuts

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