-
Notifications
You must be signed in to change notification settings - Fork 905
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
Add use of FALCO_DRIVER_CHOICE and FALCOCTL_ENABLED env vars #2773
Conversation
Signed-off-by: Vicente J. Jiménez Miras <vjjmiras@gmail.com>
First of all, thank you for the proposed changes! So I'm not completely sure what we want do to here...I would avoid introducing new envs that will be deleted in the next release of Falco, but these are just my 2 cents. Any opinions here? @falcosecurity/falco-maintainers |
@FedeDP since you work on env variables atm, what about this PR? Thank you! |
I actually think this PR is useful on another level, ie: during rpm/deb installation for example in dockerfiles. |
Adding a small info on top of this; al2023 does not ship any |
How can we ensure these |
|
I meant how we ensure it is in sync with Falco settings when Falco will start later. Anyway, I've likely found the answer:
Is my assumption correct? 🤔 If so, I guess we have to update systemd files according to the new driver selection mechanism. For example: Should be:
|
yes
This is done in #2905 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM, considering #2773 (comment)
I just want to invite other @falcosecurity/falco-maintainers to take a look and consider if we want to support these env vars.
For me, they are ok. Maybe we can think about a better naming that lets users clearly understand their purpose and scope (ie they are for host installation use case only).
/milestone 0.37.0 |
/assign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM label has been added. Git tree hash: fd4473ff7b2711984f61c3bcc745bc10f4bfdda2
|
@@ -67,6 +67,25 @@ if [ "$1" = "configure" ]; then | |||
esac | |||
fi | |||
clear | |||
else | |||
case $FALCO_DRIVER_CHOICE in | |||
module | kmod ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just enforce proper namings (the same names that we use for falco systemd units for example? Or the ones we use in Falco config)
But i can do that once this is merged, in #2905
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed with @FedeDP, this PR is ok, and we just reserve to do minor changes or improvement (ie. naming) in a follow up PR (likely after we have tested Falco with all the recent changes merged in).
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, leogr, vjjmiras 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 |
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Refs #2574
These new environment variables will be recognized when the user attempts the unattended installation of Falco.
They'll expand the customization options letting the user choose their preferred driver and the use of falcoctl. In other words, it's an alternative to the dialog input.
Special notes for your reviewer:
Does this PR introduce a user-facing change?: