safer_rails_console icon indicating copy to clipboard operation
safer_rails_console copied to clipboard

Make rails console less dangerous!

Results 12 safer_rails_console issues
Sort by recently updated
recently updated
newest added

This adds Redis sandboxing to safer_rails_console. It allows for reading, but any attempt to call a write method raises an error

Heya cool project! Quick question - I see from the README: > allowing read-only external connections (disables job queueing, non-GET requests, etc.) However, I'm not seeing anything that would prevent...

I just got this error while using safer_rails_console today in development: ``` NameError: uninitialized constant SaferRailsConsole::Patches::Sandbox::AutoRollback::RED from /home/cbliard/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/safer_rails_console-0.3.0/lib/safer_rails_console/patches/sandbox/auto_rollback.rb:15:in `handle_and_reraise_exception' ``` This PR should fix the error. Tests added: ``` ::SaferRailsConsole::Patches::Sandbox::AutoRollback...

Hello! When starting a console in read-only mode, a basic query (like a `SELECT`) is left running, even after the command has completed in the console itself. It appears to...

When using with Ruby 2.7.1, the following deprecation notice is displayed: ``` /bundle/ruby/2.7.0/gems/safer_rails_console-0.5.0/lib/safer_rails_console/railtie.rb:13: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the...

I'm using the most recent version (0.3.0) of safer_rails_console, and Iterm2. When I use the terminal normally, it wraps text to the next line when I get to the edge...

Per #21 , now that read-only connections are preferred (to stop locks from console usage #18 ), this should be supported for MySQL and sqlite3. Database type handling needs to...

enhancement

If the transaction is broken by any means that are not related to #14 , kick the user out of console.

enhancement

With a `toggle_sandbox!` global command

enhancement