title: Storing Private Files on Heroku
body: <p>I have a scenario here related to storing private files on heroku.</p>
  
  <p>I need to store private files( certificates and keys for sending push notifications to IOS devices) in a heroku app(uses Cedar stack), I can push these files to heroku server through git but storing on git is not secure as these are private. So, I want to secure copy (SCP) these files to heroku server but heroku doesnt allow incoming connections and storing these files on S3 bucket is not a great solution as it takes some time to get the file from S3 bucket which increases the delay in sending each push notification when in a loop. </p>
  
  <p>I'm kinda lost finding the right solution to this scenario. The gem <a href="https://github.com/NicosKaralis/pushmeup" rel="nofollow">https://github.com/NicosKaralis/pushmeup</a> accepts the private files either as a file object or a string (that points out the path of the files on server). Heroku allows to set config vars(only strings) that can be used in Environment but not files.</p>
  
  <p>Could someone please suggest me some workarounds in this scenario, Thank you.</p>