Skip to content

Commit ad0933e

Browse files
committed
Import secure programming guide for DRb from ruby/ruby
1 parent 45dccba commit ad0933e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ timeserver = DRbObject.new_with_uri(SERVER_URI)
8383
puts timeserver.get_current_time
8484
```
8585

86+
#### Security
87+
88+
As DRb allows remote clients to invoke arbitrary methods, it is not suitable to
89+
expose to untrusted clients.
90+
91+
When using DRb, try to avoid exposing it over the network if possible. If this
92+
isn't possible and you need to expose DRb to the world, you *must* configure an
93+
appropriate security policy with +DRb::ACL+.
94+
8695
## Development
8796

8897
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -92,4 +101,3 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
92101
## Contributing
93102

94103
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/drb.
95-

0 commit comments

Comments
 (0)