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

feat(cmake): add conditional builds for falcoctl and rules paths #3305

Conversation

tembleking
Copy link
Contributor

@tembleking tembleking commented Aug 26, 2024

There are systems, like Nix derivations where the build process does not have network access in order to enforce reproducibility. This patch allows people building Falco to optionally skip the build of falcoctl with -DADD_FALCOCTL_DEPENDENCY=OFF and point to their own self-backed, or pre-fetched rules files with -DFALCOSECURITY_RULES_FALCO_PATH=<some-path> and -DFALCOSECURITY_RULES_LOCAL_PATH=<some-path>.

For context, I needed to apply these patches while building the project with Nix in https://github.com/tembleking/falco-nix but I think that would be benefitial for the community to have also these options open, and that would also make Falco feasible to be added to the nixpkgs repository at https://github.com/nixos/nixpkgs

/kind feature
/kind release
/area build

NONE

There are systems, like Nix derivations where the build process
does not have network access in order to enforce reproducibility.
This patch allows people building Falco to optionally skip the build
of falcoctl with `-DADD_FALCOCTL_DEPENDENCY=OFF` and point to their own
self-backed, or pre-fetched rules files with
`-DFALCOSECURITY_RULES_FALCO_PATH=<some-path>` and
`-DFALCOSECURITY_RULES_LOCAL_PATH=<some-path>`.

For context, I needed to apply these patches while building the
project with Nix in https://github.com/tembleking/falco-nix but I think
that would be benefitial for the community to have also these options
open, and that would also make Falco feasible to be added to the
nixpkgs repository at https://github.com/nixos/nixpkgs

Signed-off-by: Fede Barcelona <[email protected]>
@poiana
Copy link
Contributor

poiana commented Aug 26, 2024

Welcome @tembleking! It looks like this is your first PR to falcosecurity/falco 🎉

@poiana poiana added the size/S label Aug 26, 2024
@FedeDP
Copy link
Contributor

FedeDP commented Aug 27, 2024

/milestone 0.39.0

I really like this small patch; it's great to have Falco building in as many env as we can :)

@poiana poiana added this to the 0.39.0 milestone Aug 27, 2024
Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

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

/approve

@poiana
Copy link
Contributor

poiana commented Aug 27, 2024

LGTM label has been added.

Git tree hash: a3cfc97834d3b14e1e02854cea7dc9ca1de9cbb7

Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

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

/approve

@poiana
Copy link
Contributor

poiana commented Aug 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, FedeDP, tembleking

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:

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 7a684fd into falcosecurity:master Aug 27, 2024
32 of 33 checks passed
@tembleking tembleking deleted the feat-add-cmake-conditional-build-falcoctl-and-rules branch August 27, 2024 08:19
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.

4 participants