Grant `getProxySelector` permission to rest client (elastic/x-pack-elasticsearch#2059)

Monitoring uses the low level rest client, which was recently updated to need an additional permission

Relates: elasticsearch#25757
relates elastic/x-pack-elasticsearch#2058

Original commit: elastic/x-pack-elasticsearch@eb9578792c
This commit is contained in:
Tim Vernum 2017-07-21 19:06:40 +10:00 committed by GitHub
parent 495fc21c37
commit 1752104140
1 changed files with 10 additions and 0 deletions

View File

@ -31,3 +31,13 @@ grant {
// needed for Windows named pipes in machine learning
permission java.io.FilePermission "\\\\.\\pipe\\*", "read,write";
};
grant codeBase "${codebase.elasticsearch-rest-client-6.0.0-beta1-SNAPSHOT.jar}" {
// rest client uses system properties which gets the default proxy
permission java.net.NetPermission "getProxySelector";
};
grant codeBase "${codebase.httpasyncclient-4.1.2.jar}" {
// rest client uses system properties which gets the default proxy
permission java.net.NetPermission "getProxySelector";
};