Skip to content

Commit

Permalink
feat: added security context placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Nix committed Nov 15, 2022
1 parent 916868b commit edc00b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lacework_cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ resource "kubernetes_deployment" "lacework_k8s_collector" {
}
}

security_context {
privileged = false
run_as_non_root = true
run_as_user = 5000 #TODO update to official UID
read_only_root_filesystem = true
allow_privilege_escalation = false
}

volume_mount {
name = "cfgmap"
mount_path = "/config"
Expand Down

0 comments on commit edc00b6

Please sign in to comment.