Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some storage rules for ruby #276

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions rules/sinks/storages/amazonS3/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
sinks:

- id: Storages.AmazonS3.Read
name: Amazon S3
domains:
- s3.amazon.com
patterns:
- "(?i)aws-sdk-s3.*(?:get_object|get_object_acl)"
tags:

- id: Storages.AmazonS3.Write
name: Amazon S3
domains:
- s3.amazon.com
patterns:
- "(?i)aws-sdk-s3.*(?:put_object|copy_object|delete_object(s)?|put_object_acl|create_multipart_upload)"
tags:
18 changes: 18 additions & 0 deletions rules/sinks/storages/arangodb/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
sinks:

- id: Storages.ArangoDB.Read
name: ArangoDB
domains:
- arangodb.com
patterns:
- "(?i)arangodb-odm.*(?:execute|explain|parse|next|each|map)"
tags:


- id: Storages.ArangoDB.Write
name: ArangoDB
domains:
- arangodb.com
patterns:
- "(?i)arangodb-odm.*(?:create|drop|insert|update|replace|remove|truncate|execute|drop|add_vertex|add_edge|remove_vertex|remove_edge)"
tags:
10 changes: 10 additions & 0 deletions rules/sinks/storages/cassandra/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sinks:

- id: Storages.ApacheCassandra.ReadAndWrite
name: Apache Cassandra
domains:
- cassandra.apache.org
- apache.org
patterns:
- "(?i)cassandra.*(?:execute|each_row|execute_statement|execute_batch_statement|execute_async_statement)"
tags:
19 changes: 19 additions & 0 deletions rules/sinks/storages/kinesis/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
sinks:

- id: Storages.AmazonKinesis.Read
name: Amazon Kinesis(Read)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use this (Read) format in all rules wherever applicable. I see missing in few

domains:
- aws.amazon.com
- amazon.com
patterns:
- "(?i)aws-sdk-kinesis.*(?:get_records|get_shard_iterator|describe_stream|list_shards)"
tags:

- id: Storages.AmazonKinesis.Write
name: Amazon Kinesis(Write)
domains:
- aws.amazon.com
- amazon.com
patterns:
- "(?i)aws-sdk-kinesis.*(?:put_record|put_records)"
tags:
17 changes: 17 additions & 0 deletions rules/sinks/storages/mongodb/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
sinks:

- id: Storages.MongoDB.Read
name: MongoDB(Read)
domains:
- mongodb.com
patterns:
- "(?i)mongo.*(?:get|fetch|aggregate|find|find_one|distinct|count)"
tags:

- id: Storages.MongoDB.Write
name: MongoDB(Write)
domains:
- mongodb.com
patterns:
- "(?i)mongo.*(?:(insert|update|delete)_(one|many))"
tags:
16 changes: 16 additions & 0 deletions rules/sinks/storages/mysql/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sinks:
- id: Storages.MySQL.ReadAndWrite
name: MySQL
domains:
- mysql.com
patterns:
- "(?i)mysql.*(?:query|prepare|execute|escape)"
tags:

- id: Storages.MySQL.Write
name: MySQL
domains:
- mysql.com
patterns:
- "(?i)mysql.*(?:insert|update|delete)"
tags:
25 changes: 25 additions & 0 deletions rules/sinks/storages/oracleDatabase/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
sinks:

- id: Storages.OracleDatabase.ReadAndWrite
name: Oracle Database
domains:
- oracle.com
patterns:
- "(?i)(ruby-oci8).*(?:sql|statement)"
tags:

- id: Storages.OracleDatabase.Read
name: Oracle Database
domains:
- oracle.com
patterns:
- "(?i)(ruby-oci8).*(?:get|fetch)"
tags:

- id: Storages.OracleDatabase.Write
name: Oracle Database
domains:
- oracle.com
patterns:
- "(?i)(ruby-oci8).*(?:set|write)"
tags:
8 changes: 8 additions & 0 deletions rules/sinks/storages/postgres/ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sinks:
- id: Storages.Postgres.ReadAndWrite
name: Postgres Sql
domains:
- postgresql.org
patterns:
- "(?i)(pg).*(exec|exec_params|query)"
tags: