Skip to content

[filebeat][ABS] - Fixed issue for "Root level readerConfig no longer respected"#44873

Merged
ShourieG merged 10 commits intoelastic:mainfrom
ShourieG:bugfix/readerConfig
Jun 19, 2025
Merged

[filebeat][ABS] - Fixed issue for "Root level readerConfig no longer respected"#44873
ShourieG merged 10 commits intoelastic:mainfrom
ShourieG:bugfix/readerConfig

Conversation

@ShourieG
Copy link
Contributor

@ShourieG ShourieG commented Jun 17, 2025

Type of change

  • Bug

Proposed commit message

Due to how we pre-fill certain default config values, the recently
added 'isConfigEmpty' check was not sufficient to differentiate between an
empty and default readerConfig state. This PR overhauls the comparison,
replacing the 'isConfigEmpty' with a reflect.DeepEqual against a generated
default 'readerConfig' state. This approach avoids the pitfalls of the
existing validation and allows both global & container level 'readerConfig'
configurations.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Disruptive User Impact

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@ShourieG ShourieG self-assigned this Jun 17, 2025
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jun 17, 2025
@github-actions
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mergify
Copy link
Contributor

mergify bot commented Jun 17, 2025

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @ShourieG? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.
@ShourieG ShourieG marked this pull request as ready for review June 17, 2025 14:12
@ShourieG ShourieG requested a review from a team as a code owner June 17, 2025 14:12
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@ShourieG ShourieG requested a review from efd6 June 17, 2025 14:12
@ShourieG
Copy link
Contributor Author

@efd6, have resolved all the comments

@ShourieG
Copy link
Contributor Author

/test

@ShourieG ShourieG requested a review from a team as a code owner June 18, 2025 15:48
@ShourieG ShourieG requested review from belimawr and faec June 18, 2025 15:48
@ShourieG ShourieG requested a review from efd6 June 19, 2025 04:19
Copy link
Contributor

@efd6 efd6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@ShourieG ShourieG merged commit 01adb89 into elastic:main Jun 19, 2025
30 of 34 checks passed
@ShourieG ShourieG deleted the bugfix/readerConfig branch June 19, 2025 08:21
@ShourieG
Copy link
Contributor Author

ShourieG commented Dec 8, 2025

@Mergifyio backport 8.19

@mergify
Copy link
Contributor

mergify bot commented Dec 8, 2025

backport 8.19

✅ Backports have been created

Details
mergify bot pushed a commit that referenced this pull request Dec 8, 2025
…respected" (#44873)

Due to how we pre-fill certain default config values, the recently
added 'isConfigEmpty' check was not sufficient to differentiate between an
empty and default readerConfig state. This PR overhauls the comparison,
replacing the 'isConfigEmpty' with a reflect.DeepEqual against a generated
default 'readerConfig' state. This approach avoids the pitfalls of the
existing validation and allows both global & container level 'readerConfig'
configurations.

(cherry picked from commit 01adb89)

# Conflicts:
#	x-pack/filebeat/input/azureblobstorage/input_test.go
ShourieG added a commit that referenced this pull request Dec 8, 2025
… readerConfig no longer respected" (#47976)

* [filebeat][ABS] - Fixed issue for "Root level readerConfig no longer respected" (#44873)

Due to how we pre-fill certain default config values, the recently
added 'isConfigEmpty' check was not sufficient to differentiate between an
empty and default readerConfig state. This PR overhauls the comparison,
replacing the 'isConfigEmpty' with a reflect.DeepEqual against a generated
default 'readerConfig' state. This approach avoids the pitfalls of the
existing validation and allows both global & container level 'readerConfig'
configurations.

---------

Co-authored-by: Shourie Ganguly <shourie.ganguly@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants