Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Securing your site

bob_p
April 23, 2012

Securing your site

My talk on securing your rails app, from Rails Conf 2012.

bob_p

April 23, 2012
Tweet

Other Decks in Technology

Transcript

  1. XSS

  2. MyApp::Application.config.session_store :cookie_store, :key => ‘_my_key’, :expire_after => 45.minutes class User

    < ActiveRecord::Base devise :authenticatable, :timeoutable, :timeout_in => 45.minutes end
  3. class User validates_attachment :avatar, :presence => true, :content_type => {

    :content_type => "image/jpg" }, :size => { :in => 0..10.kilobytes } end
  4. SSL

  5. XSS