Search code examples
githubtfsvagrantsalt-projectpgp

PGP Encryption to store credentials(AD) of Vagrant in source control with the public keys


I have an environment with Vagrant, Salt & TFS . So I have some vagrant boxes with AD user credentials, I m looking at options where we need to figure out a way to have encrypted keys for storing secrets & to use PGP encryption to encrypt these keys and secrets that way they can be in source control.

We are thinking to - able to store the password encrypted in source control with the public keys and separate out the private keys.

Can someone guide me on the same ?

Thanks,


Solution

  • I was able to Implement it using https://fabianlee.org/2016/10/18/saltstack-keeping-salt-pillar-data-encrypted-using-gpg/ . I could export the Secret and checkin to TFS from CLI . Thanks for your inputs