forked from mirrors/kingfisher
36 lines
No EOL
907 B
YAML
36 lines
No EOL
907 B
YAML
rules:
|
|
- name: MessageBird API Token
|
|
id: kingfisher.messagebird.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
message[_-]?bird
|
|
(?:.|[\n\r]){0,32}?
|
|
\b
|
|
(
|
|
[a-z0-9]{25}
|
|
)
|
|
\b
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
min_entropy: 3.4
|
|
confidence: medium
|
|
examples:
|
|
- 'MESSAGEBIRD_API_KEY=abcdefghijklmno12rstuvwxy'
|
|
- "messagebird_token: 'abcde12345fghij67890klmno'"
|
|
references:
|
|
- https://developers.messagebird.com/api/#authentication
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://rest.messagebird.com/balance
|
|
headers:
|
|
Authorization: 'AccessKey {{ TOKEN }}'
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: JsonValid |