Skip to content

[9.0] [ML] Restrict file system access for pytorch models (#2851)#2852

Merged
valeriy42 merged 1 commit intoelastic:9.0from
valeriy42:backport/9.0/pr-2851
May 2, 2025
Merged

[9.0] [ML] Restrict file system access for pytorch models (#2851)#2852
valeriy42 merged 1 commit intoelastic:9.0from
valeriy42:backport/9.0/pr-2851

Conversation

@valeriy42
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

This PR ensures that the PyTorch models are not allowed to access the file system. It accomplishes the goal by inspecting the model's operations and prohibiting the loading of models with operations that read or write files.

(cherry picked from commit fff4062)
@elastic-sonarqube
Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
308 New issues
20.8% Duplication on New Code (required ≤ 3%)
22 New Critical Issues (required ≤ 0)
183 New Major Issues (required ≤ 0)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

@valeriy42 valeriy42 merged commit c38939f into elastic:9.0 May 2, 2025
14 of 15 checks passed
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.

1 participant