diff --git a/rules/sinks/storages/elasticsearch/go.yaml b/rules/sinks/storages/elasticsearch/go.yaml index a0a92422..fff2dfcb 100644 --- a/rules/sinks/storages/elasticsearch/go.yaml +++ b/rules/sinks/storages/elasticsearch/go.yaml @@ -5,7 +5,7 @@ sinks: domains: - elastic.co patterns: - - "(?i)(github.com/olivere/elastic).*(Search)" + - "(?i)(github.com|gopkg.in)(/)(olivere)(/)(elastic).*(Search)" tags: - id: Storages.Elasticsearch.Write @@ -13,5 +13,5 @@ sinks: domains: - elastic.co patterns: - - "(?i)(github.com/olivere/elastic).*(CreateIndex|Delete|Update)" + - "(?i)(github.com|gopkg.in)(/)(olivere)(/)(elastic).*(CreateIndex|Delete|Update)" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/confluent/go.yaml b/rules/sinks/third_parties/sdk/confluent/go.yaml new file mode 100644 index 00000000..3ad33853 --- /dev/null +++ b/rules/sinks/third_parties/sdk/confluent/go.yaml @@ -0,0 +1,12 @@ +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Confluent.Kafka + name: Confluent Kafka + domains: + - "confluent.io" + patterns: + - "(?i)(github.com)(/)(confluentinc)(/)(confluent-kafka-go).*" + tags: diff --git a/rules/sinks/third_parties/sdk/datadog/go.yaml b/rules/sinks/third_parties/sdk/datadog/go.yaml index 22d22908..3c78c81e 100644 --- a/rules/sinks/third_parties/sdk/datadog/go.yaml +++ b/rules/sinks/third_parties/sdk/datadog/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "datadoghq.com" patterns: - - "(?i)(github.com)(/)(DataDog)(/)(datadog-go).*" + - "(?i)(github.com|gopkg.in)(/)(DataDog)(/)(datadog-go|dd-trace-go).*" tags: \ No newline at end of file diff --git a/rules/sinks/third_parties/sdk/opentelemetry/go.yaml b/rules/sinks/third_parties/sdk/opentelemetry/go.yaml new file mode 100644 index 00000000..360d214d --- /dev/null +++ b/rules/sinks/third_parties/sdk/opentelemetry/go.yaml @@ -0,0 +1,13 @@ + +# Sink rule for ThirdParty SDK +# The id follows a format : "ThirdParties.SDK.." + +sinks: + + - id: ThirdParties.SDK.Opentelemetry + name: Opentelemetry + domains: + - "opentelemetry.io" + patterns: + - "(?i)(go.opentelemetry.io)(/)(contrib|otel).*" + tags: diff --git a/rules/sinks/third_parties/sdk/temporal/go.yaml b/rules/sinks/third_parties/sdk/temporal/go.yaml index 3870d519..6b27be6e 100644 --- a/rules/sinks/third_parties/sdk/temporal/go.yaml +++ b/rules/sinks/third_parties/sdk/temporal/go.yaml @@ -9,5 +9,5 @@ sinks: domains: - "temporal.io" patterns: - - "(?i)(github.com)(/)(spiral|cretz)(/)(go-sdk/temporal|temporal-sdk-go-advanced).*" + - "(?i)(github.com|go.temporal.io)(/)(spiral|cretz|sdk)(/)(go-sdk/temporal|temporal-sdk-go-advanced).*" tags: