Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a permission config to restrict access ? #7

Open
yongdi opened this issue Apr 26, 2017 · 3 comments
Open

is there a permission config to restrict access ? #7

yongdi opened this issue Apr 26, 2017 · 3 comments

Comments

@yongdi
Copy link

yongdi commented Apr 26, 2017

I don't see any config that user can modify. If I disclose it to the internet, how to ensure the safety?

@jeremyjpj0916
Copy link

We are looking to add a very simple basic auth wrapper to this app for popup so will submit a PR if we get it working easy off a config file or something

@jeremyjpj0916
Copy link

jeremyjpj0916 commented May 10, 2018

Well actually I don't have time to do it nicely, but if you build the project locally off gemspec add this to the code to do it in app.rb:

class App < Sinatra::Base
  configure do
    set :root, File.expand_path('../', __FILE__) + '/app'

    enable  :static
    disable :views
    disable :method_override
    disable :protection
  end
  
  use Rack::Auth::Basic, "Protected Area" do |username, password|
    username == 'username' && password == 'password'
end

Set username and password to the secret basic auth login you would like

@niccoxx
Copy link

niccoxx commented Mar 3, 2020

Hi,
I'll try to add this basic auth to cassandra-web. After login(basic auth works fine) I've no access to cassandra keyspaces. Don't view any data.
Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants