forked from mirrors/kingfisher
Atlassian key update
This commit is contained in:
parent
3c141f989a
commit
356ecc5748
1 changed files with 62 additions and 1 deletions
|
|
@ -38,4 +38,65 @@ rules:
|
|||
- type: WordMatch
|
||||
words:
|
||||
- "Unauthorized"
|
||||
negative: true
|
||||
negative: true
|
||||
# - name: Atlassian Organization ID
|
||||
# id: kingfisher.atlassian.2
|
||||
# pattern: |
|
||||
# (?xi)
|
||||
# admin\.atlassian\.com
|
||||
# /o/
|
||||
# (
|
||||
# [0-9a-f]{8}
|
||||
# -
|
||||
# [0-9a-f]{4}
|
||||
# -
|
||||
# [0-9a-f]{4}
|
||||
# -
|
||||
# [0-9a-f]{4}
|
||||
# -
|
||||
# [0-9a-f]{12}
|
||||
# )
|
||||
# min_entropy: 2.0
|
||||
# confidence: medium
|
||||
# visible: false
|
||||
# examples:
|
||||
# - https://admin.atlassian.com/o/12345678-9abc-def0-1234-56789abcdef0/api-keys
|
||||
- name: Atlassian Admin API Key
|
||||
id: kingfisher.atlassian.3
|
||||
pattern: |
|
||||
(?x)
|
||||
(?:atlassian|api\.atlassian\.com)
|
||||
(?:.|[\n\r]){0,128}?
|
||||
\b
|
||||
(
|
||||
AT
|
||||
[A-Za-z0-9_\-=]{60,260}
|
||||
)
|
||||
\b
|
||||
min_entropy: 3.8
|
||||
confidence: medium
|
||||
examples:
|
||||
- |
|
||||
# Example usage calling the Atlassian admin APIs
|
||||
curl --request GET \
|
||||
'https://api.atlassian.com/admin/v1/orgs' \
|
||||
--header 'Authorization: Bearer ATEXAMPLE1234567890abcdefghijklmnopqrstuvwxyz_-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789foobarAA11BB22'
|
||||
references:
|
||||
- https://developer.atlassian.com/cloud/admin/organization/rest/
|
||||
- https://developer.atlassian.com/cloud/admin/api-access/rest/
|
||||
- https://support.atlassian.com/organization-administration/docs/manage-an-organization-with-the-admin-apis/
|
||||
- https://community.atlassian.com/learning/lesson/what-are-admin-apis
|
||||
validation:
|
||||
type: Http
|
||||
content:
|
||||
request:
|
||||
method: GET
|
||||
url: https://api.atlassian.com/admin/v1/orgs
|
||||
headers:
|
||||
Authorization: "Bearer {{ TOKEN }}"
|
||||
Accept: application/json
|
||||
response_matcher:
|
||||
- report_response: true
|
||||
- type: StatusMatch
|
||||
status: [200]
|
||||
- type: JsonValid
|
||||
Loading…
Add table
Add a link
Reference in a new issue