-
Notifications
You must be signed in to change notification settings - Fork 249
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
Limit feature file size #1330
Comments
FYI @marquiz. |
Thanks @AhmedGrati for creating this issue
I don't think we need to make it configurable. I believe 64kB (or 32kB) should be plenty, enough. Let's revisit this if somebody really comes up with a use case for bigger feature files.
I would consider it as a "transaction", all or nothing, not advertise partial results. I.e. skip the file if it's too big ping @eero-t |
It's possible that some feature files could in addition to labels, include extensive documentation for those labels as comments, which I think to be a valid use-case. Main things that should IMHO be caught is accidentally giving NFD the old binary hook as feature file, or things intentionally trying to break NFD. => I think the limit can be fixed size, fairly big, and documented [1]. 64kB sounds fine, but it could be even larger.
Agree, log an error [2] instead of parsing file, and move to next file. [1] E.g: "NFD logs an error and skips feature files larger than XX KiB. Larger files are assumed to be configuration errors." |
/assign |
What would you like to be added:
Currently, we are processing feature files without any restriction on the file size, since we are expecting that the file is coming from a trusted source. However, processing large files can present some bottlenecks. Therefore, we should limit the size of features' files.
For more information: #1285 (comment)
Why is this needed:
Improve confidence in the system, by covering edge cases concerning feature file size.
The text was updated successfully, but these errors were encountered: