-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Plugin installer want to check everything in the plugin folder #74879
Comments
@fbacchella could it be as simple as this?
Or is it something more elaborate? |
Or it could be checked using https://docs.oracle.com/javase/8/docs/api/java/nio/file/Files.html#isHidden-java.nio.file.Path-. I don't know if smarter filtering is needed. For example, can a plugin be stored in a file ? If not, only directories should be returned. |
Pinging @elastic/es-core-infra (Team:Core/Infra) |
@fbacchella I suggest you store your additional plugin metadata in a different path. The plugins directory is meant to be completely controlled by Elasticsearch. It is not meant as a general directory for users to store anything in. If by chance it is metadata about which plugins should be installed, consider storing it in the configuration directory, but also note that we are planning to add such a feature. As this is working as designed, and we do not plan to make any changes to that design, I hope you don't mind that I close this issue. |
All the content of
/usr/share/elasticsearch/plugins
is checked, even hidden files.Providing a way to filter out some content here could be helpful.
For example, I would like to store in a special file some custom informations about installed plugin. It can be hidden, or with any names. But that's not actually possible.
The problem is at
elasticsearch/server/src/main/java/org/elasticsearch/plugins/PluginsService.java
Line 276 in ab23cc0
A few check to avoid adding everything could be helpfull.
The text was updated successfully, but these errors were encountered: