-
Notifications
You must be signed in to change notification settings - Fork 919
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 customizable metadata fetching params #1667
Add customizable metadata fetching params #1667
Conversation
Welcome @zuc! It looks like this is your first PR to falcosecurity/falco 🎉 |
d012472
to
9028dc6
Compare
9028dc6
to
f204065
Compare
Note for the reviewer(s): I chose to keep |
f204065
to
9db557e
Compare
Since falcosecurity/libs#40 got merged, this is now ready for review. |
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 believe that checking the config values (coming from the user) against limits (especially upper ones in this case) is necessary.
Example: a user configuring Falco to have max_mb
equal to eg. 20000
.
Since we know that this approach of fetching the container orchestrator metadata has an impact on memory (and Falco performances), I think it's sane to provide safe boundaries for them.
@leodido I added an upper boundary for the maximum download size, and a check to force frequency seconds to be higher than 0. I don't think it would make much sense to cap the remaining params/boundaries given their meaning, but happy to discuss. |
6ee3025
to
2e640e6
Compare
2e640e6
to
b54ca63
Compare
b54ca63
to
24c7532
Compare
Signed-off-by: Michele Zuccala <[email protected]>
…for metadata download Signed-off-by: Michele Zuccala <[email protected]>
24c7532
to
ae4e1f1
Compare
Dismissing this because your suggestion was accepted and the fix was committed more than two months ago
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: 4eed899dc909ede675e884898a16c386c212cd58
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: leogr, zuc 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 |
Signed-off-by: Michele Zuccala [email protected]
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
Not sure about the appropriate
/area
label here, could you please advise?What this PR does / why we need it:
This PR adds support for customizable metadata fetching params that are going to be introduced with falcosecurity/libs#40.
Which issue(s) this PR fixes:
Special notes for your reviewer:
WIP because I'm planning to set the correct libs version and checksum once falcosecurity/libs#40 gets merged.
For now it's set to the feature branch name on https://github.com/falcosecurity/libs in order for this PR to be easily tested.
Does this PR introduce a user-facing change?: