forked from mirrors/kingfisher
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
rules:
|
|
- name: Pinecone API Key
|
|
id: kingfisher.pinecone.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
pinecone
|
|
(?:.|[\n\r]){0,32}?
|
|
(?:SECRET|PRIVATE|API|KEY|TOKEN)
|
|
(?:.|[\n\r]){0,16}?
|
|
\b
|
|
(
|
|
[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}
|
|
)
|
|
\b
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
min_entropy: 3.0
|
|
confidence: medium
|
|
examples:
|
|
- PINECONE_API_KEY=62b0dbfe-3489-4b79-b850-34d911527c88
|
|
- pinecone_key = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
references:
|
|
- https://docs.pinecone.io/reference/api/authentication
|
|
- https://docs.pinecone.io/reference/api/2025-10/control-plane/list_indexes
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://api.pinecone.io/indexes
|
|
headers:
|
|
Api-Key: "{{ TOKEN }}"
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: JsonValid
|