forked from mirrors/kingfisher
34 lines
820 B
YAML
34 lines
820 B
YAML
rules:
|
|
- name: Dub.co API Key
|
|
id: kingfisher.dub.1
|
|
pattern: |
|
|
(?x)
|
|
\b
|
|
(
|
|
dub_[A-Za-z0-9]{24}
|
|
)
|
|
\b
|
|
pattern_requirements:
|
|
min_digits: 1
|
|
min_entropy: 3.0
|
|
confidence: medium
|
|
examples:
|
|
- dub_QySryYEmGAcFDSGHsFy6eUc5
|
|
- dub_g7bN73nl6KqLGDZOtgQV5HKa
|
|
references:
|
|
- https://dub.co/docs/api-reference/tokens
|
|
- https://dub.co/blog/workspace-api-keys
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://api.dub.co/links
|
|
headers:
|
|
Authorization: "Bearer {{ TOKEN }}"
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: JsonValid
|