Skip to content

Commit 79e97f5

Browse files
authored
docs: Update docs with falco rule priority changes (#61)
* docs: Update docs with falco rule priority changes * fix: Avoid nil pointer dereference while performing request
1 parent fba0462 commit 79e97f5

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

sysdig/monitor/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ func (client *sysdigMonitorClient) doSysdigMonitorRequest(ctx context.Context, m
7575
log.Printf("[DEBUG] %s", string(out))
7676

7777
response, err := client.httpClient.Do(request)
78+
if err != nil {
79+
log.Println(err.Error())
80+
return response, err
81+
}
7882

7983
out, _ = httputil.DumpResponse(response, true)
8084
log.Printf("[DEBUG] %s", string(out))

sysdig/secure/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ func (client *sysdigSecureClient) doSysdigSecureRequest(ctx context.Context, met
8484
out, _ := httputil.DumpRequestOut(request, true)
8585
log.Printf("[DEBUG] %s", string(out))
8686
response, err := client.httpClient.Do(request)
87+
if err != nil {
88+
log.Println(err.Error())
89+
return response, err
90+
}
8791

8892
out, _ = httputil.DumpResponse(response, true)
8993
log.Printf("[DEBUG] %s", string(out))

website/docs/r/sysdig_secure_rule_falco.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The following arguments are supported:
4242

4343
* `condition` - (Required) A [Falco condition](https://falco.org/docs/rules/) is simply a Boolean predicate on Sysdig events expressed using the Sysdig [filter syntax](http://www.sysdig.org/wiki/sysdig-user-guide/#filtering) and macro terms.
4444
* `output` - (Optional) Add additional information to each Falco notification's output. Required if append is false.
45-
* `priority` - (Optional) The priority of the Falco rule. It can be: "emergency", "alert", "critical", "error", "warning", "notice", "informational", "informational" or "debug". By default is "warning".
45+
* `priority` - (Optional) The priority of the Falco rule. It can be: "emergency", "alert", "critical", "error", "warning", "notice", "info" or "debug". By default is "warning".
4646
* `source` - (Optional) The source of the event. It can be either "syscall" or "k8s_audit". Required if append is false.
4747
* `append` - (Optional) This indicates that the rule being created appends the condition to an existing Sysdig-provided rule. By default this is false. Appending to user-created rules is not supported by the API.
4848

0 commit comments

Comments
 (0)