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

new: driver selection in falco.yaml #2413

Merged
merged 29 commits into from Nov 27, 2023

Conversation

therealbobo
Copy link
Contributor

@therealbobo therealbobo commented Feb 9, 2023

Signed-off-by: Roberto Scolaro roberto.scolaro21@gmail.com

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind release

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area engine

/area tests

/area proposals

/area CI

What this PR does / why we need it:

It might be useful to configure the driver mode via the configuration file falco.yaml

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

new: driver selection in falco.yaml

@Andreagit97
Copy link
Member

Thank you for this! @therealbobo
We discussed many times to uniform how we open engines and this could be a possible way
cc @leogr

@leogr
Copy link
Member

leogr commented Feb 21, 2023

Thank you for this! @therealbobo We discussed many times to uniform how we open engines and this could be a possible way cc @leogr

It could be a possible solution. However, how could that option interact with other ways to select the driver?
I specifically refer to the FALCO_BPF_PROBE env var and other esoteric options like -u or how we enable the gVisor support.

Let's discuss it!

@therealbobo
Copy link
Contributor Author

therealbobo commented Feb 21, 2023

I think that the driver selected in falco.yaml should be considered if and only if the driver to be used is not specified in any other way (e.g. env variable or args). Moreover, using the config file, it will possibile to simplify the service management. 🤔

@leogr leogr added this to the 0.36.0 milestone May 3, 2023
@poiana
Copy link

poiana commented Aug 1, 2023

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

@FedeDP
Copy link
Contributor

FedeDP commented Nov 6, 2023

/reopen

/remove-lifecycle stale

@poiana poiana reopened this Nov 6, 2023
@poiana
Copy link

poiana commented Nov 6, 2023

@FedeDP: Reopened this PR.

In response to this:

/reopen

/remove-lifecycle stale

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.

@FedeDP
Copy link
Contributor

FedeDP commented Nov 6, 2023

/milestone 0.37.0

@poiana poiana modified the milestones: TBD, 0.37.0 Nov 6, 2023
@FedeDP
Copy link
Contributor

FedeDP commented Nov 6, 2023

We actually need this for the shiny new falco-driver-loader integrated inside falcoctl: falcosecurity/falcoctl#327

@FedeDP
Copy link
Contributor

FedeDP commented Nov 6, 2023

I'd suggest a rebase, and then:

  • DEPRECATION NOTICE for FALCO_BPF_PROBE
  • DEPRECATION NOTICE for cmd line options (note that -u was already dropped in the meantime, so i think that only the modern-bpf related one survives today)

Imho config option should always take precedence over deprecated cmdline/env var, since otherwise falcoctl would not be able to correctly instrument the right driver for Falco.

/cc @leogr

These macros will be used by other files so we need to share them

Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
Copy link
Contributor

@LucaGuerra LucaGuerra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this! 😮 LGTM, let's merge it so we can test it better. This is something we needed 😅

@poiana
Copy link

poiana commented Nov 24, 2023

LGTM label has been added.

Git tree hash: f99a5c87c0a21f7dc134467c3c73787ba75ee22f

Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sure we need to deeply test it, but LGTM at the moment!

Thank you'll!

@poiana
Copy link

poiana commented Nov 27, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, leogr, LucaGuerra, therealbobo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [Andreagit97,LucaGuerra,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 00b7c56 into falcosecurity:master Nov 27, 2023
20 checks passed
alacuku added a commit to alacuku/charts that referenced this pull request Jan 11, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 12, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 12, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 23, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 24, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 24, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 24, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 24, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 24, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 25, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 29, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
alacuku added a commit to alacuku/charts that referenced this pull request Jan 29, 2024
Please see: falcosecurity/falco#2413.

Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
poiana pushed a commit to falcosecurity/charts that referenced this pull request Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants