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

Allow file read permissions in plugins #69643

Merged
merged 1 commit into from
Feb 27, 2021

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Feb 26, 2021

FilePermissions were restricted from plugins, with the intention of allowing plugins to still read their own configuration directory. While this works for files directly in the directory, it does not allow symlinks to other special files in the system, for example cloud tokens that exist on their own outside of Elasticsearch.

This commit adds back allowing FilePermission for reading files in plugins. This is a temporary measure until plugins are automatically granted read permissions for files within their own configuration directory.

closes #69464

This commit adds back allowing FilePermission for reading files in
plugins. This is a temporary measure until plugins are automatically
granted read permissions for files within their own configuration
directory.

closes elastic#69464
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Feb 26, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@rjernst rjernst requested a review from jasontedor February 26, 2021 00:37
Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

LGTM.

@rjernst rjernst merged commit 1b4c8be into elastic:master Feb 27, 2021
@rjernst rjernst deleted the plugin_permission_list19 branch February 27, 2021 20:15
rjernst added a commit that referenced this pull request Feb 27, 2021
This commit adds back allowing FilePermission for reading files in
plugins. This is a temporary measure until plugins are automatically
granted read permissions for files within their own configuration
directory.

closes #69464
rjernst added a commit that referenced this pull request Feb 27, 2021
This commit adds back allowing FilePermission for reading files in
plugins. This is a temporary measure until plugins are automatically
granted read permissions for files within their own configuration
directory.

closes #69464
rjernst added a commit that referenced this pull request Feb 27, 2021
This commit adds back allowing FilePermission for reading files in
plugins. This is a temporary measure until plugins are automatically
granted read permissions for files within their own configuration
directory.

closes #69464
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.

java.io.FilePermission is no longer allowed for custom plug-in.
4 participants