Documentation
¶
Overview ¶
Package twilio provides a detector for paired Twilio API Key credentials.
Index ¶
- type Detector
- func (d *Detector) AuthoritativeOnOverlap() bool
- func (d *Detector) Description() string
- func (d *Detector) ID() string
- func (d *Detector) Keywords() []string
- func (d *Detector) PlaygroundPatternContract() detector.PlaygroundPatternContract
- func (d *Detector) Scan(_ context.Context, data []byte) []detector.RawFinding
- func (d *Detector) Severity() finding.Severity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct{}
Detector detects Twilio API Key Secrets only when paired with a nearby API Key SID. A bare SK SID is intentionally not a finding because it is not confidential and cannot authenticate to Twilio.
func (*Detector) AuthoritativeOnOverlap ¶ added in v1.8.0
AuthoritativeOnOverlap lets the engine prefer this provider-specific paired finding over a structured-config fallback for the same secret bytes.
func (*Detector) Description ¶
Description returns a human-readable description.
func (*Detector) Keywords ¶
Keywords returns the invariant role component shared by every supported secret assignment. The matcher lowercases chunks before keyword selection, so this skips unrelated files without losing casing or separator variants.
func (*Detector) PlaygroundPatternContract ¶ added in v1.8.0
func (d *Detector) PlaygroundPatternContract() detector.PlaygroundPatternContract
PlaygroundPatternContract prevents the site generator from publishing the SID and secret-assignment regexes as independent OR triggers.