twilio

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package twilio provides a detector for paired Twilio API Key credentials.

Index

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

func (d *Detector) AuthoritativeOnOverlap() bool

AuthoritativeOnOverlap lets the engine prefer this provider-specific paired finding over a structured-config fallback for the same secret bytes.

func (*Detector) Description

func (d *Detector) Description() string

Description returns a human-readable description.

func (*Detector) ID

func (d *Detector) ID() string

ID returns the stable detector identifier.

func (*Detector) Keywords

func (d *Detector) Keywords() []string

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.

func (*Detector) Scan

func (d *Detector) Scan(_ context.Context, data []byte) []detector.RawFinding

Scan reports the secret value as Raw and carries only non-secret SIDs in ExtraData. It never stores the API Key Secret in ExtraData.

func (*Detector) Severity

func (d *Detector) Severity() finding.Severity

Severity returns the default severity level for a leaked API Key Secret.

Jump to

Keyboard shortcuts

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