<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Robby on Rails: Tag security</title>
    <link>http://www.robbyonrails.com/articles/tag/security</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>thoughts.sort_by{|t| t[:topic]}.collect </description>
    <item>
      <title>1Password and Fluid.app </title>
      <description>&lt;p&gt;I&amp;#8217;ve been really happy with my purchase of &lt;a href="http://1password.com/"&gt;1Password&lt;/a&gt; so far. If you&amp;#8217;re not familiar with it, I would really recommend their free-trial. I&amp;#8217;ve been really impressed with how quickly it became reliant upon it. 1Password works across several browsers, imports existing passwords, and even has integration with your iPhone. However, over the past month, I&amp;#8217;ve been wishing that it worked with my &lt;a href="http://fluidapp.com/"&gt;Fluid&lt;/a&gt; applications.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://support.agilewebsolutions.com/showthread.php?t=9312&amp;#38;highlight=fluid"&gt;1Password 2.6.BETA-2&lt;/a&gt; was released a few days ago one of the features added was integration with Fluid applications.&lt;/p&gt;


&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/robbyrussell/e7bf/fluid-and-1password"&gt;&lt;img src="http://img.skitch.com/20080404-j3t7cskh476kaq76it7jhn3498.preview.jpg" alt="Fluid and 1password" /&gt;&lt;/a&gt;
&lt;br /&gt;&lt;small&gt;Signing into &lt;a href="http://www.lighthouseapp.com/"&gt;Lighthouse&lt;/a&gt; with 1Password&lt;/small&gt;&lt;/div&gt;

	&lt;p&gt;I&amp;#8217;m glad to see that Agile Web Solutions was so quick to respond to the &lt;a href="http://support.agilewebsolutions.com/showthread.php?t=8617&amp;#38;highlight=fluid"&gt;flurry of people requesting this&lt;/a&gt;.&lt;/p&gt;


	&lt;h3&gt;Related Post(s)&lt;/h3&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://www.robbyonrails.com/articles/2008/03/05/campfire-messages-in-growl"&gt;Campfire messages in Growl&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
</description>
      <pubDate>Fri, 04 Apr 2008 09:22:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:36f2893d-4f00-49e2-be53-51a0f4d77bb1</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2008/04/04/1password-and-fluid-app</link>
      <category>1password</category>
      <category>fluid</category>
      <category>osx</category>
      <category>security</category>
      <category>lighthouse</category>
    </item>
    <item>
      <title>Rails Code Audit Tips - Filtered Parameter Logging</title>
      <description>&lt;p&gt;It&amp;#8217;s been a month since I posted, &lt;a href="http://www.robbyonrails.com/articles/2007/06/17/audit-your-rails-development-team"&gt;Audit Your Rails Development Team&lt;/a&gt; and now I find myself sitting in a hotel room in Mankato, Minnesota with &lt;a href="http://blog.imperialdune.com/"&gt;Graeme&lt;/a&gt; after a long day of walking through the documents that we delivered to our client after conducting a &lt;a href="http://www.planetargon.com/contact.html"&gt;Rails Code Audit and Review&lt;/a&gt;. Our client felt that it would be a great idea to have us visit with six of their employees and walk through the various topics that we brought up in our process. We&amp;#8217;ve been doing several of these audits recently and are thought that it would be a good idea to begin sharing some problems that we&amp;#8217;ve discovered across projects.&lt;/p&gt;


	&lt;p&gt;As much as we like to find lots things that we&amp;#8217;d recommend improving in Rails applications, we also want to make sure that as many projects as possible avoid some of these common oversights. So, expect to see more posts related to things that we find through our Code Audit and Review process.&lt;/p&gt;


	&lt;p&gt;Today, I&amp;#8217;d like to point out a potential security problem that is often overlooked by developers and system administrators.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Log files&lt;/strong&gt;.&lt;/p&gt;


	&lt;p&gt;Does your application request any of the following information from your users?&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Social security number&lt;/li&gt;
		&lt;li&gt;Credit card date (number, expiration date, etc..)&lt;/li&gt;
		&lt;li&gt;Passwords&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;&lt;span class="caps"&gt;BY DEFAULT&lt;/span&gt;&lt;/strong&gt;, all of this data is being written to your production log file. Even if you&amp;#8217;re encrypting this data in your database, request parameters (get/post) are all written to your production logs without any encryption. Log files are also notorious for having insecure file permissions, so if you&amp;#8217;re on a shared host, other accounts on the server might be able to view them. Regardless of how secure you &lt;em&gt;think&lt;/em&gt; your server is, this isn&amp;#8217;t data that you want sitting around.&lt;/p&gt;


	&lt;p&gt;Lucky for you, Ruby on Rails has an easy solution to this problem! All that you need to do is use the &lt;code&gt;filter_parameter_logging&lt;/code&gt; method in your controller(s). We generally add something like the following to our application controller.&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
  filter_parameter_logging :social_security_number, :password, :credit_card_number, 'some-other-param' 
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;This will replace the value from the parameters with &lt;code&gt;[FILTERED]&lt;/code&gt;, which solves this problem rather nicely.&lt;/p&gt;


	&lt;p&gt;So, it would be our recommendation, that if your application is storing &lt;em&gt;any&lt;/em&gt; sensitive data, that you take advantage of this simple solution. Be sure to read more about &lt;a href="http://api.rubyonrails.org/classes/ActionController/Base.html#M000260"&gt;filter_parameter_logging&lt;/a&gt; before you implement this for various usage examples.&lt;/p&gt;


	&lt;p&gt;Stay tuned for more tips and tricks. If you&amp;#8217;re interested in contracting us for our Rails Code Audit and Review service, &lt;a href="http://planetargon.com/contact.html"&gt;give us a call&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Tomorrow, Graeme and I will be meeting for another day with our clients and then we fly home to Portland, Oregon in the evening. We survived our first tornado warnings, which was exciting as we don&amp;#8217;t get those on the west coast. ;-)&lt;/p&gt;
