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

Multiple slack notifications #930

Closed
seanmcrw opened this issue Nov 20, 2019 · 8 comments
Closed

Multiple slack notifications #930

seanmcrw opened this issue Nov 20, 2019 · 8 comments
Labels

Comments

@seanmcrw
Copy link

seanmcrw commented Nov 20, 2019

What happened:
Default installation on k8s(AWS EKS x7 EC2 nodes in cluster) with helm helm install --name falco stable/falco creates x7 duplicate notifications when using the slack integration.

What you expected to happen:
Only one notification should be posted to slack.

How to reproduce it (as minimally and precisely as possible):
Default helm install, with slack notifications enabled.

jsonOutput: true
  ....
    programOutput:
    enabled: true
    keepAlive: false
    program: "\"jq '{text: .output}' | curl -d @- -X POST https://hooks.slack.com/services/xxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxx\""

Anything else we need to know?:

Environment:

  • Falco version (use falco --version):
    falco version 0.15.3
  • System info
{
  "machine": "x86_64",
  "nodename": "falco-6l9sz",
  "release": "4.14.146-119.123.amzn2.x86_64",
  "sysname": "Linux",
  "version": "#1 SMP Mon Sep 23 16:58:43 UTC 2019"
}
  • Cloud provider or hardware configuration:
    AWS
  • OS (e.g: cat /etc/os-release):
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
Amazon Linux release 2 (Karoo)
cpe:2.3:o:amazon:amazon_linux:2
  • Kernel (e.g. uname -a):
Linux ip-10-0-73-85.eu-west-1.compute.internal 4.14.146-119.123.amzn2.x86_64 #1 SMP Mon Sep 23 16:58:43 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • Install tools (e.g. in kubernetes, rpm, deb, from source):
  • Others:
@Issif
Copy link
Member

Issif commented Nov 20, 2019

For more advanced notifications in Slack, you can take a look at : https://github.com/falcosecurity/falcosidekick

@seanmcrw
Copy link
Author

Thanks, I've tried falcosidekick, but I still get x7 duplicate notifications(same number of nodes in the ds) for each triggered rule.

@Issif
Copy link
Member

Issif commented Nov 20, 2019

Your notifications are about a k8s event from audit logs? Seems logical that all pods of the daemonset detect it.

@seanmcrw
Copy link
Author

seanmcrw commented Nov 20, 2019

This is a typical event that's repeated x7 times

14:43:20.636017541: Error File below /etc opened for writing (user=root command=exe / /var/lib/docker/overlay2/28f02df2e5c37c18e31d6a2b5795a1139d7d88464c4da3d38f2ab9709863dadf/diff parent=dockerd pcmdline=dockerd file=/etc/shadow program=exe gparent=systemd ggparent=<NA> gggparent=<NA>) k8s.ns=<NA> k8s.pod=<NA> container=host

On a different note I don't see the pod name or container name(host being a red herring #865 #629)

k8s.pod=<NA> container=host

@Issif
Copy link
Member

Issif commented Nov 28, 2019

Another user reported that kind of issue on Slack. cc @JPLachance. Have the name of related rule which triggers that?

For missing fields, it's known and people are figuring out how to solve that.

@fntlnz
Copy link
Contributor

fntlnz commented Nov 29, 2019

@seanmcrw the version of falco you are using is quite old 0.15.3. We had a lot of rules changes in 0.18.0 and every other version after that one and I believe this problem was solved by one of these #733 #736 #881 - could you try those out?

@seanmcrw
Copy link
Author

seanmcrw commented Dec 2, 2019

Thanks guys, using 0.18.0 solved the problem. Closing.

@seanmcrw seanmcrw closed this as completed Dec 2, 2019
@fntlnz
Copy link
Contributor

fntlnz commented Dec 5, 2019

Thanks for confirming @seanmcrw !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants