forked from mirrors/kingfisher
39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
rules:
|
|
- name: Ably API Key
|
|
id: kingfisher.ably.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
ably
|
|
(?:.|[\n\r]){0,32}?
|
|
(?:SECRET|PRIVATE|ACCESS|KEY|TOKEN|API)
|
|
(?:.|[\n\r]){0,32}?
|
|
\b
|
|
(
|
|
[A-Za-z0-9_-]{8}\.[A-Za-z0-9_-]{8}:[A-Za-z0-9_-]{24}
|
|
)
|
|
\b
|
|
min_entropy: 3.5
|
|
confidence: medium
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
examples:
|
|
- ABLY_API_KEY=abc12345.xyz78901:secretkeyvalue1234567890
|
|
- ably_key = "appid123.keyid987:AbCdEfGhIjKlMnOpQrStUvWx"
|
|
references:
|
|
- https://ably.com/docs/auth/basic
|
|
- https://ably.com/docs/api/rest-api
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://rest.ably.io/channels?limit=1
|
|
headers:
|
|
Authorization: "Basic {{ TOKEN | b64enc }}"
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: JsonValid
|