Last updated January 18, 2011 04:54, by qmxme
Feedicon  

» JRuby Project Wiki Home Page       » Design: Internals

Ruby/JRuby Security

A new implementation to replace Safe/Taint, snce Safe and Taint do not work and provide a false sense of security. There are two options: Using a Sandbox type environment or a permission-based protocol. The Sandbox has been around since Java 1.0 and was found to be good only at a macro level. For finer grained control, the Permission class and AccessControl class were introduced in Java 1.2.

Having a Permission based security implementation would be ideal.


Requirements

  • It must be something that can be implemented in MRI/KRI, possibly using the same API/mechanisms used right now.
  • It must not introduce overhead back into the system like taint/safe does now.
  • Security should be based on addition of rights instead of the removal of them.
  • Fine-grained control should be allowed for distributed programming. For example, DRb


Possible Solutions

  • Keep the current Implementation of Safe and Taint.
  • A sandbox based on the same principles as the Java Sandbox.
    Here is a sandbox base for MRI: http://code.whytheluckystiff.net/sandbox.
  • Use a Permission based architecture such as Java 1.2 and later.
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close