-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplates.tf
55 lines (52 loc) · 1.14 KB
/
templates.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
resource "sigsci_site_templated_rule" "login_attempt" {
site_short_name = var.sigsci_site
name = "LOGINATTEMPT"
detections {
enabled = "true"
fields {
name = "path"
value = "/auth/v2/oath/token"
}
}
alerts {
long_name = "alert 1"
interval = 1
threshold = 10
skip_notifications = true
enabled = true
action = "info"
block_duration_seconds = 600
}
}
resource "sigsci_site_templated_rule" "login_failure" {
site_short_name = var.sigsci_site
name = "LOGINFAILURE"
detections {
enabled = "true"
fields {
name = "path"
value = "/auth/v2/oath/token"
}
fields {
name = "responseCode"
value = "400"
}
fields {
name = "responseHeaderName"
value = ""
}
fields {
name = "responseHeaderValue"
value = ""
}
}
alerts {
long_name = "alert 1"
interval = 1
threshold = 10
skip_notifications = true
enabled = true
action = "info"
block_duration_seconds = 600
}
}