Skip to content

Commit 69018d1

Browse files
authored
Merge pull request #12 from Lyndon-prequel/main
Added new tags and CRE descriptions
2 parents 7ea3d2d + 88c6ae5 commit 69018d1

File tree

14 files changed

+79
-96
lines changed

14 files changed

+79
-96
lines changed

rules/cre-2025-0021/keda-nil-pointer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ rules:
3737
gen: 1
3838
rule:
3939
set:
40-
window: 1s
40+
window: 5s
4141
event:
4242
source: keda-operator
4343
match:

rules/cre-2025-0025/kafka-broker-replication-mismatch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ rules:
33
id: CRE-2025-0025
44
severity: 2
55
title: Kafka broker replication mismatch
6-
category: message-queue-problems
6+
category: message-queue-problem
77
author: Prequel
88
description: |
99
When the configured replication factor for a Kafka topic is greater than the actual number of brokers in the cluster, Kafka repeatedly fails to assign partitions and logs replication-related errors. This results in persistent warnings or an `InvalidReplicationFactorException` when the broker tries to create internal or user-defined topics.

rules/cre-2025-0026/aws-ebs-csi-driver-fails-to.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ rules:
3939
set:
4040
event:
4141
source: aws-eks-nodeagent
42+
window: 10s
4243
match:
4344
- value: the server could not find the requested resource (get volumesnapshotcontents.snapshot.storage.k8s.io)
4445
- value: Unhandled Error

rules/cre-2025-0028/opentelemetry-python-fails-to.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ rules:
3838
set:
3939
event:
4040
source: opentelemetry
41+
window: 5s
4142
match:
4243
- value: ERROR opentelemetry.context:Failed to detach context
4344
- regex: "ValueError: <Token var=<ContextVar name='current_context' .* was created in a different Context"

rules/cre-2025-0030/sqlalchemy-fails-when.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ rules:
4343
source: logs
4444
window: 5s
4545
match:
46-
- regex: '.*sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string.*'
46+
- regex: '.*sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string.*'

rules/cre-2025-0032/loki-generates-excessive-logs.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ rules:
66
category: observability-problem
77
author: Prequel
88
description: |
9-
- 'Loki instances using memcached for caching may emit excessive warning or error logs when the configured`memcached_client` service port name does not match the actual Kubernetes service port. This does not cause a crash or failure, but it results in noisy logs and ineffective caching behavior.
9+
- Loki instances using memcached for caching may emit excessive warning or error logs when the configured`memcached_client` service port name does not match the actual Kubernetes service port. This does not cause a crash or failure, but it results in noisy logs and ineffective caching behavior.
1010
cause: |
11-
- 'Loki''s memcached client resolves the service by port name. If the port name is incorrect or not present in the Kubernetes service definition, the client fails to connect silently or repeatedly logs errors while retrying.
11+
- Loki's memcached client resolves the service by port name. If the port name is incorrect or not present in the Kubernetes service definition, the client fails to connect silently or repeatedly logs errors while retrying.
1212
tags:
13-
- loki
14-
- memcached
15-
- configuration
16-
- service
17-
- cache
18-
- known-issue
19-
- kubernetes
13+
- loki
14+
- memcached
15+
- configuration
16+
- service
17+
- cache
18+
- known-issue
19+
- kubernetes
2020
mitigation: |
2121
- Ensure that the `memcached_client` configuration references the correct Kubernetes service **port name**.
2222
- Match the port name exactly as defined in your memcached service.
@@ -43,10 +43,10 @@ rules:
4343
id: 8LBoHzFdJy9RP4tZcpry2T
4444
gen: 1
4545
rule:
46-
set:
46+
sequence:
4747
event:
4848
source: logs
4949
window: 60s
50-
match:
50+
order:
5151
- regex: '.*msg="failed to connect to memcached server.*lookup .* on .*: no such host.*'
5252
count: 20

rules/cre-2025-0033/opentelemetry-collector.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ rules:
4141
set:
4242
event:
4343
source: logs
44-
window: 5s
4544
match:
4645
- regex: '.*scrape/scrape.go:\d+\s+Scrape commit failed.*\"error\": \"data refused due to high memory usage\"'
4746

rules/cre-2025-0034/datadog-agent-disabled-due-to.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,5 @@ rules:
4040
set:
4141
event:
4242
source: logs
43-
window: 5s
4443
match:
4544
- regex: .*DD_API_KEY undefined\. Metrics, logs and events will not be reported to DataDog.*

rules/cre-2025-0035/psycopg2-ssl-error-due-to.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,5 @@ rules:
4343
set:
4444
event:
4545
source: logs
46-
window: 5s
4746
match:
4847
- regex: '.*django\.db\.utils\.OperationalError: SSL error: decryption failed or bad record mac.*'

rules/cre-2025-0036/opentelemetry-collector-drops.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@ rules:
4242
set:
4343
event:
4444
source: logs
45-
window: 5s
4645
match:
4746
- regex: 'internal/queue_sender.*Exporting failed.*"exporter".*Permanent error: 413 Payload Too Large.*'

0 commit comments

Comments
 (0)