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

[Ubuntu Bionic 18.04 - AWS AMI] 404 Falco probe binary not found #897

Closed
JPLachance opened this issue Oct 23, 2019 · 14 comments
Closed

[Ubuntu Bionic 18.04 - AWS AMI] 404 Falco probe binary not found #897

JPLachance opened this issue Oct 23, 2019 · 14 comments
Assignees
Labels

Comments

@JPLachance
Copy link
Contributor

What happened:
I am testing Falco minimal in Kubernetes 1.11 on AWS on top of a Ubuntu 18.04 AMI.

I see the following logs in the probeloader container:

2019-10-23T19:52:34Z [✿]  FALCO_VERSION: 0.17.1
2019-10-23T19:52:34Z [✿]  FALCO_PROBE_URL: 
2019-10-23T19:52:34Z [✿]  FALCO_PROBE_REPO: https://s3.amazonaws.com/download.draios.com/stable/sysdig-probe-binaries/
2019-10-23T19:52:34Z [✿]  KERNEL_VERSION: 4.15.0-1044-aws
2019-10-23T19:52:34Z [✿]  KERNEL_CONFIG_HASH: e801ad66ab7152e98bb6a89ff383a5f2
2019-10-23T19:52:34Z [✿]  Downloading kernel module from https://s3.amazonaws.com/download.draios.com/stable/sysdig-probe-binaries/falco-probe-0.17.1-x86_64-4.15.0-1044-aws-e801ad66ab7152e98bb6a89ff383a5f2.ko
2019-10-23T19:52:34Z [✿]  Recevied HTTP Status Code: 404
2019-10-23T19:52:34Z [✖]  Non-200 Status code received 404
2019-10-23T19:52:34Z [✖]  Error opening kernel module: /falco-probe.ko
2019-10-23T19:52:34Z [✖]  Error loading module: open /falco-probe.ko: no such file or directory

What you expected to happen:
I expected the probeloader container to download the required version of the Falco probe.

