Rename API_KEY_OPENAI to API_KEY_SK with expanded pattern (#61)
authorStefan Gasser <redacted>
Mon, 26 Jan 2026 08:18:03 +0000 (09:18 +0100)
committerGitHub <redacted>
Mon, 26 Jan 2026 08:18:03 +0000 (09:18 +0100)
commitd9b4e9df877b4b6e4a287730a139b33a64b1c59d
tree49f31e72ebd8f9100f11de6597e618150cbeccab
parent5309f63db67c3976b0e7f4a6f3920979ec088450
Rename API_KEY_OPENAI to API_KEY_SK with expanded pattern (#61)

- Rename API_KEY_OPENAI to API_KEY_SK for broader coverage
- Expand pattern from /sk-.../ to /sk[-_].../ to match both hyphen and underscore
- Reduce minimum length from 45 to 20 chars for Stripe compatibility
- Now detects: OpenAI, Anthropic, Stripe, RevenueCat, and similar sk-prefixed keys
- Add tests for Stripe (sk_test_, sk_live_), Anthropic (sk-ant-), RevenueCat (sk_)
- Update all documentation and config examples
README.md
config.example.yaml
docs/concepts/secrets-detection.mdx
docs/configuration/secrets-detection.mdx
src/config.ts
src/masking/placeholders.test.ts
src/masking/placeholders.ts
src/secrets/detect.test.ts
src/secrets/mask.test.ts
src/secrets/patterns/api-keys.ts
src/secrets/patterns/types.ts
git clone https://git.99rst.org/PROJECT