-
Notifications
You must be signed in to change notification settings - Fork 902
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
rules_file
/rules_files
not being respected
#3296
Comments
I would move this to the main Falco repo since it seems a Falco issue |
I thought this was the falco repo? Could you link me the repo you're talking about @Andreagit97? |
Yes, I moved the issue to this repo some days ago, so now it is in the Falco repo. You can read it in the above issue history, you should find something like:
You initially opened it in |
Ah okay I didn't realise you can move issues between repositories. I've just closed the issue I created in the charts repo and look forward to hearing a response here, thank you |
Thank you for reporting this! I believe the documentation is out of date there and needs a bit of fixing in both the recommended rule versions and the key name. I have now tested the following falco:
rules_files:
- /etc/falco/falco_rules.yaml
- /etc/falco/falco-incubating_rules.yaml
- /etc/falco/falco-sandbox_rules.yaml
- /etc/falco/rules.d
falcoctl:
config:
allowed_types: ["rulesfile"]
artifact:
install:
rulesfilesDir: /etc/falco/
refs: [falco-rules:3,falco-incubating-rules:4,falco-sandbox-rules:4]
follow:
rulesfilesDir: /etc/falco/
refs: [falco-rules:3,falco-incubating-rules:4,falco-sandbox-rules:4] And it loads the incubating and sandbox rules. Does it fix your issue? Re. k8saudit, the setup is a bit more complex because you also need to configure your k8s cluster to output audit events. see https://github.com/falcosecurity/plugins/tree/main/plugins/k8saudit for more information. |
This unfortunately didn't work for me. What version of the falco helm chart are you using? I'm seeing both references to |
I ended up working it out. falco:
rules_files:
- /etc/falco/falco_rules.yaml
- /etc/falco/falco-incubating_rules.yaml
- /etc/falco/falco-sandbox_rules.yaml
- /etc/falco/rules.d
falcoctl:
config:
artifact:
allowed_types: ["rulesfile"]
install:
rulesfilesDir: /etc/falco/
refs: [falco-rules:3,falco-incubating-rules:4,falco-sandbox-rules:4]
follow:
rulesfilesDir: /etc/falco/
refs: [falco-rules:3,falco-incubating-rules:4,falco-sandbox-rules:4] |
@kimberleyhallifax, are you still getting the warning: |
Yes I am @alacuku |
Description
I am attempting to include additional rule files including the sandbox and incubating rules. I'm doing this in a Helm chart using the following documentation here to add the following config:
But my config is not being respected.
How to reproduce it
Here is my
Chart.yaml
:Here is my
values.yaml
file:I have also tried this with falco Helm chart version
4.7.2
and withrules_files
and that did not work either.Expected behaviour
I expect the
falco-incubating_rules.yaml
,falco-sandbox_rules.yaml
andk8s_audit_rules.yaml
rule files to load in my pod, in addition to the defaultfalco_rules.yaml
. However, onlyfalco_rules.yaml
loads.Here are my kubernetes pod logs to confirm that only
falco_rules.yaml
is being loaded:Environment
4.7.0 and 4.7.2
MacOS M1
Darwin VGW0681 23.6.0 Darwin Kernel Version 23.6.0: Fri Jul 5 17:56:41 PDT 2024; root:xnu-10063.141.1~2/RELEASE_ARM64_T6000 arm64
Kubernetes Helm
The text was updated successfully, but these errors were encountered: