You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Error refreshing state: 1 error occurred:
* data.sops_file.test_secret: 1 error occurred:
* data.sops_file.test_secret: data.sops_file.test_secret: Error walking tree: Could not decrypt value: Input string world does not match sops' data format
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: