Skip to content

Conversation

@reta
Copy link
Contributor

@reta reta commented Apr 8, 2025

Description

Add the support of trusted file systems to AgentPolicy. The security checks where part of the FileSystem implementations (JDK) but we do use mock file systems (like Jimfs) in tests. Since we made checks global now, adding the support of trusted file systems (similarly to trusted hosts) to the AgentPolicy

Related Issues

N/A

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 8, 2025

❌ Gradle check result for 8bdcb17: 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?

Signed-off-by: Andriy Redko <drreta@gmail.com>
@reta reta force-pushed the add.trusted.fs branch from 510d05a to 818a492 Compare April 8, 2025 23:08
@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2025

❕ Gradle check result for 818a492: 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.

@codecov
Copy link

codecov bot commented Apr 9, 2025

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 72.42%. Comparing base (3823169) to head (818a492).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...java/org/opensearch/javaagent/FileInterceptor.java 0.00% 11 Missing ⚠️
...rg/opensearch/javaagent/bootstrap/AgentPolicy.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17852      +/-   ##
============================================
- Coverage     72.47%   72.42%   -0.05%     
+ Complexity    66534    66476      -58     
============================================
  Files          5408     5408              
  Lines        308217   308225       +8     
  Branches      44749    44751       +2     
============================================
- Hits         223369   223228     -141     
- Misses        66591    66741     +150     
+ Partials      18257    18256       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@reta reta merged commit 027551e into opensearch-project:main Apr 9, 2025
30 of 32 checks passed
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
…oject#17852)

Signed-off-by: Andriy Redko <drreta@gmail.com>
Signed-off-by: Harsh Kothari <techarsh@amazon.com>
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
…oject#17852)

Signed-off-by: Andriy Redko <drreta@gmail.com>
Signed-off-by: Harsh Kothari <techarsh@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants