No commit activity in last 3 years
No release in over 3 years
A stripped version of the Resque web interface that's safe to use by not so trustworthy personnel. You get all the same information as the regular interface, but can't delete or retry anything.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.2.0
~> 1.8.4
~> 3.12

Runtime

>= 0
 Project Readme

resque-web_no_act

A child-proofed version of the Resque web interface that's safe to use by less trustworthy personnel. You get all the same information as the regular interface, but can't delete or retry anything. The interface looks the same, even all the buttons are there, but they just redirect to an Access Denied page.

Caution: Resque plugins that aren't covered here will still be able to manipulate queues. Covered:

  • Resque::Server
  • Resque::Retry
  • Resque::Scheduler
  • Resque::History
  • Resque::Cleaner

Install

Only mounting via routes is available, not standalone executable.

routes.rb

  mount Resque::ServerNoAct.new, :at => "/monitor"

Authentication

I found authentication a bit tricky, since subclassing will use the parents authentication as well. Here is what I did to have different passwords. Note: This only works if both have different namespaces, so /resque and /monitor works for me. /resque and /resque_no_act does not.

class Resque::ServerOriginal < Resque::Server
end

Resque::ServerOriginal.use Rack::Auth::Basic, "Resque Interface" do |username, password|
  password == 'big_secret'
end

Resque::ServerNoAct.use Rack::Auth::Basic, "Child Proof Resque Interface" do |username, password|
  password == 'secret'
end

Contributing to resque-web_no_act

  • Let me know if you need any additional plugins covered, or:
  • fork and send a request

Copyright

Copyright (c) 2012 Rainer Kuhn. See LICENSE.txt for further details.