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

core: allow up to 32MB length of line buffer in read_config #7691

Merged
merged 4 commits into from
Jul 24, 2023

Conversation

tarruda
Copy link

@tarruda tarruda commented Jul 12, 2023

Currently fluent-bit config file has an implicit line length limit of 4096 bytes, this modifies the read_config to allow arbitrary line lengths.


Enter [N/A] in the box, if an item is not applicable to your change.

Testing
Before we can approve your change; please submit the following in a comment:

  • [N/A] Example configuration file for the change
  • [N/A] Debug log output from testing the change
  • [N/A] Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • [N/A] Run local packaging test showing all targets (including any new ones) build.
  • [N/A] Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • [N/A] Documentation required for this feature

Backporting

  • Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

@tarruda tarruda temporarily deployed to pr July 12, 2023 18:22 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 12, 2023 18:22 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 12, 2023 18:22 — with GitHub Actions Inactive
@tarruda tarruda force-pushed the tp/allow-arbitrary-config-line-lengths branch from f05d2a1 to 70a13f6 Compare July 12, 2023 18:25
@tarruda tarruda temporarily deployed to pr July 12, 2023 18:26 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 12, 2023 18:26 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 12, 2023 18:26 — with GitHub Actions Inactive
@tarruda tarruda force-pushed the tp/allow-arbitrary-config-line-lengths branch from 70a13f6 to 827ee24 Compare July 12, 2023 18:29
@tarruda tarruda temporarily deployed to pr July 12, 2023 18:30 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 12, 2023 18:30 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 12, 2023 18:30 — with GitHub Actions Inactive
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@tarruda tarruda temporarily deployed to pr July 12, 2023 18:56 — with GitHub Actions Inactive
@tarruda tarruda force-pushed the tp/allow-arbitrary-config-line-lengths branch from 827ee24 to 090f8fe Compare July 12, 2023 18:58
@tarruda tarruda temporarily deployed to pr July 12, 2023 19:41 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 12, 2023 19:41 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 12, 2023 19:45 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 12, 2023 20:13 — with GitHub Actions Inactive
@tarruda tarruda changed the title config: Modify read_config() to allow arbitrary lengths core: allow arbitrary lengths in read_config Jul 13, 2023
@tarruda tarruda force-pushed the tp/allow-arbitrary-config-line-lengths branch from 090f8fe to 974f15c Compare July 13, 2023 12:34
@tarruda tarruda temporarily deployed to pr July 13, 2023 12:35 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 13, 2023 12:35 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 13, 2023 12:35 — with GitHub Actions Inactive
@tarruda tarruda temporarily deployed to pr July 13, 2023 12:56 — with GitHub Actions Inactive
@tarruda tarruda force-pushed the tp/allow-arbitrary-config-line-lengths branch from 974f15c to 53a4996 Compare July 13, 2023 13:05
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 03:32 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 09:08 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 09:08 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 09:08 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 force-pushed the tp/allow-arbitrary-config-line-lengths branch from b3e3a58 to 78d88f5 Compare July 20, 2023 09:25
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 09:27 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 09:27 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 09:27 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 09:31 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 09:31 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 09:31 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 10:03 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 force-pushed the tp/allow-arbitrary-config-line-lengths branch from dbb4779 to 909a68c Compare July 20, 2023 10:05
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 10:06 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 10:06 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 10:06 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 10:39 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 force-pushed the tp/allow-arbitrary-config-line-lengths branch from 909a68c to 767b605 Compare July 20, 2023 11:19
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 11:20 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 11:20 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 11:20 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 changed the title core: allow arbitrary lengths in read_config core: allow up to 32MB length of line buffer in read_config Jul 20, 2023
@cosmo0920 cosmo0920 temporarily deployed to pr July 20, 2023 11:49 — with GitHub Actions Inactive
@edsiper
Copy link
Member

edsiper commented Jul 24, 2023

@cosmo0920 is this ok to go ?

@cosmo0920
Copy link
Contributor

Yes. It's ready to go!

@edsiper edsiper merged commit f50a02e into fluent:master Jul 24, 2023
40 of 42 checks passed
@tarruda tarruda deleted the tp/allow-arbitrary-config-line-lengths branch July 25, 2023 12:07
Wiston999 pushed a commit to Wiston999/fluent-bit that referenced this pull request Aug 7, 2023
…#7691)


---------

Signed-off-by: Thiago Padilha <[email protected]>
Signed-off-by: Hiroshi Hatake <[email protected]>
Co-authored-by: Hiroshi Hatake <[email protected]>
leonardo-albertovich pushed a commit that referenced this pull request Oct 5, 2023
---------

Signed-off-by: Thiago Padilha <[email protected]>
Signed-off-by: Hiroshi Hatake <[email protected]>
Co-authored-by: Hiroshi Hatake <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants