Hacker News new | ask | show | jobs
by jaggederest 4842 days ago
Easier than having someone else maintain it?

The bar is 'If I never ssh into this box and leave this app alone for 3 years, how likely is that box to get rooted?'

2 comments

Does heroku ssh in for you and update your rails installation or other custom software? If not there's no way you should leave any software unattended for that length of time. Most java, python, ruby and php frameworks/apps will all have had vulns in that period for example. Also do they upgrade things like ruby without you redeploying?

What heroku buys you is not having to deal with updating the web server and database, as they'll deal with all of that, but I wasn't aware that they provide a fully managed service like say wordpress.com, and I don't see how they could for custom apps.

If you have left your heroku app alone for 3 years, you are definitely at risk of getting rooted: https://blog.heroku.com/archives/2013/1/11/rails_security_vu...
You don't need to ssh into the box to take care of Rails vulnerabilities; just redeploy. Heroku is taking care of any vulnerabilities in the rest of the stack: Postgres, Nginx, SSH, etc.
The thing is, that's actually the easy bit - use apt-get upgrade on say Ubuntu lts and you will very rarely see problems with your upgrade of software like Postgres, apache, ssh or nginx - it's so widely used that you're unlikely to run into issues, and upgrading takes a few minutes every few months.

The thing you need to test then deploy are upgrades to your language and framework/app, and those present exactly the same problem on heroku or on say a vps. You can't just redeploy your app without testing on a new config, and deploys to heroku are no easier or harder than deploys to your own server once set up.

You also don't need to ssh into the box with chef...
Technically you're both wrong - both chef and git use ssh as an underlying transport.
Pedant time! ssh is just one of many transports that git can use.
He's right though about Heroku, you use ssh as the transport to deploy via git.
Who says it's a rails app? I run a couple raw-rack apps that hum along just fine with very, very occasional updates.