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 third party rules #358

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions rules/sinks/storages/elasticsearch/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ sinks:
domains:
- elastic.co
patterns:
- "(?i)(github.com/olivere/elastic).*(Search)"
- "(?i)(github.com|gopkg.in)(/)(olivere)(/)(elastic).*(Search)"
tags:

- id: Storages.Elasticsearch.Write
name: Elasticsearch(Write)
domains:
- elastic.co
patterns:
- "(?i)(github.com/olivere/elastic).*(CreateIndex|Delete|Update)"
- "(?i)(github.com|gopkg.in)(/)(olivere)(/)(elastic).*(CreateIndex|Delete|Update)"
tags:
12 changes: 12 additions & 0 deletions rules/sinks/third_parties/sdk/confluent/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Sink rule for ThirdParty SDK
# The id follows a format : "ThirdParties.SDK.<THIRD_PARTY_ORGANISATION>.<SUB_ORGANISATION_IF_APPLICABLE>"

sinks:

- id: ThirdParties.SDK.Confluent.Kafka
name: Confluent Kafka
domains:
- "confluent.io"
patterns:
- "(?i)(github.com)(/)(confluentinc)(/)(confluent-kafka-go).*"
tags:
2 changes: 1 addition & 1 deletion rules/sinks/third_parties/sdk/datadog/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
13 changes: 13 additions & 0 deletions rules/sinks/third_parties/sdk/opentelemetry/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: ThirdParties.SDK.Opentelemetry
name: Opentelemetry
domains:
- "opentelemetry.io"
patterns:
- "(?i)(go.opentelemetry.io)(/)(contrib|otel).*"
tags:
2 changes: 1 addition & 1 deletion rules/sinks/third_parties/sdk/temporal/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Loading