Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I keep my Heroku application private?

Is there a way that I could keep my application completely private, and only let the developers have access?

When a random user enters the URL, it should be something like a blank page, but when the developers enter the URL, they should be able to access the app.

like image 676
felix Avatar asked Jan 28 '11 13:01

felix


People also ask

Are all Heroku apps public?

You can set app access to public or private. Setting app access does not have any impact on the dashboard or automatically make public apps available to others. Apps marked as public are available publicly to other users only if you deploy your Application Portfolio Manager public site.

Is code on Heroku private?

No, the code is not public. Do not confuse GIT with GITHUB. When you deploy to heroku the repository is private to the owner and the added collaborators.

Is Heroku a private cloud?

Today Heroku is introducing Private Spaces, a new Heroku runtime that delivers the best of both worlds; the simplicity and success of the cloud, combined with the network and trust controls historically only available with on premise, behind the firewall deployments.


1 Answers

My cheap solution has been implementing a before_filter to request an HTTP authentication before every action is executed.

This solution works well along other authentication layers – Devise or others.

USERS = { "user" => "secret" }  before_filter :authenticate  def authenticate   authenticate_or_request_with_http_digest("Application") do |name|     USERS[name]   end end 

Whenever other peers land at yourdomain.heroku.com, they are asked for HTTP authentication, later for other authentication if in place.

like image 92
lbz Avatar answered Oct 14 '22 04:10

lbz