[Clone] [Security Manager Replacement] Native Java Agent#17517
[Clone] [Security Manager Replacement] Native Java Agent#17517kumargu wants to merge 3 commits intoopensearch-project:mainfrom
Conversation
|
❌ Gradle check result for 1b6692e: 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 2fcdd44: 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? |
2fcdd44 to
21e708c
Compare
|
❌ Gradle check result for 21e708c: 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? |
21e708c to
e8aab30
Compare
|
❌ Gradle check result for e8aab30: 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? |
e8aab30 to
dbbef0e
Compare
|
❌ Gradle check result for dbbef0e: 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? |
dbbef0e to
1923e2d
Compare
|
❌ Gradle check result for 1923e2d: 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? |
1923e2d to
5cb1c07
Compare
|
❌ Gradle check result for 5cb1c07: 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? |
5cb1c07 to
51328a0
Compare
|
❌ Gradle check result for 51328a0: 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? |
51328a0 to
447c4a8
Compare
|
❌ Gradle check result for 447c4a8: 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? |
447c4a8 to
88f3d6f
Compare
|
❌ Gradle check result for 88f3d6f: 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? |
12d3cc3 to
ae3e3c2
Compare
|
❌ Gradle check result for ae3e3c2: 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? |
ae3e3c2 to
a5c15b4
Compare
|
❌ Gradle check result for a5c15b4: 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? |
a5c15b4 to
5a51029
Compare
|
❌ Gradle check result for 5a51029: 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? |
5a51029 to
bfe165f
Compare
|
❌ Gradle check result for bfe165f: 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? |
@peterzhuamazon would you know if I can run this check locally and fix it faster? thanks! |
bfe165f to
1bc341c
Compare
d5e1c00 to
1483b8b
Compare
|
❕ Gradle check result for 1483b8b: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
1483b8b to
e36c1e5
Compare
|
Commit sha: e36c1e5, Author: Gulshan, Committer: Gulshan; Expected "Gulshan kumargu@amazon.com", but got "Gulshan Kumar kumargu@amazon.com". |
|
❌ Gradle check result for e36c1e5: 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? |
| - [Star Tree] [Search] Resolving keyword & numeric bucket aggregation with metric aggregation using star-tree ([#17165](https://github.com/opensearch-project/OpenSearch/pull/17165)) | ||
| - Added error handling support for the pull-based ingestion ([#17427](https://github.com/opensearch-project/OpenSearch/pull/17427)) | ||
|
|
||
| - A Java Agent for intercepting socket operation and enforcing a security policy to it. |
There was a problem hiding this comment.
| - A Java Agent for intercepting socket operation and enforcing a security policy to it. | |
| - A Java Agent for intercepting socket operation and enforcing a security policy to it ([#17517](https://github.com/opensearch-project/OpenSearch/pull/17517)) |
|
|
||
| final SocketPermission permission = new SocketPermission(host, "connect,resolve"); | ||
| final SocketPermission connectResolve = new SocketPermission(host, "connect,resolve"); | ||
| final SocketPermission listenResolve = new SocketPermission(host, "listen,resolve"); |
There was a problem hiding this comment.
@kumargu I am not sure what exactly you are trying to fix here: we are intercepting SocketChannel:connect only which connects to remote address. The listen is not applicable here, we are not be listening on a socket (this is ServerSocketChannel responsibility). Could you please clarify this change?
There was a problem hiding this comment.
I was trying to fix this test failure. Looking at the trace, I think it fails with while attempting "listen & resolve" from localhost:0
There was a problem hiding this comment.
I had a similar assumption that we are only dealing with SocketChannel:connect but all my efforts to just play around with the policy file didn't work-out and this particular does seem to work.
|
{"run-benchmark-test": "id_3"} |
Signed-off-by: Gulshan <71965388+kumargu@users.noreply.github.com>
|
❌ Gradle check result for 96daf8f: 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? |
|
The Jenkins job url is https://build.ci.opensearch.org/job/benchmark-pull-request/2615/ . Final results will be published once the job is completed. |
|
The benchmark job https://build.ci.opensearch.org/job/benchmark-pull-request/2615/ failed. |
Clone of original implementation of Java agent
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.