forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The org.opensearch.bootstrap.Security should support codebase for JAR…
… files with classifiers (opensearch-project#12586) Signed-off-by: Andriy Redko <[email protected]>
- Loading branch information
Showing
5 changed files
with
116 additions
and
17 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
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
25 changes: 25 additions & 0 deletions
25
server/src/test/resources/org/opensearch/bootstrap/test-codebases.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,25 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
/* | ||
* Modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
*/ | ||
|
||
//// additional test framework permissions. | ||
//// These are mock objects and test management that we allow test framework libs | ||
//// to provide on our behalf. But tests themselves cannot do this stuff! | ||
|
||
grant codeBase "${codebase.zstd-jni}" { | ||
}; | ||
|
||
grant codeBase "${codebase.kafka-server-common}" { | ||
}; | ||
|
||
grant codeBase "${codebase.kafka-server-common@test}" { | ||
}; |
13 changes: 13 additions & 0 deletions
13
server/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,13 @@ | ||
/* | ||
* 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 { | ||
// allow to test Security policy and codebases | ||
permission java.util.PropertyPermission "*", "read,write"; | ||
permission java.security.SecurityPermission "createPolicy.JavaPolicy"; | ||
}; |