8 ms·
If Your Business Uses Rails 2.3 You Need To Move To A Supported Option ASAP
- steveklabnik 13y agoTo disclaim: I submitted this story to HN because people on HN care about patio11's blog, and if someone gets internet points, might as well be me. Do not take this as an endorsement by me or anyone else on the Rails team, thanks.
- tptacek 13y agoWow, the non-drama drama comment. Very slick.
- steveklabnik 13y agoI'm sorry if you thought this was 'drama,' just trying to make sure that someone doesn't think that this is officially supported by the Rails team or that I'm speaking for anyone. Frankly, I've been running around at Ruby conferences saying "If you want old versions of Rails supported, you should be paying someone to do it," and I think Rails LTS is great, in a personal capacity. That said, since I posted this, https://twitter.com/rails/status/346671286149337088 https://twitter.com/rails/status/346671286149337088
- tptacek 13y agoYou know what? That was a dumb comment for me to write. I plead "commenting while I have the flu", and you're not the first person to get an egregiously snippy comment from me over the past couple days. I apologize. I'll be more vigilant about what I'm posting while I'm not at my best. I'm with you on LTS, by the way; it's a great idea.
- sneak 13y agoFeel better!
- steveklabnik 13y agoThanks, Thomas. Honestly, the last two weeks of HN or so have been so flame-bait-y and vitriolic that I just assume everyone's tensions are high, and specifically you, since you hold a minority position on the NSA issue. That said, I do appreciate the apology, and I hope you feel better soon. <3
- johnbellone 13y agoI heard you say this in MA this past weekend. Even more impressed that you ran there to do it :).
- marshray 13y agoThank you for helping get the word out about Rails 2.3. Ignore the haters.
- patio11 13y agoThat's unfair. Consider, hypothetically, a case where there is publicity on a subject that a Matasano employee has specific expertise about but which is also not orthogonal to Matasano's commercial interests. You can stipulate, if it helps, that the hypothetical employee is younger or less senior in the organization. They might reasonably decide to post something about that thing on HN or Twitter, and then follow it up with an out-of-an-abundance-of-caution disclaimer to head off any trouble at the office, right? That isn't double-secret-squirrel drama seeking, that's just trying to adapt to the weirdness of life as an employed social animal in 2013, where you have an ingroup-you and a public-you and occasionally they have to be both present in a conversation at the same time at cross-purposes to each other.
- tptacek 13y agoYep. That was dumb of me.
- patio11 13y agoFeel free to ask me for elaboration if you need any, in particular if you have a CTO or other bosscritter who you need help convincing of the importance of this. It will be seriously bad news for you if you stay on unpatched 2.3 over the next several months.
- gadders 13y agoIt sounds like a sensible idea, and a nice thing for you to help organise. No doubt it will get criticised :-) As an aside, do you think there is a better way Rails could have handled this? Or (less controversially) is there a best practise you think OSS projects should maybe follow in regards to past versions?
- patio11 13y agoI have approximately 10,000 reasons to personally prefer Rails continuing to support 2.3 out of the goodness of their hearts, but I don't think that satisfying my (and other users') selfish desires is necessarily "better" than not doing that. It is necessary and proper that the project have priorities, and those aren't going to be optimal for every user every time. I am quite happy that they were really explicit about "We are dropping support for 2.3 when 4.0 lands" so that those of us who depend on 2.3 to eat had months to explore other options prior to needing them urgently. That's something that many OSS projects can and should emulate.
- cheald 13y agoI have several side projects that run on 2.3. I don't have the time to upgrade them or the resources to purchase commercial support for Rails 2.3. Your comment makes me wonder if you are aware of some undisclosed bugs that will be disclosed in the next few months, or if it's more of just a "4.0 is dropping, 2.3 support is going bye-bye" kind of thing. If the former, I'd appreciate some clarification on that point. I have no problem backporting patches myself (and in fact extensively patch libraries when needed!), but I'm wondering if there's an active-yet-undisclosed threat, or if it's just "people aren't going to do my work for me". Can you elaborate?
- thomas_ 13y agoFirst of all, thanks for the nice article, Patrick! Feel free to ask us at makandra anything you'd like to know about Rails LTS.
- hvs 13y agoI know many folks in the Rails community wonder why anybody could still be using a years-old system. Once this statement is no longer true, Rails will be ready for the enterprise.
- freehunter 13y agoJust recently my enterprise retired our Windows 3.1 environment. It was kept running to support a system that supported a system that supported dial-up VPN access for a certain subset of users. And that's not incredibly uncommon...
- dhh 13y agoOnce that statement is true, Rails will BE the enterprise. Don't bank on it. (And by that I mean we'll continue to release new versions that at times will be backwards incompatible and require work to upgrade to).
- eduardordm 13y agoAlready is! I've submitted talks a few times about my experiences with Rails in an enterprise environment, no luck. Anyway, We run rails since 2006, we got large and became a bank. Numbers: 5032 models, 42 gems, 16 submodules, lots of C extensions and eventmachine servers running in threads. From our website to ATM servers, it's everything inside a single rails application. We managed to upgrade from 2.3 to 3.2 in 6 months. Already running 4 (took only a few hours). We just completed our migration from Oracle DB to Postgres.
- bryanh 13y agoThat is wildly interesting. If you could swing it, you should write up a full post about what that your Rails app looks like after 7 years in production.
- rurounijones 13y ago5032...models...I, whu... ONE application?! I would never have thought that was actually possible. A write-up regarding your architecture / challenges / solutions / future plans in a blog post would be extremely interesting. (How long does the test suite take to run!?)
- film42 13y agoThis was a pleasure to read. I really think this is the most intelligent solution to older rails projects. It's also an eye opening topic for all startups out there, including mine, that rely on rails -- you will need to fight to keep your applications and servers safe. I guess you could say I spend so much time building and breaking to achieve something, that the thought of long term support often slips my mind. Still, when building I do my best to stay away from '3-in-1' gems (aka, admin-backbone-devise-api-comments-aws) that have a 0% possibility of surviving. I stick to gems that are up there in the star count on github, and try not to touch anything that has been stagnant for 6months+. Obviously this isn't a perfect solution, but I feel a bit more confident in the survival/ longevity of the application.
- rmoriz 13y agoIf you still don't accept that software is a process not a product you're going to have a bad time. With every technology stack on this planet.
- yuhong 13y ago“Horsepuckey. The hypothetical person saying this is a textbook pathological customer: they’re both deeply irrational (if the app’s security was worth $5 a month then the right answer is probably to shut it off and save the server cost) and likely to be far, far, far too much headache for professional Rails engineers to have to deal with. I’m glad their mail is not going to be in the same inbox as mine when I ask questions about new security issues.” That being said, one of the good thing about open source software is competition here is possible, unlike say the end of support of WinXP.
- chadr 13y agoHow long do they plan on supporting this fork? Hopefully for multiple years? I didn't see it mentioned on the site.
- purephase 13y agoThis is one of the amazing aspects of OSS that so many seem to miss. It opens up the possibility for these types of initiatives that most closed source projects will never receive once the core developers walk away. Great idea. Hopefully great execution for those still on older versions of Rails.
- Aqua_Geek 13y ago> Many of the gems/plugins which you might be using with your current application will not be compatible with Rails 3. I'm genuinely curious what gems people are using that are not yet compatible with Rails 3, given that it was released almost three years ago. Maybe my use cases for Rails don't match the most common ones, but I have yet to run into this issue. For Rails 4, well, that's another matter =)
- steveklabnik 13y agoI am interested in helping gems that are not Rails 4 compatible get so, so if you can point me towards some that aren't, I'll reach out to the maintainers.
- Aqua_Geek 13y agoThanks! MongoMapper is at the top of my list. Hard dependency on ActiveModel 3.
- steveklabnik 13y agoCool, I'll get in touch with them. EDIT: Here's the status: https://github.com/jnunemaker/mongomapper/issues/493 https://github.com/jnunemaker/mongomapper/issues/493
- tomfakes 13y agoActive Admin is getting there in a branch, but I do like to have rubygems.org gems for production apps. I've just started using the Turkee gem, and this needs the mass-assignment gem with Rails 4 to work correctly. Since I'm new to this one, I need to spend more time with it before I can send in some pull requests to provide patches
- steveklabnik 13y agoI hear you about the branch issue. Thanks!
- 13y ago
- relix 13y agoPrevious HN thread on this, which was not quite as popular: https://news.ycombinator.com/item?id=5794632 https://news.ycombinator.com/item?id=5794632
- callmeed 13y agoI have a Rails 2.3x ecommerce app that is not our primary product but still makes us a good amount of money. Personally, I'd like to upgrade to Rails 3.2x (and eventually 4) so I can take advantage of some newer gems. However, the task is a little daunting given we use some older authentication and file upload libraries. All that to say, if I can't get it done soon, I will definitely go the Rails LTS route. BTW, If any Rails devs out there want a challenge and have some time, please get in touch with me.
- ryanmacg 13y agoI might be wrong but would the trick maybe be to break it down bit by bit, so for instance break off your existing file upload stuff and replace it with CarrierWave or something different. I don't know what your codebase is like but doing it that way should in theory make it more copable to slowly tick it up to rails 3+
- callmeed 13y agoYeah, that's likely the best way to do it. Problem is, our image uploads now number in the high hundreds of thousands (not counting thumbnails). The other problem is, we are short-staffed. So, if I tackle this, it takes me off other projects for 2+ weeks. It looks like there is a fairly active Rails 3 fork of attachment_fu (what we use): https://github.com/pothoven/attachment_fu https://github.com/pothoven/attachment_fu
- ryanmacg 13y agoGotcha, there's also some information on migrating to paperclip[1] which might suit and I'm sure someone will have done similar for CarrierWave. Of course none of that helps with being short staffed. [1]https://gist.github.com/serek/375203 https://gist.github.com/serek/375203
- signifiers 13y agoThe backporting involved here is non-trivial. If the past 9 months are any indication, I would expect we haven't seen the last of the serious YAML vulnerabilities yet: http://www.cvedetails.com/vulnerability-list/vendor_id-12043/product_id-22568/Rubyonrails-Ruby-On-Rails.html http://www.cvedetails.com/vulnerability-list/vendor_id-12043...
- VeejayRampay 13y agoI think there's only one reason why a company would run Rails 2.3 in 2013: greed. There's no way you absolutely cannot somehow find a way in about 4 years to migrate even a big code base to at least Rails 3. It's not like the migration was that complicated, there are countless guides around, a devoted community, IRC channels, consultants aplenty and even tools to hold your hand along the way.
- jiggy2011 13y agoGreed? More likely apathy and conservatism.
- sneak 13y agoHow about "it ain't broke"? That's not greed.
- VeejayRampay 13y agoCome on now. It's like being in a car at 80 kph in the direction of a wall and claiming that the trajectory is "just fine" a few seconds before impact. If you couldn't somehow find a way to work around the well-known end of life for Rails 2.3, then you had it coming. There's a point as a business man where you need to invest the money to make more money. In this case, fixing your code base so that it can be ready for the 4, 5 years to come.
- steven777400 13y agoIt's more difficult in slow-moving enterprise environments. In our environment, the time from someone saying "we should do this" until it's in production can easily be 3 years. Then, add the lifetime of use which can span even decades (depending on the application). Long-term managers and architects have seen many, many technologies and methodologies come and go, and treat claims of "you better change that system quick!" with skepticism (doesn't mean it isn't true). Four to five years of life for an enterprise code base is a blink of an eye. If I proposed a major framework/foundation change for a four year old application, I'd be getting some unpleasant looks.
- mark_l_watson 13y agoVery nice of them to have a free community version (security patches 10 days after normal release - this seems fair to me). I could have used this a year or so ago, but I rewrote an old 2.3 Rails app in Clojure (cookingspace.com if you are curious). Now I am glad it is in Clojure though. I had previously updated another Rails app from 2.x to 3.x and I was surprised how much trouble it was to do that.
- messick 13y agoThe whole "2.3.x is not getting any more security updates" statement is disingenuous at best. While "Security Updates" might not be coming out, "Severe Security Updates" will still be released. That combined the the "Do nothing and, with probability of 100%, get your server owned." statement makes this pretty much just a F.U.D. piece designed to trump up business for these guys, and by proxy yourself.
- steveklabnik 13y agoPlease see http://weblog.rubyonrails.org/2013/2/24/maintenance-policy-for-ruby-on-rails/ http://weblog.rubyonrails.org/2013/2/24/maintenance-policy-f... "Severe Security Updates" => "After the Rails 4 release: 4.0.z, 3.2.z"
- wtracy 13y agoI didn't see "Firewall that thing off from the Internet" mentioned as an option. Not all web apps are public-facing, after all.
- patio11 13y agoThat is a partial option, but there are ways in which it is inadequate. For example, with the January Rails vulnerabilities, dropping an IMG tag with a well-constructed URL on a site on the public internet was likely enough to suborn a developer's browser into connecting to and rooting a Rails box that was firewalled from external traffic. You still want to patch things, to prevent that and similar issues.
- smoyer 13y agoI've got an application running Rails and my easiest path is to eliminate it entirely.
- zallarak 13y agoThis seems pretty obvious and applies to most popular web frameworks. From a quick Google search, one can see rails 2.3 came out in 2009. That is 4 years ago - in the context of web frameworks that is quite a while.