Safety
Why a dRuby port must never face an untrusted network, and how to restrict who can connect.
3 safety pages
- Why dRuby must not face untrusted networks
Anyone who can connect to a dRuby port can make the server unmarshal data and call methods, which can lead to running arbitrary code. What that means in practice.
- Access control lists with drb/acl
How to restrict which IP addresses can connect to a dRuby server using ACL.new and DRb.install_acl, with a working example and its limits.
- Binding to localhost, UNIX sockets and SSL
Three ways to narrow who can reach a dRuby server: bind to the loopback interface, use a UNIX domain socket with file permissions, or use drbssl with certificates.