Open abhisheksinghrathod opened 4 years ago
Hi @abhisheksinghrathod, I wasn't able to replicate this, I'm afraid. I've added some tests on this, which seem to work, and bumped the sops library. While this didn't affect my results, it would be very helpful if you could check if it helps you, by trying out the new binary from here: https://81-138219030-gh.circle-artifacts.com/0/terraform-provider-sops
Hi @carlpett , Here is my use case This is my test.yaml file
I am using my AWS KMS key to encrypt/decrypt the data
I used
--encrypted-regex
to encrypt only keyalpha
. It gets encrypted fine, using commandsops -i --encrypt --encrypted-regex '^(alpha)$' test.yaml
This is how my encrypted files looks like
It gets decrypted also without any issue, when using this command:
sops -i --decrypt test.yaml
But when used with
Terraform SOPS provider
code, It fails with following errorError:
As you can see here, terraform provider is trying to decrypt a string
world
which was never encrypted. Hence the error.I tried searching all over the internet, but could not find any solution, hence reaching out to you.