-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Manager Replacement] Add support of Java policies #17663
Conversation
❌ Gradle check result for dc87ede: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
I think its fine to not have unit tests for the (large) ported files, our integration test would cover parts of it. Also. I think these files would be barely changed. |
libs/agent-sm/bootstrap/src/main/java/org/opensearch/javaagent/bootstrap/AgentPolicy.java
Show resolved
Hide resolved
overall LGTM. |
Agree here for the sake of this PR. The logic in the files will be covered by ITs that read the policy files even if the individual units do not have tests. It would be a good idea to add tests, but I would be comfortable with that done in a separate future PR. |
libs/agent-sm/agent-policy/src/main/java/org/opensearch/secure_sm/policy/package-info.java
Show resolved
Hide resolved
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
❌ Gradle check result for cdf3a2e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for cdf3a2e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for cdf3a2e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for cdf3a2e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for cdf3a2e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
@cwperks mind please re-approving, conflicts :-(, thank you |
approved |
This reverts commit 17289b7.
This reverts commit 17289b7. Signed-off-by: Andrew Ross <andrross@amazon.com>
This reverts commit 17289b7. Signed-off-by: Andrew Ross <andrross@amazon.com>
* Revert "Add simple PolicyParser unit test (#17690)" This reverts commit 3fb09c7. Signed-off-by: Andrew Ross <andrross@amazon.com> * Revert "Add support of Java policies (#17663)" This reverts commit 17289b7. Signed-off-by: Andrew Ross <andrross@amazon.com> --------- Signed-off-by: Andrew Ross <andrross@amazon.com>
Description
As of JDK-24, the use of Java policies has been restricted. However, in order for OpenSearch to continue working post JDK-24, we should provide the support of Java policies.
Related Issues
Closes #17659
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.