kingfisher/crates/kingfisher-rules/data/rules/databento.yml
2026-03-29 10:41:54 -07:00

34 lines
901 B
YAML

rules:
- name: Databento API Key
id: kingfisher.databento.1
pattern: |
(?x)
\b
(
db-[A-Za-z0-9]{29}
)
\b
pattern_requirements:
min_digits: 2
min_lowercase: 2
min_entropy: 3.3
confidence: medium
examples:
- DATABENTO_API_KEY=db-abc123def456ghi789jkl012mno34
references:
- https://databento.com/docs/api-reference-historical
- https://databento.com/docs/portal/api-keys
validation:
type: Http
content:
request:
method: GET
url: https://hist.databento.com/v0/metadata.list_datasets
headers:
Authorization: "Basic {{ TOKEN | append: ':' | b64enc }}"
Accept: application/json
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: JsonValid