Skip to content

Commit

Permalink
Ruby/third party sdk secondary (Privado-Inc#269)
Browse files Browse the repository at this point in the history
* Added rules for third party sdks in the db

* added some more third parties

* refactor rules
  • Loading branch information
karan-batavia authored Jun 16, 2023
1 parent 8915728 commit e687608
Show file tree
Hide file tree
Showing 15 changed files with 139 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/exclusions/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ exclusions:
- id: Exclusions.Empty
name: Exclude file which cannot be read
patterns:
- "<empty>"
- "<empty>"
9 changes: 9 additions & 0 deletions rules/sinks/third_parties/sdk/bitly/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sinks:

- id: ThirdParties.SDK.Bitly
name: Bitly
domains:
- "bitly.com"
patterns:
- "(?i)bitly.*"
tags:
9 changes: 9 additions & 0 deletions rules/sinks/third_parties/sdk/braze/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sinks:

- id: ThirdParties.SDK.Braze
name: Braze
domains:
- "braze.com"
patterns:
- "(?i)(braze(_ruby)?).*"
tags:
9 changes: 9 additions & 0 deletions rules/sinks/third_parties/sdk/clearbit/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sinks:

- id: ThirdParties.SDK.Clearbit
name: Clearbit
domains:
- "clearbit.com"
patterns:
- "(?i)clearbit.*"
tags:
9 changes: 9 additions & 0 deletions rules/sinks/third_parties/sdk/customerio/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sinks:

- id: ThirdParties.SDK.Customerio
name: Customerio
domains:
- "customer.io"
patterns:
- "(?i)customerio.*"
tags:
13 changes: 13 additions & 0 deletions rules/sinks/third_parties/sdk/mapbox/ruby.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.Mapbox
name: Mapbox
domains:
- "mapbox.com"
patterns:
- "(?i)(mapbox-(sdk|rails|gl-rails)).*"
tags:
9 changes: 9 additions & 0 deletions rules/sinks/third_parties/sdk/pagerduty/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sinks:

- id: ThirdParties.SDK.Pagerduty
name: Pagerduty
domains:
- "pagerduty.com"
patterns:
- "(?i)(pagerduty).*"
tags:
13 changes: 13 additions & 0 deletions rules/sinks/third_parties/sdk/paytm/ruby.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.Paytm
name: Paytm
domains:
- "paytm.com"
patterns:
- "(?i)(paytm|paytm-merchant|paytmseller|paytmspree).*"
tags:
9 changes: 9 additions & 0 deletions rules/sinks/third_parties/sdk/prerenderio/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sinks:

- id: ThirdParties.SDK.Prerender
name: Prerender.io
domains:
- "prerender.io"
patterns:
- "(?i)(prerender_rails(_embedded)?|prerendercloud|prerender_chrome).*"
tags:
13 changes: 13 additions & 0 deletions rules/sinks/third_parties/sdk/pusher/ruby.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.Pusher
name: Pusher
domains:
- "pusher.com"
patterns:
- "(?i)(pusher).*"
tags:
9 changes: 9 additions & 0 deletions rules/sinks/third_parties/sdk/pwned_passwords/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sinks:

- id: ThirdParties.SDK.PwnedPasswords
name: Pwned Passwords
domains:
- "pwnedpasswords.com"
patterns:
- "(?i)(pwned).*"
tags:
9 changes: 9 additions & 0 deletions rules/sinks/third_parties/sdk/twilio/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sinks:

- id: ThirdParties.SDK.Twilio
name: Twilio
domains:
- "twilio.com"
patterns:
- "(?i)(twilio).*"
tags:
9 changes: 9 additions & 0 deletions rules/sinks/third_parties/sdk/typeform/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sinks:

- id: ThirdParties.SDK.Typeform
name: Typeform
domains:
- "typeform.com"
patterns:
- "(?i)(typeform).*"
tags:
10 changes: 10 additions & 0 deletions rules/sinks/third_parties/sdk/yahoo/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

sinks:

- id: ThirdParties.SDK.Yahoo
name: Yahoo
domains:
- "yahoo.com"
patterns:
- "(?i)(yahoo-finance|yahoo_weatherman).*"
tags:
8 changes: 8 additions & 0 deletions rules/sinks/third_parties/sdk/zendesk/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sinks:
- id: ThirdParties.SDK.Zendesk
name: Zendesk
domains:
- "zendesk.com"
patterns:
- "(?i)(zendesk_api).*"
tags:

0 comments on commit e687608

Please sign in to comment.