forked from mirrors/kingfisher
feat(neon): add Neon API Key rule
This commit is contained in:
parent
4c1cc60722
commit
678beef114
1 changed files with 31 additions and 0 deletions
31
data/rules/neon.yml
Normal file
31
data/rules/neon.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
rules:
|
||||
- name: Neon API Key
|
||||
id: kingfisher.neon.1
|
||||
pattern: |
|
||||
(?x)
|
||||
\b
|
||||
(
|
||||
napi_
|
||||
[a-zA-Z0-9]{64}
|
||||
)
|
||||
\b
|
||||
min_entropy: 3.5
|
||||
confidence: high
|
||||
examples:
|
||||
- napi_f6n4wv0d0nzglfk64c1bnzrc5ug82tmrmekh8h4hsxeq8zd0p5ii234bdkah71kw
|
||||
references:
|
||||
- https://neon.com/docs/manage/api-keys
|
||||
validation:
|
||||
type: Http
|
||||
content:
|
||||
request:
|
||||
headers:
|
||||
Authorization: Bearer {{ TOKEN }}
|
||||
Accept: application/json
|
||||
method: GET
|
||||
response_matcher:
|
||||
- report_response: true
|
||||
- status:
|
||||
- 200
|
||||
type: StatusMatch
|
||||
url: https://console.neon.tech/api/v2/auth
|
||||
Loading…
Add table
Add a link
Reference in a new issue