Add use of FALCO_DRIVER_CHOICE and FALCOCTL_ENABLED env vars#2773
Add use of FALCO_DRIVER_CHOICE and FALCOCTL_ENABLED env vars#2773poiana merged 1 commit intofalcosecurity:masterfrom
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 |
leogr
left a comment
There was a problem hiding this comment.
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 |
|
LGTM label has been added. DetailsGit tree hash: fd4473ff7b2711984f61c3bcc745bc10f4bfdda2 |
| clear | ||
| else | ||
| case $FALCO_DRIVER_CHOICE in | ||
| module | kmod ) |
There was a problem hiding this comment.
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
|
[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 DetailsNeeds 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?: