How do I open source my Rails' apps without giving away the app's secret keys and credentials

后端 未结 5 1588
[愿得一人]
[愿得一人] 2020-12-13 07:38

I have a number of Rails apps hosted on GitHub. They are all currently private, and I often will deploy them from their GitHub repository. I\'d like to be able to make some

5条回答
  •  鱼传尺愫
    2020-12-13 07:56

    Not storing any secret value at all. At any point in the history of a Git repo.
    Those values should be stored elsewhere, leaving only template config files versioned, along with a script able:

    • to read the right values from the external repo
    • and build the final config file complete (with the secret values in it)

    By keeping the tow set of data separate (sources on one side, secret values on the other), you can then open source the sources repo without comprising any secrets.

提交回复
热议问题