Skip to content

Commit

Permalink
Javascript rule enhancement 2 (Privado-Inc#236)
Browse files Browse the repository at this point in the history
* Python GA support

* updated mac address rule (Privado-Inc#225)

* updated mac address rule

* removed workforce dir

---------

Co-authored-by: “Hitesh <[email protected]>

* Improve the javascript rules
1. Add the exlusion rules for Javascript
2. Add the sinkSkiplist for probablesink for Javascript
3. Add support for multiple logging frameworks in javascript

* Update Jira rules & remove invalid rules for Javascript

* Segragate Google rules and remove unwated rules Privado-Inc#1

* Update amplitude & segregate amplify rule

* Add snapchat & liftoff rules for python

* Update api http libraries

---------

Co-authored-by: hiteshbedre <[email protected]>
Co-authored-by: KhemrajSingh Rathore <[email protected]>
Co-authored-by: “Hitesh <[email protected]>
Co-authored-by: Pandurang Patil <[email protected]>
  • Loading branch information
5 people authored May 4, 2023
1 parent 7a2b8d5 commit 4d1d187
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/systemConfig/javascript.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
systemConfig:
- key: apiHttpLibraries
value: (?i)(request|fetch|axios|urllib|http|client|socketio|xmlhttprequest|got|apollo|superagent|wretch|.*(HttpClient)).*
value: (?i)(request|fetch|axios|urllib|http|client|socketio|xmlhttprequest|node.http|cors|got|apollo|superagent|wretch|.*(HttpClient)).*

- key: ignoredSinks
value: (?i).*(?<=map|list|jsonobject|json|array|arrays|jsonnode|objectmapper|objectnode).*(put:|get:).*

- key: apiSinks
value: (?i)(?:url|client|openConnection|request|execute|newCall|load|host|access|fetch|get|getInputStream|getApod|getForObject|getForEntity|list|set|put|post|proceed|trace|patch|Path|send|sendAsync|remove|delete|write|read|assignment|provider|exchange|postForEntity|call|createCall|createEndpoint|dispatch|invoke|newMessage|getInput|getOutput|getResponse|marshall|unmarshall|send|asyncSend)
value: (?i)(?:url|client|openConnection|request|execute|newCall|load|host|access|fetch|cors|get|getInputStream|getApod|getForObject|getForEntity|list|set|put|post|proceed|trace|patch|Path|send|sendAsync|remove|delete|write|read|assignment|provider|exchange|postForEntity|call|createCall|createEndpoint|dispatch|invoke|newMessage|getInput|getOutput|getResponse|marshall|unmarshall|send|asyncSend)

- key: apiIdentifier
value: (?i).*((hook|base|auth|prov|endp|install|cloud|host|request|service|gateway|route|resource|upload)(.){0,12}url|(slack|web)(.){0,4}hook|(rest|api|host|cloud|request|service)(.){0,4}(endpoint|gateway|route)).*
2 changes: 1 addition & 1 deletion rules/sinks/third_parties/sdk/amplitude/javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ sinks:
domains:
- "amplitude.com"
patterns:
- "@amplitude/analytics-browser|react-amplitude-hooks|amplitude|read-audio|react-native-amplitude-analytics|@analytics\\/amplitude|@itly\\/plugin-amplitude-node|vue-amplitude|@segment\\/analytics.js-integration-amplitude|gatsby-plugin-amplitude-analytics|@amplitude\\/react-amplitude|vue-amplitude-js|react-amplitude|gatsby-plugin-amplitude|@mntm\\/stats|@uptechworks\\/analytics-service-angular|@suttj\\/amplitude-js|@csod-oss\\/tracker-vendor-amplitude|node-amplitude|@rudderstack\\/rudder-integration-amplitude-react-native|@shawacademynpm\\/gatsby-plugin-amplitude-analytics|djipav|react-native-amplitude-sdk|@jtran\\/amplitude-js|@exiasr\\/gatsby-plugin-amplitude-analytics|amplitude-vue|@quintoandar\\/storybook-amplitude|@amplitude\\/analytics-connector"
- "@amplitude\\/(analytics-browser|core)|react-amplitude-hooks|amplitude|read-audio|react-native-amplitude-analytics|@analytics\\/amplitude|@itly\\/plugin-amplitude-node|vue-amplitude|@segment\\/analytics.js-integration-amplitude|gatsby-plugin-amplitude-analytics|@amplitude\\/react-amplitude|vue-amplitude-js|react-amplitude|gatsby-plugin-amplitude|@mntm\\/stats|@uptechworks\\/analytics-service-angular|@suttj\\/amplitude-js|@csod-oss\\/tracker-vendor-amplitude|node-amplitude|@rudderstack\\/rudder-integration-amplitude-react-native|@shawacademynpm\\/gatsby-plugin-amplitude-analytics|djipav|react-native-amplitude-sdk|@jtran\\/amplitude-js|@exiasr\\/gatsby-plugin-amplitude-analytics|amplitude-vue|@quintoandar\\/storybook-amplitude|@amplitude\\/analytics-connector"
tags:
13 changes: 13 additions & 0 deletions rules/sinks/third_parties/sdk/liftoff/python.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# Sink rule for ThirdParty SDK
# The id follows a format : "ThirdParties.SDK.<THIRD_PARTY_ORGANISATION>.<SUB_ORGANISATION_IF_APPLICABLE>"

sinks:

- id: ThirdParties.SDK.Liftoff
name: Liftoff
domains:
- "liftoff.com"
patterns:
- "(?i).*(liftoff).*"
tags:
13 changes: 13 additions & 0 deletions rules/sinks/third_parties/sdk/snapchat/python.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# Sink rule for ThirdParty SDK
# The id follows a format : "ThirdParties.SDK.<THIRD_PARTY_ORGANISATION>.<SUB_ORGANISATION_IF_APPLICABLE>"

sinks:

- id: ThirdParties.SDK.Snapchat
name: Snapchat
domains:
- "snapchat.com"
patterns:
- "(?i).*(snapchat).*"
tags:

0 comments on commit 4d1d187

Please sign in to comment.