Skip to content

Commit

Permalink
Updating jep 290 filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craigacp authored and jhalexand committed May 26, 2021
1 parent a899b90 commit 1fad812
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/Security.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ algebra library exposes mutable state to reduce copying).
Tribuo models are stored as Java serialized objects. Due to the inherent issues
with Java serialization, these object files should only be loaded and saved to
trusted locations where third parties do not have access. We have provided a
[JEP 290](https://openjdk.java.net/jeps/290) [allowlist](jep-290-allowlist.txt)
[JEP 290](https://openjdk.java.net/jeps/290) [filter](jep-290-filter.txt)
which will allow the deserialization of only the classes found in the Tribuo
library. This allowlist should be enabled on the code paths which deserialize
library. This filter should be enabled on the code paths which deserialize
models or datasets. As Tribuo supports Java 8+, and JEP 290 is an addition to
the Java 8 API from 8u121, the best way to use the allowlist for the main
the Java 8 API from 8u121, the best way to use the filter for the main
programs provided with Tribuo is by setting it as a process-wide flag.
Additionally, when running with a security manager, Tribuo will need access to
the relevant filesystem locations to load or save model files. See the section
Expand Down
1 change: 0 additions & 1 deletion docs/jep-290-allowlist.txt

This file was deleted.

1 change: 1 addition & 0 deletions docs/jep-290-filter.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.tribuo.**;libsvm.svm_model;libsvm.svm_parameter;libsvm.svm_node;de.bwaldvogel.liblinear.Model;de.bwaldvogel.liblinear.SolverType;java.util.**;java.lang.*;!*;

0 comments on commit 1fad812

Please sign in to comment.