Skip to content

Commit a94d538

Browse files
testing falco
1 parent 61b3da0 commit a94d538

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/scsctl_test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@ jobs:
3434
kubectl get pods --all-namespaces
3535
3636
helm version
37-
helm list
37+
38+
helm repo add pyroscope-io https://pyroscope-io.github.io/helm-chart
39+
helm install pyroscope pyroscope-io/pyroscope
40+
kubectl get pods
41+
42+
sleep 10
43+
44+
curl http://localhost:4040
45+
46+
# helm install falco -f custom-rules.yaml --set "falco.rules_file={/etc/falco/falco_rules.local.yaml,/etc/falco/rules.d}" --set falcoctl.artifact.install.enabled=false --set falcoctl.artifact.follow.enabled=false --set falco.json_output=true --set falco.file_output.enabled=true falcosecurity/falco
3847
3948
4049
# - name: Install a python cli tool from test pypi and run it

custom-rules.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
customRules:
2+
falco_rules.yaml: |-
3+
- rule: File Opened in Container
4+
desc: Detect any file opened in container
5+
condition: open_file_in_container
6+
output: file - %fd.name type - %evt.type Deplyment name - %k8s.deployment.name time - %evt.time.iso8601
7+
priority: INFO
8+
tags:
9+
- scsctl
10+
- macro: open_file_in_container
11+
condition: >
12+
fd.name endswith ".py" and
13+
k8s.deployment.name startswith "app" and
14+
evt.type = "openat"

0 commit comments

Comments
 (0)