title: Storage Access Credentials for Google Storage for carrierwave gem in a Rails Application
body: <p>In my rails 3 application, I am using carrierwave gem (version 0.5.6). I would like to use Google Storage for developers for storing the uploaded files. I have created an initalizer which looks like following:</p>
  
  <pre><code>CarrierWave.configure do |config|
      config.fog_credentials = {
          :provider                         =&gt; 'Google',
          :google_storage_access_key_id =&gt; 'xxxx',
          :google_storage_secret_access_key =&gt; 'yyyy'
      }
      config.fog_directory = 'directory'
  end
  </code></pre>
  
  <p>I am getting 403 forbidden message with</p>
  
  <pre><code>...&lt;Error&gt;&lt;Code&gt;InvalidSecurity&lt;/Code&gt;&lt;Message&gt;The provided security credentials are not valid.&lt;/Message&gt;...
  </code></pre>
  
  <p>I have just enabled my Google Storage using the apis-console, and I can upload files using the online 'Google Storage Manager'. For 'google_storage_access_key_id' in the initializers file above, I am using 'Google Storage Id' for 'You' in the 'Storage Access' page. For 'google_storage_secret_access_key', I am using the 'Legacy storage access keys'.</p>
  
  <p>I don't know how to proceed. Could someone kindly point me towards how to get about debugging this issue?</p>
  
  <p>Thanks,
  Saksham </p>