Skip to content

Commit 9cc9632

Browse files
author
Ben Lucas
authored
add description to rule as falco validation requires a description (#279)
* add description to rule as falco validation requires a description * fix call to Sprintf to ensure we pass in the parameter twice
1 parent 3bfd921 commit 9cc9632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sysdig/resource_sysdig_secure_rule_falco_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,14 @@ func ruleFalcoTerminalShell(name string) string {
9797
return fmt.Sprintf(`
9898
resource "sysdig_secure_rule_falco" "terminal_shell" {
9999
name = "TERRAFORM TEST %s - Terminal Shell"
100+
description = "TERRAFORM TEST %s"
100101
tags = ["container", "shell", "mitre_execution"]
101102
102103
condition = "spawned_process and container and shell_procs and proc.tty != 0 and container_entrypoint"
103104
output = "A shell was spawned in a container with an attached terminal (user=%%user.name %%container.info shell=%%proc.name parent=%%proc.pname cmdline=%%proc.cmdline terminal=%%proc.tty container_id=%%container.id image=%%container.image.repository)"
104105
priority = "notice"
105106
source = "syscall" // syscall or k8s_audit
106-
}`, name)
107+
}`, name, name)
107108
}
108109

109110
func ruleFalcoTerminalShellWithMissingOuput(name string) string {

0 commit comments

Comments
 (0)