-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rishabh Maurya <[email protected]>
- Loading branch information
1 parent
81c1e6f
commit f0ad1fb
Showing
3 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
plugins/arrow-flight-rpc/src/test/resources/org/opensearch/bootstrap/test.policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
grant codeBase "${codebase.grpc-netty-shaded}" { | ||
permission java.net.SocketPermission "*", "accept,connect,listen,resolve"; | ||
permission java.lang.RuntimePermission "*", "setContextClassLoader"; | ||
}; | ||
|
||
grant codeBase "${codebase.grpc-core}" { | ||
permission java.net.SocketPermission "*", "accept,connect,listen,resolve"; | ||
permission java.lang.RuntimePermission "*", "setContextClassLoader"; | ||
}; | ||
|
||
grant { | ||
// arrow flight service permissions | ||
permission java.util.PropertyPermission "arrow.allocation.manager.type", "write"; | ||
permission java.util.PropertyPermission "arrow.enable_null_check_for_get", "write"; | ||
permission java.util.PropertyPermission "arrow.enable_unsafe_memory_access", "write"; | ||
permission java.util.PropertyPermission "arrow.memory.debug.allocator", "write"; | ||
|
||
permission java.util.PropertyPermission "io.netty.tryReflectionSetAccessible", "write"; | ||
permission java.util.PropertyPermission "io.netty.allocator.numDirectArenas", "write"; | ||
permission java.util.PropertyPermission "io.netty.noUnsafe", "write"; | ||
permission java.util.PropertyPermission "io.netty.tryUnsafe", "write"; | ||
|
||
// Needed for netty based arrow flight server for netty configs related to buffer allocator | ||
permission java.security.AllPermission "modifyThreadGroup"; | ||
permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; | ||
permission java.util.PropertyPermission "arrow.allocation.manager.type", "write"; | ||
}; |