- Notifications
You must be signed in to change notification settings - Fork 25.6k
[Entitlements] Add URLConnection instrumentation for jar protocol #123861
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
Merged
ldematte merged 25 commits into elastic:main from ldematte:entitlements/missing-url-connection-5 Mar 9, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits Select commit Hold shift + click to select a range
304e1ab Add URLConnection instrumentation
ldematte 0ed405d URLConnectionNetworkActions tests
ldematte 7376a85 Merge remote-tracking branch 'upstream/main' into entitlements/missin…
ldematte 9e0209b Merge remote-tracking branch 'upstream/main' into entitlements/missin…
ldematte 64a6ef6 Missing GCS policy
ldematte 4cd11c6 Missing policy for discovery-gce
ldematte e0c50df Merge remote-tracking branch 'upstream/main' into entitlements/missin…
ldematte 6a3e259 split tests
ldematte a4c2204 instrumentation for URL methods + tests
ldematte 2b690f3 missing azure policy
ldematte 68e996e missing ml-package-loader policy
ldematte 9ad3a0c instrument FileURLConnection classes + tests
ldematte 2d21831 Merge remote-tracking branch 'upstream/main' into entitlements/missin…
ldematte 6579182 Merge remote-tracking branch 'upstream/main' into entitlements/missin…
ldematte a407e99 instrument JarURLConnection
ldematte 07aa3c9 Merge remote-tracking branch 'upstream/main' into entitlements/missin…
ldematte 346f914 Merge remote-tracking branch 'upstream/main' into entitlements/missin…
ldematte 81b2169 allow read access for each plugin to its own directory
ldematte c6966fd small fix to extract sub URL from Jar URL
ldematte 47fe9bb defaultFileAccess must now be plugin-specific
ldematte 4dad7ce Merge remote-tracking branch 'upstream/main' into entitlements/missin…
ldematte ff547c3 IT tests
ldematte 589e710 update jar tests to use a real jar and never throw
ldematte 6838ba9 Merge branch 'main' into entitlements/missing-url-connection-5
ldematte 11b9cb7 Merge branch 'main' into entitlements/missing-url-connection-5
ldematte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| | @@ -154,8 +154,10 @@ private static PolicyManager createPolicyManager() { | |
| serverModuleFileDatas, | ||
| // Base ES directories | ||
| FileData.ofPath(bootstrapArgs.pluginsDir(), READ), | ||
| FileData.ofPath(bootstrapArgs.modulesDir(), READ), | ||
| FileData.ofPath(bootstrapArgs.configDir(), READ), | ||
| FileData.ofPath(bootstrapArgs.logsDir(), READ_WRITE), | ||
| FileData.ofPath(bootstrapArgs.libDir(), READ), | ||
| Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this from native lib finding the platform dir? Contributor Author There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIRC this was also started from PluginService; I guess you are correct and it is from plugins with native libraries, but I can double check. | ||
| FileData.ofRelativePath(Path.of(""), DATA, READ_WRITE), | ||
| FileData.ofRelativePath(Path.of(""), SHARED_REPO, READ_WRITE), | ||
| | ||
| | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.