forked from mirrors/kingfisher
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
rules:
|
|
- name: Daily API Key
|
|
id: kingfisher.daily.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
daily
|
|
(?:.|[\n\r]){0,32}?
|
|
(?:SECRET|PRIVATE|ACCESS|KEY|TOKEN|API)
|
|
(?:.|[\n\r]){0,32}?
|
|
\b
|
|
(
|
|
[A-Za-z0-9]{64}
|
|
)
|
|
\b
|
|
min_entropy: 3.5
|
|
confidence: medium
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
examples:
|
|
- DAILY_API_KEY=abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890
|
|
- daily_api_key = "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1f2a3b4c5d6a7b8c9d0e1f2"
|
|
references:
|
|
- https://docs.daily.co/reference/rest-api
|
|
- https://docs.daily.co/reference/rest-api/rooms/list-rooms
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://api.daily.co/v1/rooms?limit=1
|
|
headers:
|
|
Authorization: "Bearer {{ TOKEN }}"
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: WordMatch
|
|
words:
|
|
- '"data"'
|
|
- '"total_count"'
|
|
match_all_words: true
|