Skip to content

Commit

Permalink
Additional ruby sdk + minor JS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbMundada committed Jul 27, 2023
1 parent 542ffb2 commit 3a920fa
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 7 deletions.
6 changes: 3 additions & 3 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|vue-axios|urllib|http|client|react-query|socket(.){0,1}io|xmlhttprequest|node.http|cors|got|apollo|superagent|wretch|@angular\\/common\\/http|.*(HttpClient)).*
value: (?i)(request|fetch|axios|vue-axios|urllib|http|client|react-query|socket(.){0,1}io|xmlhttprequest|node.http|cors|got|apollo|superagent|wretch|@angular\\/common\\/http|@(.){2,25}\\/http|.*(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|usequery|fetch|axios|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|emit|on)
value: (?i)(?:url|client|openConnection|request|execute|newCall|load|host|access|usequery|fetch|fetapi|fetchlegacyxml|createfetch|postform|axios|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|emit|on)

- key: apiIdentifier
value: (?i).*((hook|base|auth|prov|endp|install|cloud|host|request|service|gateway|route|resource|upload|api|worker)(.){0,12}url|(slack|web)(.){0,4}hook|(sentry|segment)(.){0,1}(dsn)|(rest|api|host|cloud|request|service)(.){0,4}(endpoint|gateway|route)).*
value: (?i).*((hook|base|auth|prov|endp|install|cloud|host|request|service|gateway|route|resource|upload|api|worker|tracker)(.){0,12}url|(slack|web)(.){0,4}hook|(sentry|segment)(.){0,1}(dsn)|(rest|api|host|cloud|request|service)(.){0,4}(endpoint|gateway|route)).*
2 changes: 1 addition & 1 deletion rules/sinks/storages/couchdb/javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sinks:
- couchdb.apache.org
- apache.org
patterns:
- "(?:couchdb|couchdb-.*|rxdb|sqltomango|cradle|crypto-pouch|nano|@treehouses/cli|database-cleaner|couch-db|couch-admin|couchster|fauxton|couch-box|couch-nacl-permit|superlogin|npm-registry-couchapp|putdoc|connect-couchdb|couch-slouch|nano-option|tough-rate|couchdown|connect-cloudant-store|geopouch|filter-pouch|@zargu/couchdb-designer|changemachine|translator-couch|angular-eha.couchdb-auth|moleculer-db-adapter-couchdb-nano|typed-nano|sneakerjs|node-red-contrib-cloudantplus|node-couchdb|@scienceai/create-error|@inator/pouchdb-users|delta-pouch|@hoodie/task-client|stampee-couchdb-change-events|hoodie-server-task|couch-proxy-auth|designer|spawn-pouchdb-server|roy-replicator|connect-nano|ouch-rx|@hoodie/store-server|@hoodie/store-server-api|catlog|resourceful|@stanlemon/react-couchdb-authentication|tibet|@hoodie/account-server|replicate-couchdb-cluster|noflo-couchdb|pouch-datalog|@prescrire/pouchdb-replication-stream|@stanlemon/react-pouchdb|node-couchdb-logger|sync-gateway|@hoodie/account-server-api|jwt-couchdb|couch-login|nano-doc-updater|@twilson63/palmetto-couchdb|hapi-auth-couchdb-cookie|pino-couchdb|@nicodejong/nest-couchdb|winston-couchdb|express-user-couchdb).*"
- "(?:couchdb|couchdb-.*|rxdb|sqltomango|cradle|crypto-pouch|nano(?!-md5)|@treehouses/cli|database-cleaner|couch-db|couch-admin|couchster|fauxton|couch-box|couch-nacl-permit|superlogin|npm-registry-couchapp|putdoc|connect-couchdb|couch-slouch|nano-option|tough-rate|couchdown|connect-cloudant-store|geopouch|filter-pouch|@zargu/couchdb-designer|changemachine|translator-couch|angular-eha.couchdb-auth|moleculer-db-adapter-couchdb-nano|typed-nano|sneakerjs|node-red-contrib-cloudantplus|node-couchdb|@scienceai/create-error|@inator/pouchdb-users|delta-pouch|@hoodie/task-client|stampee-couchdb-change-events|hoodie-server-task|couch-proxy-auth|designer|spawn-pouchdb-server|roy-replicator|connect-nano|ouch-rx|@hoodie/store-server|@hoodie/store-server-api|catlog|resourceful|@stanlemon/react-couchdb-authentication|tibet|@hoodie/account-server|replicate-couchdb-cluster|noflo-couchdb|pouch-datalog|@prescrire/pouchdb-replication-stream|@stanlemon/react-pouchdb|node-couchdb-logger|sync-gateway|@hoodie/account-server-api|jwt-couchdb|couch-login|nano-doc-updater|@twilson63/palmetto-couchdb|hapi-auth-couchdb-cookie|pino-couchdb|@nicodejong/nest-couchdb|winston-couchdb|express-user-couchdb).*"
tags:

- id: Storages.RxDB.ReadAndWrite
Expand Down
2 changes: 1 addition & 1 deletion rules/sinks/storages/postgres/javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ sinks:
domains:
- postgresql.org
patterns:
- "(?:pg|pg-pool|pg-hstore|postgres-bytea|sql-template-strings|pg-native|pg-promise|libpq|sql-bricks|pgsql-ast-parser|mongo-sql|marv-pg-driver|pg-migrator|ts-postgres|@fastify/postgres|pgpass|ah-sequelize-plugin|confabulous|pg-error|aws-xray-sdk-postgres|pg-copy-streams|pogi|pg-escape|@wmfs/pg-diff-sync|data-elevator-postgres|yesql|knex-postgis|trailpack-plv8|pg-query-stream|pg-large-object|sql-bricks-postgres|schemart|pg-x|@yugabytedb/pg-pool|dbh-pg|api-core|postgres-cleaner|persistanz|@wmfs/relationize|@getlago/pgsql-ast-parser|postgres-date|pg-query-native|@wmfs/pg-info|postgres-interval|postgres-array|@urbica/pg-migrate|lego-sql|massive|qlobber-pg|@npm/pg-db-session|node-pg-migrate|v-protocol|@wmp-sbd/aws-xray-sdk-postgres|pg-query-parser|akeke_sequelize_egg_mysql_model|pg-schemats|pg-to-ts|@wmfs/supercopy|schemats|@mgolestan/schemats|v-pool|pg-ast-utils|pg-types|posigrade|pg-x-redis|pg-connect|sequelize-gen|hapi-postgres-connection|@smoke-trees/postgres-backend|pg-patch|postgres|save|pg-cursor|sequelize-replace-enum-postgres|node-postgres-named|pg-protocol|slonik|nact-persistence-postgres|jugglingdb|@trifacta/database-js-postgres|mongo-query-to-postgres-jsonb|@grouparoo/postgres|postgresql-service|related-postgres-analyzer|@runnerty/executor-postgres|@mft/postgres-migrations|@obi-tec/manager-postgres-database|machinepack-postgresql|@gasbuddy/configured-postgres-client|postgres-node-container|sqlutils|extract-pg-schema|kanel|pg-connection-string|@meotimdihia/postgres|psqlorm|sails-postgresql|think-model-postgresql|postgres-repo).*"
- "(?:pg-pool|pg-hstore|postgres-bytea|sql-template-strings|pg-native|pg-promise|libpq|sql-bricks|pgsql-ast-parser|mongo-sql|marv-pg-driver|pg-migrator|ts-postgres|@fastify/postgres|pgpass|ah-sequelize-plugin|confabulous|pg-error|aws-xray-sdk-postgres|pg-copy-streams|pogi|pg-escape|@wmfs/pg-diff-sync|data-elevator-postgres|yesql|knex-postgis|trailpack-plv8|pg-query-stream|pg-large-object|sql-bricks-postgres|schemart|pg-x|@yugabytedb/pg-pool|dbh-pg|api-core|postgres-cleaner|persistanz|@wmfs/relationize|@getlago/pgsql-ast-parser|postgres-date|pg-query-native|@wmfs/pg-info|postgres-interval|postgres-array|@urbica/pg-migrate|lego-sql|massive|qlobber-pg|@npm/pg-db-session|node-pg-migrate|v-protocol|@wmp-sbd/aws-xray-sdk-postgres|pg-query-parser|akeke_sequelize_egg_mysql_model|pg-schemats|pg-to-ts|@wmfs/supercopy|schemats|@mgolestan/schemats|v-pool|pg-ast-utils|pg-types|posigrade|pg-x-redis|pg-connect|sequelize-gen|hapi-postgres-connection|@smoke-trees/postgres-backend|pg-patch|postgres|pg-cursor|sequelize-replace-enum-postgres|node-postgres-named|pg-protocol|slonik|nact-persistence-postgres|jugglingdb|@trifacta/database-js-postgres|mongo-query-to-postgres-jsonb|@grouparoo/postgres|postgresql-service|related-postgres-analyzer|@runnerty/executor-postgres|@mft/postgres-migrations|@obi-tec/manager-postgres-database|machinepack-postgresql|@gasbuddy/configured-postgres-client|postgres-node-container|sqlutils|extract-pg-schema|kanel|pg-connection-string|@meotimdihia/postgres|psqlorm|sails-postgresql|think-model-postgresql|postgres-repo).*"
tags:
13 changes: 13 additions & 0 deletions rules/sinks/third_parties/sdk/braintreepayments/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.Braintreepayments
name: Braintreepayments
domains:
- "braintreepayments.com"
patterns:
- "(?i)(braintree).*"
tags:
2 changes: 1 addition & 1 deletion rules/sinks/third_parties/sdk/google/javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sinks:
domains:
- "analytics.google.com"
patterns:
- "[@]{0,1}google-analytics|@firebase\\/analytics"
- "@firebase\\/analytics|.*google-analytics|GoogleAnalyticsService"
tags:

- id: ThirdParties.SDK.Google.Cloud
Expand Down
2 changes: 1 addition & 1 deletion rules/sinks/third_parties/sdk/launchdarkly/javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ sinks:
domains:
- "launchdarkly.com"
patterns:
- "launchdarkly-node-server-sdk"
- "launchdarkly-node-server-sdk|launchdarkly-react-client-sdk"
tags:
13 changes: 13 additions & 0 deletions rules/sinks/third_parties/sdk/paddle_pay/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.Paddle_Pay
name: Paddle Pay
domains:
- "paddle.com"
patterns:
- "(?i)(paddle_pay).*"
tags:

0 comments on commit 3a920fa

Please sign in to comment.