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

117 lines
2.9 KiB
YAML

rules:
- name: DevCycle Client SDK Key
id: kingfisher.devcycle.1
pattern: |
(?x)
\b
(
dvc_client_[A-Za-z0-9]{8,32}
)
\b
pattern_requirements:
min_digits: 2
min_lowercase: 2
min_entropy: 3.0
confidence: medium
examples:
- dvc_client_abc12345
- 'sdkKey: "dvc_client_abcdefg1234"'
references:
- https://docs.devcycle.com/cli-guides/environments/
- https://docs.devcycle.com/bucketing-api/
validation:
type: Http
content:
request:
method: POST
url: https://bucketing-api.devcycle.com/v1/variables
headers:
Authorization: Bearer {{ TOKEN }}
Content-Type: application/json
body: |
{
"user_id": "kingfisher-validation-user"
}
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: JsonValid
- name: DevCycle Mobile SDK Key
id: kingfisher.devcycle.2
pattern: |
(?x)
\b
(
dvc_mobile_[A-Za-z0-9]{8,32}
)
\b
pattern_requirements:
min_digits: 2
min_lowercase: 2
min_entropy: 3.0
confidence: medium
examples:
- dvc_mobile_abc12345
- 'mobileKey: "dvc_mobile_abcdefg1234"'
references:
- https://docs.devcycle.com/cli-guides/environments/
- https://docs.devcycle.com/bucketing-api/
validation:
type: Http
content:
request:
method: POST
url: https://bucketing-api.devcycle.com/v1/variables
headers:
Authorization: Bearer {{ TOKEN }}
Content-Type: application/json
body: |
{
"user_id": "kingfisher-validation-user"
}
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: JsonValid
- name: DevCycle Server SDK Key
id: kingfisher.devcycle.3
pattern: |
(?x)
\b
(
dvc_server_[A-Za-z0-9]{8,32}
)
\b
pattern_requirements:
min_digits: 2
min_lowercase: 2
min_entropy: 3.0
confidence: medium
examples:
- dvc_server_abc12345
- 'serverKey: "dvc_server_abcdefg1234"'
references:
- https://docs.devcycle.com/cli-guides/environments/
- https://docs.devcycle.com/bucketing-api/
validation:
type: Http
content:
request:
method: POST
url: https://bucketing-api.devcycle.com/v1/variables
headers:
Authorization: Bearer {{ TOKEN }}
Content-Type: application/json
body: |
{
"user_id": "kingfisher-validation-user"
}
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: JsonValid