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

Remove hidden file leniency from plugin service #23982

Merged
merged 3 commits into from Apr 8, 2017

Conversation

jasontedor
Copy link
Member

This commit removes some leniency from the plugin service which skips hidden files in the plugins directory. We really want to ensure the integrity of the plugin folder, so hasta la vista leniency.

Relates #12465

This commit removes some leniency from the plugin service which skips
hidden files in the plugins directory. We really want to ensure the
integrity of the plugin folder, so hasta la vista leniency.
@rjernst
Copy link
Member

rjernst commented Apr 8, 2017

LGTM

* master:
  Discovery EC2: Remove region setting (elastic#23991)
  AWS Plugins: Remove signer type setting (elastic#23984)
  Settings: Disallow secure setting to exist in normal settings (elastic#23976)
  Add registration of new discovery settings
  Settings: Migrate ec2 discovery sensitive settings to elasticsearch keystore (elastic#23961)
  Fix throttled reindex_from_remote (elastic#23953)
  Add comment why we check for null fetch results during merge
This commit adds a test that hidden files are not skipped in the plugins
folder.
@jasontedor jasontedor merged commit 9056e0c into elastic:master Apr 8, 2017
@jasontedor jasontedor deleted the skip-skipping-hidden-files branch April 8, 2017 22:22
@jasontedor
Copy link
Member Author

Thanks @rjernst.

jasontedor added a commit that referenced this pull request Apr 13, 2017
This commit removes one more instance of leniency from the plugin
service which skips hidden files in the plugins directory.

Relates #23982
@jasontedor
Copy link
Member Author

jasontedor commented Apr 13, 2017

I think it's important to point out that a reason that this leniency is so dangerous is because when we install a plugin we explode it into a hidden temporary directory in the plugins folder. If something blows up during plugin installation (which we try to clean up gracefully), this hidden folder will remain. Leniency allows this to go undetected, and that is bad for the user. This leniency is a bug.

jasontedor added a commit that referenced this pull request Apr 13, 2017
This commit removes some leniency from the plugin service which skips
hidden files in the plugins directory. We really want to ensure the
integrity of the plugin folder, so hasta la vista leniency.

Relates #23982
jasontedor added a commit that referenced this pull request Apr 13, 2017
This commit removes one more instance of leniency from the plugin
service which skips hidden files in the plugins directory.

Relates #23982
@Antman261
Copy link

But this doesn't help users understand what to do - this has occurred for me after initial install. Instead of a solution I get a stack trace and some google treasure hunting until I stumble on this issue. Not a great first impression of ElasticSearch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants