Moove It is now Qubika. For more information, visit our new website
Visit Qubika

DevSnack #42: We all know the benefits of Ruby on Rails applications, but what about their security? In this DevSnack we will cover different aspects of Ruby on Rails applications from a security standpoint. It doesn’t exist a simple guide to follow in order to make the “impenetrable” web application, but with the following articles you will be able to, at least, build more robust RoR applications.

 #1 – How Do Rails Developers Keep Updated on Security Alerts?

In the following article, Gavin Miller will cover different options to keep yourself updated with the latest security alerts.

He will cover Mailing Lists, Common Vulnerability Exposures -CVE- reports, different tools to audit your application in terms of security.

#2 – Preproduction Security Checklist for Rails app

Heiko Webers is the author of “Rails Security Guide” and “Rails Security Strategy”. He made a list of security issues to check when developing Rails Apps.

From the great old SQL Injection, to Cross-Site Request Forgery, he goes through 10 vulnerabilities, explaining them as well as how to avoid them.

More articles from Heiko here.

#3 – Using (and Testing) Rack::Attack to Improve the Security of Your Rails App

In the following post, Hayley Anderson explains how to use the Rails gem “Rack::Attack” to test how secure your application is. Rack::Attack is a Rack middleware intended to make your Rails application more robust and secure – give it a try!

#4 – Two Factor Authentication in Rails 4 with Devise, Authy and Puppies

We all know that the simple combination of username and password doesn’t make a robust authentication method. Two-factor authentication helps to fight this issue. This is not the “one for all” solution, there is no such thing – but it definitely helps.

Phil Nash covers this topic by building a Rails 4 application with the “Authy” gem to protect puppy pictures.

#5 – More Useful Resources

Sadly, there is no perfect application in terms of security, no magic solution. As a community, we all need to contribute!

“Security is sometimes a tough effort to justify because when it’s working you’ll rarely notice” – Gavin Miller


Creative Commons License
DevSnack by Moove-it is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Get our stories delivered from us to your inbox weekly.