How to reproduce it (as minimally and precisely as possible):

  1. Create an instance that uses the following base AMI:
       "source_ami_filter": {
        "filters": {
          "virtualization-type": "hvm",
          "name": "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*",
          "root-device-type": "ebs"
        },
        "owners": [
          "099720109477"
        ],
        "most_recent": true
  1. Install things required for Docker and Docker
  2. Launch the probeloader container

Anything else we need to know?:
I had a discussion in Slack with @mfdii and he seems pretty aware of the issue.

Environment:

  • Falco version : 0.17.1 (minimal)
  • Cloud provider or hardware configuration: AWS
  • OS: Ubuntu 18.04.03
  • Kernel: Linux 4.15.0-1044-aws Add a "falco safe" shell variant #46-Ubuntu SMP Thu Jul 4 13:38:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • Install tools : Kubernetes (the minimal image with the latest probeloader image (0.17.1)
@mfdii
Copy link
Member

mfdii commented Oct 24, 2019

The probe builder wasn't taking into account Ubuntu aws kernels. We are working with the teams that maintain that system to start building probes for these kernels.

@fntlnz
Copy link
Contributor

fntlnz commented Oct 24, 2019

This process will become more clear once the Falco project owns the infrastructure to build those. For now we are relying on Sysdig (company) infrastructure to build those.

This is tracked down in this issue: falcosecurity/test-infra#53

@mfdii
Copy link
Member

mfdii commented Dec 4, 2019

This needs to be fixed by adding -aws to this section of the kernel-crawler.py

@mfdii mfdii self-assigned this Dec 4, 2019
@mfdii
Copy link
Member

mfdii commented Dec 5, 2019

Created draios/sysdig#1552 to address this issue.

@stale
Copy link

stale bot commented Feb 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 3, 2020
@stale stale bot closed this as completed Feb 10, 2020
@JPLachance
Copy link
Contributor Author

This issue was not solved. We should have a tag we can put on important issues like this one and the stale bot should stop closing important issues. 😄

@fntlnz fntlnz reopened this Feb 18, 2020
@stale stale bot removed the wontfix label Feb 18, 2020
@stale
Copy link

stale bot commented Apr 18, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 18, 2020
@stale stale bot closed this as completed Apr 25, 2020
@fntlnz fntlnz reopened this Apr 27, 2020
@stale stale bot removed the wontfix label Apr 27, 2020
@fntlnz
Copy link
Contributor

fntlnz commented Apr 27, 2020

@JPLachance - we have the pre-built ubuntu driver now. Can you check by installing Falco from master?

The downloadable .ko files are here https://dl.bintray.com/falcosecurity/driver/a259b4bf49c3330d9ad6c3eed9eb1a31954259a6/

@JPLachance
Copy link
Contributor Author

Hello @fntlnz,

Do we have an up-to-date version of the Falco DaemonSet that uses the probeloader init container somewhere?

I tried it, but I still get the following errors:

jplachance@WKS-001157 kops_daemonset % k logs falco-48h5f probeloader
2020-04-28T20:32:57Z [✿]  FALCO_VERSION: 0.22.1
2020-04-28T20:32:57Z [✿]  FALCO_PROBE_URL: 
2020-04-28T20:32:57Z [✿]  FALCO_PROBE_REPO: https://dl.bintray.com/falcosecurity/driver/a259b4bf49c3330d9ad6c3eed9eb1a31954259a6/
2020-04-28T20:32:57Z [✿]  KERNEL_VERSION: 4.15.0-1063-aws
2020-04-28T20:32:57Z [✿]  KERNEL_CONFIG_HASH: ca784ed50e06a5ba87f7b0d3e5b4b210
2020-04-28T20:32:57Z [✿]  Downloading kernel module from https://dl.bintray.com/falcosecurity/driver/a259b4bf49c3330d9ad6c3eed9eb1a31954259a6/falco-probe-0.22.1-x86_64-4.15.0-1063-aws-ca784ed50e06a5ba87f7b0d3e5b4b210.ko
2020-04-28T20:32:58Z [✿]  Recevied HTTP Status Code: 404
2020-04-28T20:32:58Z [✖]  Non-200 Status code received 404
2020-04-28T20:32:58Z [✖]  Error opening kernel module: /falco-probe.ko
2020-04-28T20:32:58Z [✖]  Error loading module: open /falco-probe.ko: no such file or directory

Also, by looking at tags in Docker hub for the probeloader image, the last update was two months ago.

Thanks in advance for the help!

@fntlnz
Copy link
Contributor

fntlnz commented Apr 29, 2020

I can find both the module and bpf probe for your kernel on the new bucket.

I added a note to the today's community call mentioning your comment.

Thanks for checking all this with us before we release!

@leogr
Copy link
Member

leogr commented Apr 29, 2020

Note that the probeloader is not supported anymore 👉 falcosecurity/contrib#5

@stale
Copy link

stale bot commented Jun 28, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 28, 2020
@leodido
Copy link
Member

leodido commented Jun 29, 2020

Now we have a new infrastructure to provide prebuilt Falco kernel modules and Falco eBPF probes (see https://github.com/falcosecurity/test-infra, driverkit folder).

It turns out that we are providing both the Falco kernel module (link) and the Falco eBPF probe (link) for the kernel that @JPLachance reported (on ubuntu-aws).

/close

@stale stale bot removed the wontfix label Jun 29, 2020
@poiana poiana closed this as completed Jun 29, 2020
@poiana
Copy link
Contributor

poiana commented Jun 29, 2020

@leodido: Closing this issue.

In response to this:

Now we have a new infrastructure to provide prebuilt Falco kernel modules and Falco eBPF probes (see https://github.com/falcosecurity/test-infra, driverkit folder).

It turns out that we are providing both the Falco kernel module (link) and the Falco eBPF probe (link) for the kernel that @JPLachance reported.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

6 participants