-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Remove duplicate gems when producting logstash artifacts #18340
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
base: main
Are you sure you want to change the base?
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
This pull request does not have a backport label. Could you fix it @donoghuc? 🙏
|
f6ba5bd to
6efb420
Compare
|
Updated exhaustive tests: https://buildkite.com/elastic/logstash-exhaustive-tests-pipeline/builds/2757 |
|
Moving back to draft form. Need to track down a gem loading issue. Somehow removal of psych is breaking at least the plugin manager. Need to trace where the GEM_HOME/GEM_PATH are getting set to point to the bundled gems. |
|
After further investigation it seems that removing stdlib gems is going to be more trouble than its worth. Digging in to the example failures we see a case where logstash code does something like WIth that in mind I did validate that when we do have a bundled gem that is the code that is loaded/used during logstash exectuion (this sounds obvious, but wanted to double check). I think we can safely remove the duplicate "bundled" gems still, but not move forward with the removal of the standard lib gems. Practically, I imagine that CVEs in the standard lib gems wont last too long as they are shipped with the interpreter. We still have the ability to mitigate by shipping newer versions in the lag time between being able to take up latest jruby. I am curious in this comment #17873 (comment) @jsvd were you indicating to remove just the gemspecs from the stdlib location? |
|
@donoghuc after some tests, I agree that we can't delete all of stdlib and there will have to be a compromise between just deleting gemspecs and some ruby deletions as well. Testing locally I got to this diff of rubyUtils.gradle https://gist.github.com/jsvd/4869daf70ea740f6a9f24eaba9b55a62 With it it is possible to run Uncommenting excludes of The benefit of tackling this issue at the rubyUtils.gradle vs artifacts.rake is that the code and gemspecs are excluded as soon as possible, vs only. excluding for packaging. |
|
Thanks for looking. I see the benefit. I will see if we can dynamically compute in rubyUtils.gradle the paths to exclude like i've done in the artifacts.rake. probably maintaining a static list will be too hard. |
|
@jsvd how would you feel about moving the deduplication logic to the Let me know if you think that is acceptable. |
|
I am not opposed to doing it at that stage, my rationale for doing it asap was to ensure that anything on top of the vendored jruby HAD to live off what was available and there was no confusion between what was read from vendored jruby vs vendored gems. that said, we know that much of stdlib can't be removed at all because bundler needs it. So we can aim at installDefaultGems-time then, and 100% on not having a static list, my rubyUtils.gradle gist was just a way to validate the concept, even if it had to be hardcoded, we'd have to find a way to auto generate that later. |
Bundler is used to manage a gem environment that is shipped with logstash artifacts. By default, bundler will install newer/duplicate gems than shipped with ruby distributions (in logstash's case jruby). Duplicate gems in the shipped environment can cause issues with code loading with ambiguous gem specs or gem activation issues. This commit adds a step to compute the duplicate gems managed with bundler (and therefore direct/transitive dependencies of logstash/plugins) and *removes* copies shipped with jruby. Note that there are two locations to do the deduplication at. Both the stdlib gems as well as what jruby refers to as "bundled" gems. The existing pattern for excluding files from artifacts is used to implement the deduplication.
Deduplication should happen as a depenedency of installing default gems. In the current workflow we have a top level gradle task for packaging which calls out to rake. Rake then invokes a *separate* gradle process. When we modify the jruby default, when the separate gradle process goes to check of jruby is installed, it sees a modified jruby and tries to re-install. We work around this by changing how gradle detects if jruby is required to be installed.
8f1e8d0 to
874851d
Compare
| @exclude_paths << 'vendor/**/gems/**/Gemfile.lock' | ||
| @exclude_paths << 'vendor/**/gems/**/Gemfile' | ||
|
|
||
| @exclude_paths << 'vendor/jruby/lib/ruby/gems/shared/gems/rake-*' |
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.
These are no longer required as they are handled by the new plugin:clean-duplicate-gems task.
| outputs.dir("${projectDir}/vendor/jruby") | ||
| // Don't re-extract if core JRuby is already installed. This works around | ||
| // gem deduplication when rake calls back in to gradle. | ||
| onlyIf { |
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.
In the interplay between gradle/rake it is hard (IMO impossible) to define a sane dependency graph to ensure that gems are cleaned after jruby has been installed and bundler has been run. TO get around issues where gradle was being tricked in to thinking we need a fresh jruby install when gems have been cleaned up, only install jruby when the executable is not in the expected place. This is kind of a hack as i could see a workflow where this would cause an issue with an unexpectedly old or broken jruby but I cant think of a way around it without majorly refactoring how our gradle/rake tasks are organized.
| installCustomJRuby.onlyIf { customJRubyDir != "" } | ||
|
|
||
| tasks.register("downloadAndInstallJRuby", Copy) { | ||
| dependsOn=[verifyFile, installCustomJRuby] |
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.
COREREVIEW: why is there a dep on installCustomJRuby here?
|
/run exhaustive tests |
|
run exhaustive tests |
|
I think that the failing fips unit tests are due to the container running installDefault gems but then that not being an explicit depednecy on running the unit tests. This related PR should solve that: https://github.com/elastic/logstash/pull/18330/files i'll confirm, but if so i will likely fold that in to this PR. |
This commit adds the installDefaultGems task to the unit test tasks. This ensures that the gem env tested at the unit level matches the deduplicated one at the integration/acceptance level. Takes over elastic#18330
This commit changes gemInstaller such that the centralized gem_home from Logstash::Environment is used instead of hard coding in a fragile path. The tests were the only consumer of the optional positional parameter in the `install` class method.
|
The tests are revealing some real issues. I would have thought that this commit 527b84f would fix the genInstaller tests. I assumed that using a separate |
After some deeeeeeeep diving into comparing the state of running logstash from a compiled artifact vs the unit tests i finally figured out that the use of the bundler `setup!` method in unit tests is imcompatible with a couple of tests. Specifically that method puts bundler installed gems ahead of the standard lib gems in the load path. This commit solves that by re-positioning the standarl lib back to the front of the load path.
| # under the License. | ||
|
|
||
| require_relative "environment" | ||
| LogStash::Bundler.setup!({:without => [:build]}) |
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.
@jsvd this is a good summary of what I found out today after our conversation.
More context on this particular change...
I was debugging the following faiures:
2025-11-04 16:40:59 PST | Failed examples:
| 2025-11-04 16:40:59 PST |
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/plugin_manager/gem_installer_spec.rb:48 # LogStash::PluginManager::GemInstaller install the gem in the gems dir
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/plugin_manager/gem_installer_spec.rb:41 # LogStash::PluginManager::GemInstaller install the specifications in the spec dir
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/plugin_manager/gem_installer_spec.rb:75 # LogStash::PluginManager::GemInstaller post_install_message when not present when we don't want the message doesn't display the message
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/plugin_manager/gem_installer_spec.rb:67 # LogStash::PluginManager::GemInstaller post_install_message when present when we dont want the message doesn't display the message
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/plugin_manager/gem_installer_spec.rb:61 # LogStash::PluginManager::GemInstaller post_install_message when present when we want the message display the message
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/bootstrap/bundler_spec.rb:159 # LogStash::Bundler when generating bundler arguments when updating level: patch invokes bundler with --minor
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/bootstrap/bundler_spec.rb:145 # LogStash::Bundler when generating bundler arguments when updating level: major invokes bundler with --minor
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/bootstrap/bundler_spec.rb:131 # LogStash::Bundler when generating bundler arguments when updating with a specific plugin should call `bundle update plugin-name`
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/bootstrap/bundler_spec.rb:165 # LogStash::Bundler when generating bundler arguments when updating level: unspecified invokes bundler with --minor
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/bootstrap/bundler_spec.rb:137 # LogStash::Bundler when generating bundler arguments when updating with the cleaning option should ignore the clean option
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/bootstrap/bundler_spec.rb:152 # LogStash::Bundler when generating bundler arguments when updating level: minor invokes bundler with --minor
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/bootstrap/bundler_spec.rb:174 # LogStash::Bundler when generating bundler arguments when updating with ecs_compatibility also update dependencies
| 2025-11-04 16:40:59 PST | rspec ./spec/unit/bootstrap/bundler_spec.rb:185 # LogStash::Bundler when generating bundler arguments when updating with ecs_compatibility do not include core lib
| 2025-11-04 16:40:59 PST |
Which all failed with a message similar to:
2025-11-04 16:40:59 PST |
-- | --
| 2025-11-04 16:40:59 PST | 13) LogStash::Bundler when generating bundler arguments when updating with ecs_compatibility do not include core lib
| 2025-11-04 16:40:59 PST | Failure/Error: new_specs, errors = ::Gem::SpecFetcher.fetcher.spec_for_dependency(dep)
| 2025-11-04 16:40:59 PST |
| 2025-11-04 16:40:59 PST | SyntaxError:
| 2025-11-04 16:40:59 PST | /buildkite/builds/bk-agent-prod-k8s-1762302466884143578/elastic/logstash-pull-request-pipeline/vendor/bundle/jruby/3.1.0/gems/psych-5.2.6-java/lib/psych/class_loader.rb:41: syntax error, unexpected constant
| 2025-11-04 16:40:59 PST | ...omplex, "Exception"=>Exception, "Object"=>Object, "Date"=>Da...
| 2025-11-04 16:40:59 PST | ^~~~~~~~~
| 2025-11-04 16:40:59 PST | # ./vendor/bundle/jruby/3.1.0/gems/psych-5.2.6-java/lib/psych/class_loader.rb:40:in `block in ClassLoader'
| 2025-11-04 16:40:59 PST | # ./vendor/bundle/jruby/3.1.0/gems/psych-5.2.6-java/lib/psych/class_loader.rb:37:in `<class:ClassLoader>'
| 2025-11-04 16:40:59 PST | # ./vendor/bundle/jruby/3.1.0/gems/psych-5.2.6-java/lib/psych/class_loader.rb:6:in `<module:Psych>'
| 2025-11-04 16:40:59 PST | # ./vendor/bundle/jruby/3.1.0/gems/psych-5.2.6-java/lib/psych/class_loader.rb:5:in `<main>'
| 2025-11-04 16:40:59 PST | # ./vendor/bundle/jruby/3.1.0/gems/psych-5.2.6-java/lib/psych/nodes/node.rb:2:in `<main>'
| 2025-11-04 16:40:59 PST | # ./vendor/bundle/jruby/3.1.0/gems/psych-5.2.6-java/lib/psych/nodes.rb:2:in `<main>'
| 2025-11-04 16:40:59 PST | # ./vendor/bundle/jruby/3.1.0/gems/psych-5.2.6-java/lib/psych.rb:17:in `<main>'
| 2025-11-04 16:40:59 PST | # ./lib/bootstrap/bundler.rb:265:in `fetch_plugin_dependencies'
| 2025-11-04 16:40:59 PST | # ./lib/bootstrap/bundler.rb:250:in `block in expand_logstash_mixin_dependencies'
| 2025-11-04 16:40:59 PST | # ./lib/bootstrap/bundler.rb:250:in `expand_logstash_mixin_dependencies'
| 2025-11-04 16:40:59 PST | # ./lib/bootstrap/bundler.rb:293:in `bundler_arguments'
| 2025-11-04 16:40:59 PST | # ./spec/unit/bootstrap/bundler_spec.rb:109:in `block in <main>'
| 2025-11-04 16:40:59 PST | # ./spec/unit/bootstrap/bundler_spec.rb:186:in `block in <main>'
| 2025-11-04 16:40:59 PST | # ./vendor/bundle/jruby/3.1.0/gems/webmock-3.26.1/lib/webmock/rspec.rb:39:in `block in <main>'
| 2025-11-04 16:40:59 PST | # ./spec/spec_helper.rb:84:in `block in <main>'
| 2025-11-04 16:40:59 PST | # ./logstash-core/lib/logstash/util.rb:43:in `set_thread_name'
| 2025-11-04 16:40:59 PST | # ./spec/spec_helper.rb:83:in `block in <main>'
| 2025-11-04 16:40:59 PST | # ./spec/spec_helper.rb:76:in `block in <main>'
| 2025-11-04 16:40:59 PST | # ./vendor/bundle/jruby/3.1.0/gems/logstash-devutils-2.6.3-java/lib/logstash/devutils/rspec/spec_helper.rb:47:in `block in <main>'
| 2025-11-04 16:40:59 PST | # ./lib/bootstrap/rspec.rb:36:in `<main>'
Clearly indicating an issue with they pysch stdlib gemspec removal. I was very curious why this was not an issue in artifacts prepared with the gem cleanup. After investigating our complex set of manipulations of GEM_HOME and GEM_PATH across cli entrypoints and tests I finally just started printing out LOAD_PATH. In a container, when we do something like a logstash-plugin update we get a LOAD_PATH at execution time like:
/usr/share/logstash/logstash-core/lib
/usr/share/logstash/logstash-core-plugin-api/lib
/usr/share/logstash/lib
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/clamp-1.3.3/lib
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/rubyzip-1.3.0/lib
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/stud-0.0.23/lib
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/stud-0.0.23/lib
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/ruby-progressbar-1.13.0/lib
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/cgi-0.3.7-java/lib
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/cgi-0.3.7-java/ext/java/org/jruby/ext/cgi/escape/lib
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/date-3.3.3-java/lib
/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/gem_publisher-1.5.0/lib
/usr/share/logstash/vendor/jruby/lib/ruby/3.1/site_ruby
/usr/share/logstash/vendor/jruby/lib/ruby/stdlib
For that same bit in the ruby unit tests we get a LOAD_PATH like:
/Users/cas/elastic-repos/logstash/x-pack/lib
/Users/cas/elastic-repos/logstash/lib
/Users/cas/elastic-repos/logstash/logstash-core/spec
/Users/cas/elastic-repos/logstash/spec
/Users/cas/elastic-repos/logstash/logstash-core/lib
/Users/cas/elastic-repos/logstash/logstash-core-plugin-api/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/webmock-3.26.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/timecop-0.9.10/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/snappy-0.4.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/snappy-jars-1.1.0.1.2-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/simplecov-json-0.2.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/simplecov-0.22.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/simplecov_json_formatter-0.1.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/simplecov-html-0.13.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rumbster-1.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/ruby-kafka-1.5.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rubocop-1.74.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/unicode-display_width-3.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/unicode-emoji-4.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/ruby-progressbar-1.13.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rubocop-ast-1.42.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rspec-sequencing-0.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rspec-collection_matchers-1.2.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/regexp_parser-2.11.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/random-port-0.7.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/tago-0.4.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rainbow-3.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rackup-2.0.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/webrick-1.9.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rack-test-2.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/pleaserun-0.0.33/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/pleaserun-0.0.33/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/parser-3.3.10.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/parallel-1.27.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/paquet-0.2.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-webhdfs-3.1.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-webhdfs-3.1.0-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/webhdfs-0.11.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-udp-3.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-tcp-7.0.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-stdout-3.1.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-redis-5.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-pipe-3.0.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-null-3.0.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-nagios-3.0.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-lumberjack-3.1.9/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-http-6.0.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-graphite-3.1.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-email-4.1.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/mustache-0.99.8/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/mail-2.9.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/net-smtp-0.5.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/net-pop-0.1.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/net-imap-0.5.12/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/net-protocol-0.2.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/timeout-0.4.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/mini_mime-1.1.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-elasticsearch-12.1.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-csv-3.0.11/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-file-4.3.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-snmp-4.2.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-snmp-4.2.0-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-rabbitmq-7.4.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/march_hare-4.8.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-logstash-1.0.4-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-logstash-1.0.4-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-kafka-12.0.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-kafka-12.0.1-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-jdbc-5.6.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-jdbc-5.6.1/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.98.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-aws-7.2.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-integration-aws-7.2.1-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-unix-3.1.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-udp-3.5.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-twitter-4.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/twitter-6.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/simple_oauth-0.3.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/naught-1.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/multipart-post-2.4.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/memoizable-0.4.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-syslog-3.7.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-stdin-3.4.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-redis-3.7.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/redis-4.8.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-pipe-3.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-jms-3.3.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-http_poller-6.0.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-heartbeat-3.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-graphite-3.0.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-tcp-7.0.3-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-tcp-7.0.3-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-generator-3.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-gelf-3.3.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-ganglia-3.1.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-file-4.4.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-exec-3.6.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-elasticsearch-5.2.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-elastic_serverless_forwarder-2.0.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-elastic_serverless_forwarder-2.0.0-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-http-4.1.3-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-http-4.1.3-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-dead_letter_queue-2.0.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-dead_letter_queue-2.0.1/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-couchdb_changes-3.1.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-beats-7.0.4-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-beats-7.0.4-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-plugin_factory_support-1.0.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-azure_event_hubs-1.5.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-azure_event_hubs-1.5.3/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-xml-4.3.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/xml-simple-1.1.9/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/nokogiri-1.18.10-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/nokogiri-1.18.10-java/lib/nokogiri/jruby
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-uuid-3.0.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-useragent-3.3.5-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-useragent-3.3.5-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-urldecode-3.0.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-truncate-1.0.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-translate-3.5.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/psych-5.2.6-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-scheduler-1.0.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rufus-scheduler-3.0.9/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-deprecation_logger_support-1.0.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-throttle-4.0.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-syslog_pri-3.2.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-split-3.1.8/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-sleep-3.0.7/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-ruby-3.1.8/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-prune-3.0.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-mutate-3.5.9/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-metrics-4.0.7/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/metriks-0.9.9.8/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-memcached-1.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-kv-4.7.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-json-3.2.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-http-2.0.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-http_client-7.5.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-normalize_config_support-1.0.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-grok-4.4.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-geoip-7.3.2-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-geoip-7.3.2-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-fingerprint-3.4.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-elasticsearch-4.3.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-ca_trusted_fingerprint_support-1.0.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-ca_trusted_fingerprint_support-1.0.1-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-elastic_integration-9.2.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-elastic_integration-9.2.0-java/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-drop-3.0.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-dns-3.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/lru_redux-1.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-dissect-1.2.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-dissect-1.2.5/vendor/jars
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-de_dot-1.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-date-3.1.15/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-date-3.1.15/vendor/jar-dependencies
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-csv-3.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-clone-4.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-cidr-3.2.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-anonymize-3.0.7/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/murmurhash3-0.1.6-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/murmurhash3-0.1.6-java/ext
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-filter-aggregate-2.10.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-devutils-2.6.3-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-devutils-2.6.3-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rspec-wait-1.0.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-rubydebug-3.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-plain-3.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-netflow-4.3.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-multiline-3.1.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-patterns-core-4.3.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-msgpack-3.1.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-json_lines-3.2.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-json-3.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-graphite-3.0.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-fluent-3.4.3-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/msgpack-1.8.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-es_bulk-3.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-edn_lines-3.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-line-3.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-edn-3.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-dots-3.0.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-collectd-3.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-cef-6.2.8-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-codec-avro-3.4.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-validator_support-1.1.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-event_support-1.0.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-ecs_compatibility_support-1.3.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/tzinfo-data-1.2025.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/tzinfo-2.0.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/treetop-1.6.15/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/polyglot-0.3.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/thwait-0.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/thread_safe-0.3.6-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/stud-0.0.23/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/stud-0.0.23/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/sinatra-4.2.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/tilt-2.6.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rack-session-2.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rack-protection-4.2.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/mustermann-3.0.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/ruby2_keywords-0.0.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rubyzip-1.3.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rack-3.2.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/puma-6.6.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/nio4r-2.7.5-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/pry-0.15.2-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/spoon-0.0.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/method_source-1.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/minitar-1.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/manticore-0.9.2-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/openssl_pkcs8_pure-0.0.0.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/lint_roller-1.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/language_server-protocol-3.17.0.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/kramdown-2.5.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/json-schema-2.8.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/jruby-stdin-channel-0.2.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/jruby-openssl-0.15.5-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/jruby-jms-1.3.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/semantic_logger-3.4.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/jrjackson-0.4.20-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/jls-lumberjack-0.0.26/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/jls-grok-0.11.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/jls-grok-0.11.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/jar-dependencies-0.5.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/insist-1.0.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/insist-1.0.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/i18n-1.14.7/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/http-3.3.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/http-form_data-2.3.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/http-cookie-1.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/hitimes-1.3.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/hashdiff-1.2.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/gserver-0.0.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/gmetric-0.1.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/gene_pool-1.5.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/gems-1.3.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/gem_publisher-1.5.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/gelfd2-0.4.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/gelf-3.0.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/ftw-0.0.49/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/ftw-0.0.49/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/http_parser.rb-0.6.0-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/flores-0.0.8/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/flores-0.0.8/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/fivemat-1.3.7/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/fileutils-1.8.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/filesize-0.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/ffi-1.17.2-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/equalizer-0.0.11/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/elasticsearch-8.19.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/elasticsearch-api-8.19.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/elastic-transport-8.4.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/faraday-2.14.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/faraday-2.14.0/spec/external_adapters
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/json-2.15.2-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/faraday-net_http-3.4.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/net-http-0.7.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/uri-1.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/edn-1.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/e2mmap-0.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/down-5.2.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/dotenv-2.8.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/domain_name-0.6.20240107/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/docile-1.4.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/digest-crc-0.5.1/ext
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/digest-crc-0.5.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/date-3.3.3-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/dalli-3.2.8/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/crack-1.0.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/coderay-1.1.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/clamp-1.3.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/ci_reporter_rspec-1.0.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rspec-3.13.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rspec-mocks-3.13.7/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rspec-expectations-3.13.5/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/diff-lcs-1.6.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rspec-core-3.13.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rspec-support-3.13.6/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/ci_reporter-2.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rexml-3.4.4/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/cgi-0.3.7-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/cgi-0.3.7-java/ext/java/org/jruby/ext/cgi/escape/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/cabin-0.9.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/cabin-0.9.1/lib
/Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/gems/shared/gems/bundler-2.6.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/builder-3.3.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/buftok-0.2.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/bindata-2.5.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/benchmark-ips-2.14.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/belzebuth-0.2.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/childprocess-5.1.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/backports-3.25.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/back_pressure-1.0.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-sqs-1.106.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-sns-1.108.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-s3-1.203.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-resourcegroups-1.90.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-kms-1.116.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-cloudwatch-1.124.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-cloudfront-1.133.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sdk-core-3.236.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/logger-1.7.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/jmespath-1.6.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/bigdecimal-3.3.1-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/base64-0.3.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-sigv4-1.12.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-partitions-1.1180.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/aws-eventstream-1.4.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/avro-1.10.2/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/multi_json-1.17.0/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/avl_tree-1.2.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/atomic-1.1.101-java/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/ast-2.4.3/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/amazing_print-1.8.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/addressable-2.8.7/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/public_suffix-5.1.1/lib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/rake-13.3.1/lib
/Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/3.1/site_ruby
/Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib
/Users/cas/elastic-repos/logstash/vendor/bundle/jruby/3.1.0/gems/ci_reporter_rspec-1.0.0/lib/ci/reporter/rake/../../..
As you can see the bundler setup! adds the full bundled gem env to the load path BEFORE stdlib.
Open questions/thoughts
- I'm not convinced the bundler.setup! state is appropriate for all unit tests. That said, i'm not sure if its worth the effort to go through and dial it in for every single part of the unit tests. The solution i've proposed here seems to get the tests passing, but i'm nervous it may paper over issues or be an indicator that this is actually a problem we should be worried about.
- I'de like to do some more manual testing around what the state of
LOAD_PATHis at various times in logstash execution (i've been focused mainly on the pluginmanager because that is where the test failures are).
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.
Some additional testing affirms my initial observations. Essentially this boils down to the fact that logstash-plugin does not actually call LogStash::Boostrap#setup! in practice. So by invoking that directly before all unit tests we get a state that is inconsistent with the gem env in logstash run from artifacts. I'm tempted to try to localize this LOAD_PATH manipulation to just the tests where there are issues as there were only two test files where this was an issue and the majority of tests cover cases where the setup! method would have been invoked.
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.
Note that i did do some testing where for example pipeline code would use yaml/psych:
echo -e "foo: 1\nbar: 1" | logstash -e "input { stdin { } } filter { ruby { code => \"require 'yaml'; event.set('parsed', YAML.load(event.get('message')))\" } } output { stdout { codec => rubydebug } }"
This did not result in any psych loading issues like the ones we saw in the unit tests. Similarly I printed the load path from a ruby filter context and it matched that of a result of calling the setup! method.
💚 Build Succeeded
History
|
Release notes
Removal of duplicated gems in logstash artifacts.
What does this PR do?
Bundler is used to manage a gem environment that is shipped with logstash
artifacts. By default, bundler will install newer/duplicate gems than shipped
with ruby distributions (in logstash's case jruby). Duplicate gems in the
shipped environment can cause issues with code loading with ambiguous gem specs
or gem activation issues. This commit adds a step to compute the duplicate gems
managed with bundler (and therefore direct/transitive dependencies of
logstash/plugins) and removes copies shipped with jruby. Note that there are
two locations to do the deduplication at. Both the stdlib gems as well as what
jruby refers to as "bundled" gems. The existing pattern for excluding files from
artifacts is used to implement the deduplication. Note that for the standard lib
gems only remove duplicate gemspec files as removal of the code itself triggers
noisy warning from ruby and code loading problems.
Why is it important/What is the impact to the user?
In some cases security scanners would pick up vendored/standard lib gems which typically trail in version shipped with the jruby distrubuted with logstash artifacts. While the newer code was loaded for logstash (and therefore not a practical threat) the scanner would still produce noise and require justifications. By removing old/duplicated gems we remove the false positives on the scanners.
How to test this PR locally
Build a container artifact and look for duplicated gems:
Related issues