kingfisher/crates/kingfisher-rules/data/rules/upcloud.yml
2026-04-22 20:41:44 -07:00

35 lines
938 B
YAML

rules:
- name: UpCloud API Token
id: kingfisher.upcloud.1
pattern: |
(?xi)
\b
(
ucat_[0-9A-HJKMNP-TV-Z]{26}
)
\b
pattern_requirements:
min_digits: 2
min_uppercase: 4
min_entropy: 3.5
confidence: medium
examples:
- 'UPCLOUD_API_TOKEN=ucat_01KPW6N68RKV5WV44Y2C5CKTZY'
- 'upcloud_token: "ucat_01J9K4BNZM3RGXW7VDQFTHY5PC"'
references:
- https://upcloud.com/docs/guides/managing-api-tokens/
- https://developers.upcloud.com/1.3/24-api-tokens/
validation:
type: Http
content:
request:
method: GET
url: https://api.upcloud.com/1.3/account
headers:
Accept: application/json
Authorization: "Bearer {{ TOKEN }}"
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: JsonValid