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

fix(policies) switch out rule in managed secure policy tests #610

Merged
merged 1 commit into from
Mar 12, 2025
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
8 changes: 4 additions & 4 deletions sysdig/resource_sysdig_secure_managed_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ resource "sysdig_secure_managed_policy" "sample" {
name = "Sysdig Runtime Threat Detection"
enabled = true
scope = "container.id != \"\""
disabled_rules = ["Dump memory for credentials"]
disabled_rules = ["Hexadecimal string detected"]
runbook = "https://sysdig.com"

actions {
Expand All @@ -80,7 +80,7 @@ resource "sysdig_secure_managed_policy" "sample" {
name = "Sysdig Runtime Threat Detection"
enabled = true
scope = "container.id != \"\""
disabled_rules = ["Dump memory for credentials"]
disabled_rules = ["Hexadecimal string detected"]
runbook = "https://sysdig.com"

actions {}
Expand All @@ -96,7 +96,7 @@ resource "sysdig_secure_managed_policy" "sample" {
name = "Sysdig Runtime Threat Detection"
enabled = true
scope = "container.id != \"\""
disabled_rules = ["Dump memory for credentials"]
disabled_rules = ["Hexadecimal string detected"]
runbook = "https://sysdig.com"

actions {
Expand All @@ -123,7 +123,7 @@ func managedPolicyWithKillAction() string {
name = "Sysdig Runtime Threat Detection"
enabled = true
scope = "container.id != \"\""
disabled_rules = ["Dump memory for credentials"]
disabled_rules = ["Hexadecimal string detected"]
runbook = "https://sysdig.com"

actions {
Expand Down
8 changes: 4 additions & 4 deletions sysdig/resource_sysdig_secure_managed_ruleset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resource "sysdig_secure_managed_ruleset" "sample" {
}
enabled = true
scope = "container.id != \"\""
disabled_rules = ["Dump memory for credentials"]
disabled_rules = ["Hexadecimal string detected"]
runbook = "https://sysdig.com"

actions {
Expand Down Expand Up @@ -95,7 +95,7 @@ resource "sysdig_secure_managed_ruleset" "sample" {
}
enabled = true
scope = "container.id != \"\""
disabled_rules = ["Dump memory for credentials"]
disabled_rules = ["Hexadecimal string detected"]
runbook = "https://sysdig.com"

actions {}
Expand All @@ -116,7 +116,7 @@ resource "sysdig_secure_managed_ruleset" "sample" {
}
enabled = true
scope = "container.id != \"\""
disabled_rules = ["Dump memory for credentials"]
disabled_rules = ["Hexadecimal string detected"]
runbook = "https://sysdig.com"

actions {
Expand Down Expand Up @@ -154,7 +154,7 @@ resource "sysdig_secure_managed_ruleset" "sample" {
}
enabled = true
scope = "container.id != \"\""
disabled_rules = ["Dump memory for credentials"]
disabled_rules = ["Hexadecimal string detected"]
runbook = "https://sysdig.com"

actions {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/secure_managed_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "sysdig_secure_managed_policy" "sysdig_runtime_threat_detection" {
scope = "container.id != \"\""

// Disabling rules
disabled_rules = ["Dump memory for credentials"]
disabled_rules = ["Hexadecimal string detected"]

actions {
container = "stop"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/secure_managed_ruleset.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "sysdig_secure_managed_ruleset" "sysdig_runtime_threat_detection_manage
scope = "container.id != \"\""

// Disabling rules
disabled_rules = ["Dump memory for credentials"]
disabled_rules = ["Hexadecimal string detected"]

actions {
container = "stop"
Expand Down
Loading