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@eb9578792cc0841ffd0601b3240b506bac92b39e
@@ -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";
+};
