Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 582 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 582 Bytes

github-repo-management

Managing secrets

Sensitive configuration can be {en,de}crypted using a Vault instance.

Decryption:

vault write transit/decrypt/tf-encryption-key -format=json ciphertext=$(cat backend-config.enc) | jq -r .data.plaintext | base64 -d > backend-config

Encryption:

vault write transit/encrypt/tf-encryption-key -format=json plaintext=$(cat backend-config | base64 -w 0) | jq -r .data.ciphertext > backend-config.enc

Importing existing repos

terraform import module.github_repository.github_repository.repo repo-name