-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from Privado-Inc/python
Python Alpha Release
- Loading branch information
Showing
567 changed files
with
8,168 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
exclusions: | ||
- id: Exclusions.Test | ||
name: Exclude test source code | ||
patterns: | ||
- "(.*/test(s)?.*)|/Test[A-Z]|Test[.]" | ||
|
||
- id: Exclusions.Empty | ||
name: Exclude file which cannot be read | ||
patterns: | ||
- "<empty>|<unknownFullName>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
sinkSkipList: | ||
- id: SinkSkipList.ThirdParties | ||
name: Skip Third Party Sinks | ||
patterns: | ||
- "(dict|list|str|tuple|int)\\.__.*" | ||
- "(django.*\\.py).*" | ||
- "(?i)(builtins|json|re|copy|argparse|datetime|time|decimal|collections|asyncio|subprocess|pytest|logging|traceback|sys|os|oss2|unittest|base64|dateutil|importlib|socket|urllib3|urllib|io|uuid|gzip|math|bson|random)\\.py.*" | ||
|
||
- id: SinkSkipList.BuiltInLib | ||
name: Skip built in language libraries | ||
patterns: | ||
- "(?i)(<empty>|<operator>\\.|<operators>\\.|<unresolvedNamespace.*>.|dict\\.|list\\.|str\\.|tuple\\.).*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
collections: | ||
- id: Collections.FastAPI | ||
name: FastAPI framework restendpoint | ||
patterns: | ||
- "(?i)fastapi.py.*(post|get|all|delete|put|patch|head|subscribe|unsubscribe).*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
sinks: | ||
- id: Sinks.API.InternalAPI | ||
name: Internal APIs | ||
patterns: | ||
- "((http|https|ftp|ssh):\\/\\/){0,1}(((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4}|(localhost))(:[0-9]{2,4}){0,1}(\\/([a-z]){0,1}){0,1}.*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
sinks: | ||
|
||
- id: Leakages.Log.Error | ||
name: Log Error | ||
patterns: | ||
- "(?i).*(?:log|logger).*(?:error|severe|fatal).*" | ||
tags: | ||
|
||
- id: Leakages.Log.Warn | ||
name: Log Warn | ||
patterns: | ||
- "(?i).*(?:log|logger).*(warn|warning).*" | ||
tags: | ||
|
||
- id: Leakages.Log.Debug | ||
name: Log Debug | ||
patterns: | ||
- "(?i).*(?:log|logger).*(debug|trace).*" | ||
- "(?i).*(?:logger).*(log).*" | ||
tags: | ||
|
||
- id: Leakages.Log.Info | ||
name: Log Info | ||
patterns: | ||
- "(?i).*(?:log|logger).*(info).*" | ||
tags: | ||
|
||
- id: Leakages.Log | ||
name: Log | ||
patterns: | ||
- "(?i).*[.]log" | ||
tags: | ||
|
||
- id: Leakages.Log.Console | ||
name: Log Console | ||
patterns: | ||
- "builtins[.]py:<module>[.]print" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sinks: | ||
|
||
- id: Storages.AmazonS3.Read | ||
name: Amazon S3 | ||
domains: | ||
- s3.amazon.com | ||
patterns: | ||
- "(?i)(aws_cdk.*aws_s3).*" | ||
- "(?i)(aws_cdk.*aws_s3_assets).*" | ||
- "(?i)(aws_cdk.*aws_s3_notifications).*" | ||
- "(?i)(aws_helper|s3transfer|templates_s3|s3utils|s3url|url_for_s3|s3_parse_url|ctodd_python_lib_aws|awss3lib|s3file|mypy_boto3_s3|s3_encryption|mypy_boto3_s3|pip_services3_aws|bits3).py.*" | ||
- "(?i)boto.*(?:get|bucket|download.{0,1}file|upload.{0,1}file|download.{0,1}fileobj|presigned.{0,1}url).*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
sinks: | ||
|
||
- id: Storages.ArangoDB.ReadAndWrite | ||
name: ArangoDB | ||
domains: | ||
- arangodb.com | ||
patterns: | ||
- "(?i)pyarango.*(?:createdocument|save|query|get|list|head|select|view|find|search|match).*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# Sink Rules for storage database Google Cloud Bigtable - https://cloud.google.com/bigtable | ||
|
||
sinks: | ||
|
||
- id: Storages.CloudBigtable.ReadAndWrite | ||
name: Google Cloud Bigtable | ||
domains: | ||
- cloud.google.com | ||
- google.com | ||
patterns: | ||
- "(?i)pyarango.*(?:row.{0,1}filters|read.{0,1}row|delete|query|update.{0,1}dataset|insert.{0,1}rows.{0,1}json|load.{0,1}table.{0,1}from.{0,1}uri|query|list.{0,1}dataset).*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# Sink Rules for storage database Apache Cassandra - https://cassandra.apache.org/ | ||
|
||
sinks: | ||
|
||
- id: Storages.ApacheCassandra.ReadAndWrite | ||
name: Apache Cassandra | ||
domains: | ||
- cassandra.apache.org | ||
- apache.org | ||
patterns: | ||
- "(?i).*cassandra.*cluster.*(?:execute|save|query|get|list|head|select|find|search|match|create|insert).*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
sinks: | ||
|
||
- id: Storages.AmazonCognito.Read | ||
name: Amazon Cognito(Read) | ||
domains: | ||
- aws.amazon.com | ||
- amazon.com | ||
patterns: | ||
- "(?i)boto.*(?:sign.{0,1}up|confirm.{0,1}sign.{0,1}up|resend.{0,1}confirmation.{0,1}code|forgot.{0,1}password|confirm.{0,1}forgot.{0,1}password|initiate.{0,1}auth|admin.{0,1}get.{0,1}user|confirm.{0,1}device|list.{0,1}users).*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# Sink Rules for storage database Azure Cosmos DB - https://azure.microsoft.com/en-us/services/cosmos-db/ | ||
|
||
sinks: | ||
|
||
- id: Storages.AzureCosmosDb | ||
name: Azure Cosmos DB | ||
domains: | ||
- azure.microsoft.com | ||
- microsoft.com | ||
patterns: | ||
- "(?i).*(?:azure.*cosmos).*(?:create.{0,1}item|read.{0,1}item|delete.{0,1}item|query).*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Sink Rules for storage database Apache Couch DB - https://couchdb.apache.org/ | ||
|
||
sinks: | ||
|
||
- id: Storages.ApacheCouchDb.Read | ||
name: Apache Couch DB(Read) | ||
domains: | ||
- couchdb.apache.org | ||
- apache.org | ||
patterns: | ||
- "(?i)(?:couchdb).*(?:find|get|get.{0,1}attachment|list|put.{0,1}attachment).*" | ||
tags: | ||
|
||
- id: Storages.ApacheCouchDb.Write | ||
name: Apache Couch DB(Write) | ||
domains: | ||
- couchdb.apache.org | ||
- apache.org | ||
patterns: | ||
- "(?i)(?:couchdb).*(?:create|put.{0,1}attachment|delete|update).*" | ||
tags: | ||
|
||
- id: Storages.ApacheCouchDb.ReadAndWrite | ||
name: Apache Couch DB | ||
domains: | ||
- couchdb.apache.org | ||
- apache.org | ||
patterns: | ||
- "(?i)(?:couchdb).*(?:query|save).*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
# Sink Rules for storage database Amazon DocumentDB - https://aws.amazon.com/documentdb/ | ||
|
||
sinks: | ||
|
||
- id: Storages.AmazonDocumentDB.Read | ||
name: Amazon DocumentDB(Read) | ||
domains: | ||
- aws.amazon.com | ||
- amazon.com | ||
patterns: | ||
- "(?i)boto.*(?:find.{0,1}one).*" | ||
tags: | ||
|
||
- id: Storages.AmazonDocumentDB.Write | ||
name: Amazon DocumentDB(Write) | ||
domains: | ||
- aws.amazon.com | ||
- amazon.com | ||
patterns: | ||
- "(?i)boto.*(?:insert.{0,1}(?:one|many)).*" | ||
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.