forked from mirrors/kingfisher
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
rules:
|
|
- name: Pingdom API Token
|
|
id: kingfisher.pingdom.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
pingdom
|
|
(?:.|[\n\r]){0,16}?
|
|
(?:SECRET|PRIVATE|ACCESS|KEY|TOKEN)
|
|
(?:.|[\n\r]){0,16}?
|
|
\b
|
|
(
|
|
[A-Za-z0-9_-]{64}
|
|
)
|
|
\b
|
|
min_entropy: 3.5
|
|
confidence: medium
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
examples:
|
|
- pingdom_api_token = "ofOhK18Ca6w4S_XmInGv0QPkqly-rbRBBoHsp_2FEH5QnIbH0VZhRPO3tlvrjMIK"
|
|
- PINGDOM_TOKEN=abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890
|
|
references:
|
|
- https://docs.pingdom.com/api/
|
|
- https://pingdom.com/resources/pingdom-api
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://api.pingdom.com/api/3.1/checks
|
|
headers:
|
|
Authorization: "Bearer {{ TOKEN }}"
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: StatusMatch
|
|
status: [401, 403]
|
|
negative: true
|
|
- type: JsonValid
|