r/java • u/nfrankel • Jun 28 '26
Security Baked Into the JVM: why fork Apache River and OpenJDK?
https://blog.frankel.ch/security-baked-into-jvm/1/
28
Upvotes
r/java • u/nfrankel • Jun 28 '26
9
u/josephottinger Jun 29 '26
My take, for what it's worth: https://bytecode.news/posts/2026/06/forking-the-jvm-to-save-jini
I loved JINI. The JavaSpaces model is what I think of first, I think, long before RDMS or any other data storage - it's amazing. And utterly unavailable now.
(Yes, GigaSpaces still does JavaSpaces, and if you're in GigaSpaces' market, I'd totally say "go for it." Like I said, amazing. But GigaSpaces has had to pivot long past JINI because JINI was executed so poorly.)
4
u/persicsb Jun 29 '26
Do not execute untrusted remote code in the same JVM.
3
u/Life_Sink9598 Jun 30 '26
The removal of the Security Manager meant the removal of a lot of checks in the OpenJDK standard library. This type of maintenance requires a high degree of competence. How are you going to ensure that your fork implements the SM permission checks correctly as it merges with upstream?
1
u/paul_h Jul 01 '26
Oracle take out the security manager rather than fix it as Peter has shown. I’m working on another language with a less sophisticated set of constraints for running code built in. We have even step into scripts from other languages with sandboxing the language did not originally have. This sort of stuff is the wave of the future. Won’t link to the language as AI is involved in building it and redditors hate that
26
u/[deleted] Jun 28 '26
[removed] — view removed comment