-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a default syscall_config.yaml file (#73)
## Summary Lacework now supports syscall monitoring. From the work done in https://github.com/lacework/terraform-aws-ssm-agent/pull/46/files, I created the required syscall_config.yaml file in the EKS DaemonSet. ## How did you test this change? The change got tested in our development environment. ## Issue A new syscall_config.yaml file is required by the Lacework agent. This is a naive first implementation.
- Loading branch information
1 parent
3c95a1e
commit 6cecea5
Showing
7 changed files
with
114 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Enable default syscall config | ||
|
||
This example shows how to use the Terraform Provider for Lacework to create | ||
a new Lacework Agent Token and use it to generate a Kubernetes DaemonSet and | ||
Secret configuration for deploying the Lacework Datacollector Agent. In this | ||
specific example, we enable the default syscall config. | ||
|
||
```hcl | ||
provider "kubernetes" {} | ||
provider "lacework" {} | ||
resource "lacework_agent_access_token" "k8s" { | ||
name = "prod" | ||
description = "k8s deployment for production env" | ||
} | ||
module "lacework_k8s_datacollector" { | ||
source = "lacework/agent/kubernetes" | ||
version = "~> 2.0" | ||
lacework_access_token = lacework_agent_access_token.k8s.token | ||
lacework_enable_default_syscall_config = true | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
provider "kubernetes" {} | ||
|
||
provider "lacework" {} | ||
|
||
resource "lacework_agent_access_token" "k8s" { | ||
name = "prod" | ||
description = "k8s deployment for production env" | ||
} | ||
|
||
module "lacework_k8s_datacollector" { | ||
source = "../../" | ||
|
||
lacework_access_token = lacework_agent_access_token.k8s.token | ||
lacework_enable_default_syscall_config = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
terraform { | ||
required_version = ">= 0.15" | ||
|
||
required_providers { | ||
kubernetes = "~> 2.2" | ||
lacework = { | ||
source = "lacework/lacework" | ||
version = "~> 1.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
etype.exec: | ||
group-by: | ||
- none | ||
etype.initmod: | ||
group-by: | ||
- none | ||
etype.finitmod: | ||
group-by: | ||
- none | ||
etype.file: | ||
send-if-matches: | ||
user-authorized-keys: | ||
watchpath: /home/*/.ssh/authorized_keys | ||
watchfor: create, modify | ||
root-authorized-keys: | ||
watchpath: /root/.ssh/authorized_keys | ||
watchfor: create, modify | ||
cronfiles: | ||
watchpath: /etc/cron* | ||
depth: 2 | ||
systemd: | ||
watchpath: /etc/systemd/* | ||
depth: 2 | ||
boot-initd: | ||
watchpath: /etc/init.d/* | ||
depth: 2 | ||
boot-rc: | ||
watchpath: /etc/rc* | ||
depth: 2 | ||
shadow-file: | ||
watchpath: /etc/shadow* | ||
watchlacework: | ||
watchpath: /var/lib/lacework | ||
depth: 2 | ||
watchpasswd: | ||
watchpath: /etc/passwd | ||
watchsshconfig: | ||
watchpath: /etc/ssh/sshd_config | ||
watchfor: create, modify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters