mercredi 20 juillet 2016

Using secret passwords in Rails App

I am working on a rails application where I need to send an issue on github if a certain process takes place. Now, to send a post request I need to use my github username and password. Obviously, I can't use my password in open so what should I do?

I know something about secrets.yml file in rails config but I can't even put my password there. I will put my app on github and anyone can hence access. How should I use secrets.yml file to store my password and use it in my rails app?

Aucun commentaire:

Enregistrer un commentaire