Clearer error message when sops_decrypt_file
fails because of missing credentials/permissions
#3064
Labels
sops_decrypt_file
fails because of missing credentials/permissions
#3064
We use SOPS to manage secrets. The SOPS secret file is decrypted using
sops_decrypt_file
in our top-levelterragrunt.hcl
file. Something like:It happens quite often that executing Terragrunt fails with
and people get really really confused what is happening.
Either way, it's a permission problem, but the error message is not really helping figuring that out.
Describe the solution you'd like
Some kind of hint that the failure is likely related to some permission/credentials problem. I don’t have a good wording suggestion I’m afraid
Describe alternatives you've considered
I considered using terragrunt error hook to parse the message and display an error message, but 1/ I could not make it work (although I did not try really hard) 2/ I would rather not have to do that in every repo anyways
The text was updated successfully, but these errors were encountered: