Is it safe to publish an app on Heroku that has api keys on there?

后端 未结 1 978
情书的邮戳
情书的邮戳 2021-01-24 17:35

I am planning to deploy an app that uses a few api keys on Heroku. I was planning on using there git deployment method. I have a few api keys on the application that could creat

相关标签:
1条回答
  • 2021-01-24 17:57

    As long as you trust Heroku, is shouldn't make a difference which deployment method you use. However, make sure you don't keep your secrets (like API keys, tokens, and passwords) directly in your code. You could use environment variables instead. You can assign values to environment variables either using Heroku dashboard or their command line interface.

    0 讨论(0)
提交回复
热议问题