Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.89 KB

README.md

File metadata and controls

27 lines (14 loc) · 1.89 KB

Terraform provider gitcrypt

This is a simple terraform provider which can decrypt files encrypted with git-crypt.

Actions status

release Tests

What is this provider for?

In any infrastructure, there is a set of secrets that need to be stored somewhere. If you define your infrastructure as a code, that is good to be able to keep secrets in code too. However, they need to be secured properly. One way to achieve that is to encrypt your secrets in VCS, e.g. with git-crypt.

In order to provide terraform with access to encrypted content you can use this provider to decrypt and parse secret files on the fly. It is especially useful in cases when you have no control over terraform execution environment to decrypt files with git-crypt CLI, for example if you use Terraform Enterprise.

Documentation

Terraform docs

Encrypted file format

gitcrypt terraform provider can parse simple file which contains key: value pairs like var1: value1.

You can see ENCRYPTED and DECRYPTED files example.

Contributing

If you're having trouble using gitcrypt provider, create a Github issue or open a pull request.