kingfisher/data/rules/optimizely.yml
Mick Grove 7237a931d5 v1.73.0
2026-01-01 22:24:57 -08:00

38 lines
1.2 KiB
YAML

rules:
- name: Optimizely Personal Access Token
id: kingfisher.optimizely.1
pattern: |
(?xi)
\b
optimizely
(?:.|[\n\r]){0,64}?
\b
(
[0-9A-Z-:]{54}
)
\b
pattern_requirements:
min_digits: 4
min_entropy: 3.6
confidence: medium
examples:
- OPTIMIZELY_TOKEN=AbCDefGhijKlmnOpqrStuvWxYz01-23:45AbCDefGhijKlmnOpqrSt
- 'Optimizely Authorization: Bearer AbCDefGhijKlmnOpqrStuvWxYz01-23:45AbCDefGhijKlmnOpqrSt'
references:
- https://docs.developers.optimizely.com/web-experimentation/docs/rest-api-getting-started
- https://docs.developers.optimizely.com/feature-experimentation/reference/get_me
- https://docs.developers.optimizely.com/web-experimentation/docs/api-conventions
validation:
type: Http
content:
request:
method: GET
url: https://api.optimizely.com/v2/me
headers:
Authorization: "Bearer {{ TOKEN }}"
Accept: application/json
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: JsonValid