Granting SecurityPermissions to extension


I try to develop an x-pack extension which, as it seems, requires SecurityPermission to insertProvider.BC.
So i put this in my x-pack-extension-security.policy:

grant {
  permission "insertProvider.BC";

This is being picked up by the x-pack/extension install script, showing that it needs to grant these permissions.

However, when I start elasticsearch i'm still getting the following: access denied ("" "insertProvider.BC")

Am I doing something wrong or has this been disabled for security reasons?

You need to wrap your code requiring the permission inside a doPrivileged block. Have you read the plugin author help page?

Thought I did that, or the check for permission did already fail.
Nevermind it's working now.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.