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

Go: Storage Rules #317

Merged
merged 5 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,4 @@ dist
# files
privado
notes.md
workspace
12 changes: 12 additions & 0 deletions rules/sinks/storages/neo4j/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Sink Rules for storage database Neo4j Graph Database - https://neo4j.com/

sinks:

- id: Storages.Neo4jGraphDatabase.ReadAndWrite
name: Neo4j Graph Database(ReadAndWrite)
domains:
- neo4j.com
patterns:
- "(?i)(github.com/neo4j/neo4j-go-driver).*(ExecuteQuery|ExecuteRead)"
khemrajrathore marked this conversation as resolved.
Show resolved Hide resolved
tags:
12 changes: 12 additions & 0 deletions rules/sinks/storages/oracleDatabase/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Sink Rules for storage database Oracle Database - https://www.oracle.com/database/

sinks:

- id: Storages.OracleDatabase.ReadAndWrite
name: Oracle Database
domains:
- oracle.com
patterns:
- "(?i)(github.com/sijms/go-ora).*(Exec|Query)"
tags:
13 changes: 13 additions & 0 deletions rules/sinks/storages/pouchdb/go.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: Storages.PouchDb.ReadAndWrite
name: Pouch DB
domains:
- pouchdb.com
patterns:
- "(?i)(github.com/go-kivik/pouchdb).*(Put|Get|BulkDocs|BulkGet)"
tags:
13 changes: 13 additions & 0 deletions rules/sinks/storages/prestodb/go.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: Storages.Prestodb.ReadAndWrite
name: Prestodb(ReadAndWrite)
domains:
- "prestodb.io"
patterns:
- "(?i)(github.com/prestodb/presto-go-client/presto).*(Query)"
tags:
12 changes: 12 additions & 0 deletions rules/sinks/storages/relationaldatabase/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

#In Go lang "database/sql" is a common package to connect any relational database

sinks:

- id: Storages.SQL.ReadAndWrite
name: SQL DB(ReadAndWrite)
domains:
- pkg.go.dev/database/sql
patterns:
- "(?i)(database/sql).*(Prepare|Query|Stmt)(Context|Row)?"
tags:
12 changes: 12 additions & 0 deletions rules/sinks/storages/scylladb/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Sink Rules for storage database ScyllaDB - https://www.scylladb.com/

sinks:

- id: Storages.ScyllaDB.ReadAndWrite
name: ScyllaDB(ReadAndWrite)
domains:
- scylladb.com
patterns:
- "(?i)(goapp/internal/scylla).*(Query)"
tags:
12 changes: 12 additions & 0 deletions rules/sinks/storages/snowflake/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Sink Rules for storage database Android SQLite - https://developer.android.com/

sinks:

- id: Storages.Snowflake.ReadAndWrite
name: Snowflake(ReadAndWrite)
domains:
- "snowflake.com"
patterns:
- "(?i)(github.com/snowflakedb/gosnowflake).*(Exec|Query|mustExec|Prepare)"
tags:
20 changes: 20 additions & 0 deletions rules/sinks/storages/sqlite/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

# Sink Rules for storage database Android SQLite - https://developer.android.com/

sinks:

- id: Storages.Android.SQLite.Read
name: SQLite(Read)
domains:
- android.com
patterns:
- "(?i)(github.com/mattn/go-sqlite).*(Query|QueryRow)"
khemrajrathore marked this conversation as resolved.
Show resolved Hide resolved
tags:

- id: Storages.Android.SQLite.ReadAndWrite
name: SQLite(ReadAndWrite)
domains:
- android.com
patterns:
- "(?i)(github.com/mattn/go-sqlite).*(Exec|Prepare|Stmt)"
tags:
22 changes: 22 additions & 0 deletions rules/sinks/storages/timestream/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

# Sink Rules for storage database Amazon Timestream - https://aws.amazon.com/timestream/

sinks:

- id: Storages.AmazonTimestream.Read
name: Amazon Timestream(Read)
domains:
- aws.amazon.com
- amazon.com
patterns:
- "(?i)(github.com/aws/aws-sdk-go/service/timestreamquery).*(QueryInput)"
tags:

- id: Storages.AmazonTimestream.Write
name: Amazon Timestream(Write)
domains:
- aws.amazon.com
- amazon.com
patterns:
- "(?i)(github.com/aws/aws-sdk-go/service/timestreamwrite).*(WriteRecordsInput)"
tags:
12 changes: 12 additions & 0 deletions rules/sinks/storages/vaticleTypedb/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Sink Rules for storage database Vaticle TypeDB - https://vaticle.com/typedb

sinks:

- id: Storages.VaticleTypeDB.ReadAndWrite
name: Vaticle TypeDB
domains:
- vaticle.com
patterns:
- "(?i)(github.com/vaticle/tcd-go-client).*(Query)"
tags:
12 changes: 12 additions & 0 deletions rules/sinks/storages/weaviate/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Sink Rules for storage database Vaticle TypeDB - https://vaticle.com/typedb

sinks:

- id: Storages.Weaviate.ReadAndWrite
name: Weaviate VectorDB
domains:
- weaviate.io
patterns:
- "(?i)(github.com/semi-technologies/weaviate-go-client).*(ObjectsBatcher|Get|GetSearch)"
khemrajrathore marked this conversation as resolved.
Show resolved Hide resolved
khemrajrathore marked this conversation as resolved.
Show resolved Hide resolved
tags:
Loading