Documentation
¶
Overview ¶
Package generic provides general-purpose secret detectors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyDetector ¶
type APIKeyDetector struct{}
APIKeyDetector detects generic API key assignments.
func (*APIKeyDetector) Description ¶
func (d *APIKeyDetector) Description() string
func (*APIKeyDetector) ID ¶
func (d *APIKeyDetector) ID() string
func (*APIKeyDetector) Keywords ¶
func (d *APIKeyDetector) Keywords() []string
func (*APIKeyDetector) Scan ¶
func (d *APIKeyDetector) Scan(_ context.Context, data []byte) []detector.RawFinding
Scan searches the data for generic API key assignment patterns. Applies Shannon entropy filtering after regex matching; matches with entropy below 3.0 are skipped as unlikely to be real secrets.
func (*APIKeyDetector) Severity ¶
func (d *APIKeyDetector) Severity() finding.Severity
Click to show internal directories.
Click to hide internal directories.