</description>
      <pubDate>Mon, 16 Jul 2007 22:50:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:be1a19cb-83b3-4ec7-a12b-6df18e6ce62d</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2007/07/16/rails-code-audit-tips-filtered-parameter-logging</link>
      <category>Business</category>
      <category>Ruby on Rails</category>
      <category>Programming</category>
      <category>PLANET ARGON</category>
      <category>code</category>
      <category>audit</category>
      <category>logging</category>
      <category>security</category>
      <category>privacy</category>
      <category>rubyonrails</category>
      <category>rails</category>
      <category>filtering</category>
      <category>parameters</category>
      <category>params</category>
    </item>
    <item>
      <title>Question: Travel Restrictions</title>
      <description>&lt;p&gt;Travel restrictions?&lt;/p&gt;


	&lt;p&gt;When I purchased my tickets for my trip to London for RailsConf Europe through travelocity.com, it showed me the following &lt;em&gt;warning&lt;/em&gt; (after I paid).&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Traveling in the UK:&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;If you are traveling within the UK, you will have to check &lt;span class="caps"&gt;ALL&lt;/span&gt; of your belongings. Wallets, IDs, and necessary medications are the exceptions, and must be carried in a plastic bag (clear bags are recommended).&lt;/li&gt;
		&lt;li&gt;Laptops, mobile phones and iPods are among the electronic items banned in carry-on luggage on British flights.&lt;/li&gt;
		&lt;li&gt;Liquids, gels, and pastes are no longer permitted in carry-on luggage on board any aircraft within the U.S. and UK (This includes toothpaste, sunblock, and perfume.)&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://travelocity.custhelp.com/cgi-bin/travelocity.cfg/php/enduser/std_adp.php?p_faqid=1678"&gt;Please check our website for updates and the latest information.&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;So, I follow that link and come across &lt;a href="http://www.dft.gov.uk/stellent/groups/dft_about/documents/page/dft_about_612280.hcsp"&gt;this page&lt;/a&gt;, which doesn&amp;#8217;t mention laptops, mobile phones, or iPods.&lt;/p&gt;


	&lt;p&gt;Does anybody know what the &lt;em&gt;current&lt;/em&gt; restrictions are for flights to and from the US and UK?&lt;/p&gt;
</description>
      <pubDate>Sun, 10 Sep 2006 12:09:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:c9b57489-eac6-44af-a343-d206fb10f259</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2006/09/10/question-travel-restrictions</link>
      <category>travel</category>
      <category>railsconf</category>
      <category>laptop</category>
      <category>security</category>
    </item>
  </channel>
</rss>
