forked from mirrors/kingfisher
34 lines
914 B
YAML
34 lines
914 B
YAML
rules:
|
|
- name: Persona API Key
|
|
id: kingfisher.persona.1
|
|
pattern: |
|
|
(?x)
|
|
\b
|
|
(
|
|
persona_(?:production|sandbox)_[a-z0-9_-]{20,80}
|
|
)
|
|
\b
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
min_lowercase: 4
|
|
min_entropy: 3.5
|
|
confidence: high
|
|
categories: [api, key]
|
|
examples:
|
|
- 'PERSONA_API_KEY=persona_production_abc123def456ghi789jkl012mno345pqr'
|
|
- 'api_key: persona_sandbox_abc123def456ghi789jkl012mno345pqr'
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://withpersona.com/api/v1/accounts
|
|
headers:
|
|
Authorization: Bearer {{ TOKEN }}
|
|
Persona-Version: "2023-01-05"
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
references:
|
|
- https://docs.withpersona.com/api-keys
|