Documentation
¶
Overview ¶
Package openai provides an OpenAI API Key secret detector.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct{}
Detector detects OpenAI API Keys.
func (*Detector) Description ¶
func (*Detector) Keywords ¶
Keywords intentionally includes the bare "sk-" prefix, not just "sk-proj-"/"sk-svcacct-": the legacy key format has no fixed marker beyond "sk-", so restricting Keywords() to the two specific prefixes would let the Aho-Corasick matcher gate legacy keys out before Scan ever runs on them — exactly the keyword/regex misalignment bug class (DETB-M-01) the project has already hit once. See review section 19-test-quality.md.
Click to show internal directories.
Click to hide internal directories.