File encryption in Git Repository

前端 未结 2 1161
北荒
北荒 2021-02-13 03:28

Is there any way (in built or add-on) to encrypt individual files in a repository, accessible by limited people. Files when checked in by those folks will auto encrypt and decry

2条回答
  •  借酒劲吻你
    2021-02-13 03:59

    I know my answer is late but there is plenty of alternatives for storing secrets in git repos:

    1. Git-crypt
    2. BlackBox
    3. SOPS
    4. Transcrypt

    Most of them use GNU Privacy Guard (GPG), symmetric key encryption, and/or cloud key services (SOPS). If you just want a simple encryption mechanism with password you can also take a look at ansible vault, which doesn't require generating keys for each account.

提交回复
热议问题