forked from mirrors/kingfisher
- Added rules for meraki, duffel, finnhub, frameio, freshbooks, gitter, infracost, launchdarkly, lob, maxmind, messagebird, nytimes, prefect, salingo, sendinblue, sentry, shippo, twitch, typeform
31 lines
797 B
YAML
31 lines
797 B
YAML
rules:
|
|
- name: Prefect API Token
|
|
id: kingfisher.prefect.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
(
|
|
pnu_[a-z0-9]{36}
|
|
)
|
|
\b
|
|
min_entropy: 3.0
|
|
confidence: medium
|
|
examples:
|
|
- PREFECT_API_TOKEN=pnu_1234567890abcdef1234567890abcdef1234
|
|
- '"prefectToken": "pnu_abcdefabcdefabcdefabcdefabcdefabcdef"'
|
|
references:
|
|
- https://docs.prefect.io/latest/concepts/api_keys/
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://api.prefect.cloud/api/me
|
|
headers:
|
|
Authorization: 'Bearer {{ TOKEN }}'
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status:
|
|
- 200
|