forked from trufflesecurity/trufflehog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analyze] Add analyzer interface for Shopify (trufflesecurity#3226)
* implement analyzer interface for shopify * fixed shopify analyzer according to new code and generated permissions * shopify analyzer test added * [chore] - key validations - linked analyzer with detectors * [chore] - moved redundant initialize to global. * [chore] moved expected output of test in json file to neat the code. * [Fixes] - Fixed permission and category resource issue in shopify analyzer - corrected test for shopify analyzer --------- Co-authored-by: Abdul Basit <[email protected]>
- Loading branch information
1 parent
57e5812
commit dc9c9a3
Showing
7 changed files
with
441 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
{ | ||
"AnalyzerType": 15, | ||
"Bindings": [ | ||
{ | ||
"Resource": { | ||
"Name": "Analytics", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]/Analytics", | ||
"Type": "category", | ||
"Metadata": null, | ||
"Parent": { | ||
"Name": "My Store", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]", | ||
"Type": "shop", | ||
"Metadata": { | ||
"created_at": "2024-08-16T17:16:17+05:00" | ||
}, | ||
"Parent": null | ||
} | ||
}, | ||
"Permission": { | ||
"Value": "read", | ||
"Parent": null | ||
} | ||
}, | ||
{ | ||
"Resource": { | ||
"Name": "Applications", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]/Applications", | ||
"Type": "category", | ||
"Metadata": null, | ||
"Parent": { | ||
"Name": "My Store", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]", | ||
"Type": "shop", | ||
"Metadata": { | ||
"created_at": "2024-08-16T17:16:17+05:00" | ||
}, | ||
"Parent": null | ||
} | ||
}, | ||
"Permission": { | ||
"Value": "read", | ||
"Parent": null | ||
} | ||
}, | ||
{ | ||
"Resource": { | ||
"Name": "Assigned fulfillment orders", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]/Assigned fulfillment orders", | ||
"Type": "category", | ||
"Metadata": null, | ||
"Parent": { | ||
"Name": "My Store", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]", | ||
"Type": "shop", | ||
"Metadata": { | ||
"created_at": "2024-08-16T17:16:17+05:00" | ||
}, | ||
"Parent": null | ||
} | ||
}, | ||
"Permission": { | ||
"Value": "full_access", | ||
"Parent": null | ||
} | ||
}, | ||
{ | ||
"Resource": { | ||
"Name": "Customers", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]/Customers", | ||
"Type": "category", | ||
"Metadata": null, | ||
"Parent": { | ||
"Name": "My Store", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]", | ||
"Type": "shop", | ||
"Metadata": { | ||
"created_at": "2024-08-16T17:16:17+05:00" | ||
}, | ||
"Parent": null | ||
} | ||
}, | ||
"Permission": { | ||
"Value": "full_access", | ||
"Parent": null | ||
} | ||
}, | ||
{ | ||
"Resource": { | ||
"Name": "Discovery", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]/Discovery", | ||
"Type": "category", | ||
"Metadata": null, | ||
"Parent": { | ||
"Name": "My Store", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]", | ||
"Type": "shop", | ||
"Metadata": { | ||
"created_at": "2024-08-16T17:16:17+05:00" | ||
}, | ||
"Parent": null | ||
} | ||
}, | ||
"Permission": { | ||
"Value": "full_access", | ||
"Parent": null | ||
} | ||
}, | ||
{ | ||
"Resource": { | ||
"Name": "Merchant-managed fulfillment orders", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]/Merchant-managed fulfillment orders", | ||
"Type": "category", | ||
"Metadata": null, | ||
"Parent": { | ||
"Name": "My Store", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]", | ||
"Type": "shop", | ||
"Metadata": { | ||
"created_at": "2024-08-16T17:16:17+05:00" | ||
}, | ||
"Parent": null | ||
} | ||
}, | ||
"Permission": { | ||
"Value": "full_access", | ||
"Parent": null | ||
} | ||
}, | ||
{ | ||
"Resource": { | ||
"Name": "Reports", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]/Reports", | ||
"Type": "category", | ||
"Metadata": null, | ||
"Parent": { | ||
"Name": "My Store", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]", | ||
"Type": "shop", | ||
"Metadata": { | ||
"created_at": "2024-08-16T17:16:17+05:00" | ||
}, | ||
"Parent": null | ||
} | ||
}, | ||
"Permission": { | ||
"Value": "full_access", | ||
"Parent": null | ||
} | ||
}, | ||
{ | ||
"Resource": { | ||
"Name": "cart_transforms", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]/cart_transforms", | ||
"Type": "category", | ||
"Metadata": null, | ||
"Parent": { | ||
"Name": "My Store", | ||
"FullyQualifiedName": "727f01-d6.myshopify.com/[email protected]", | ||
"Type": "shop", | ||
"Metadata": { | ||
"created_at": "2024-08-16T17:16:17+05:00" | ||
}, | ||
"Parent": null | ||
} | ||
}, | ||
"Permission": { | ||
"Value": "full_access", | ||
"Parent": null | ||
} | ||
} | ||
], | ||
"UnboundedResources": null, | ||
"Metadata": { | ||
"status_code": 200 | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
permissions: | ||
- read | ||
- write | ||
- full_access |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.