Skip to content

Instantly share code, notes, and snippets.

@ideaoforder
Created January 7, 2015 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ideaoforder/7257a22877d8218399df to your computer and use it in GitHub Desktop.
Save ideaoforder/7257a22877d8218399df to your computer and use it in GitHub Desktop.
Open-Sourcing a Github Repo
First and foremost: DON'T USE THE AMAZON MASTER KEY/SECRET
Use an IAM USER for each site/repo, with its own creds, so you can reset them easily and limit access
Secondly, use .env/secrets.yml--either using Heroku/Foreman, dot-env (Rails 3), or secrets.yml (Rails 4)
https://devcenter.heroku.com/articles/config-vars
Last thing, you'll need to scrub sensitive data out of your app's history (even if you reset/deleted those passwords, best to remove them from the history as well--you want to seem like a pro, don't you?)
https://help.github.com/articles/remove-sensitive-data/
https://rtyley.github.io/bfg-repo-cleaner/
http://stackoverflow.com/questions/4110652/how-to-substitute-text-from-files-in-git-history
Also, you should consider adding a license:
https://github.com/idleberg/Creative-Commons-4.0-Markdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment