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
# Load secrets if they are present
secret_vars = try(yamldecode(sops_decrypt_file("secrets.yaml")), {})
It should work as I am using a AWS profile for SOPS, called development.
It DOES work if this profile is configured on ~/.aws/credentials (no SSO, CLI v1):
Error: Error in function call
on /Users/user/git/terragrunt-infrastructure/development/terragrunt.hcl line 15, in locals:
15: secret_vars = yamldecode(sops_decrypt_file("secrets.yaml"))
Call to function "sops_decrypt_file" failed: Error getting data key: 0 successful groups required, got 0.
It was obvious that sops does not support AWS Single-Sign On.
But then I saw that SOPS 1.7.0 supports Single-Sign On now:
See here getsops/sops#823 (released on 1.7.0).
I have tested on the command line with 1.6.1 and 1.7.0 with:
sops secrets.yaml
Does NOT work with 1.6.1, but with 1.7.0 it does.
I see Terragrunt depends on Sops 1.5.0. For Single-Sign On to be supported and fixed we would need to upgrade the SOPS Go dependency to 1.7.0.
Thanks.
The text was updated successfully, but these errors were encountered:
I also look forward to sops 1.7.0 support that comes with 'age' encryption (from sops read-me: age is a simple, modern, and secure tool for encrypting files. It's recommended to use age over PGP, if possible.)
Context
Versions:
terraform: v0.14.6
terragrunt: v0.28.18
Description
AWS Single Sign-On is supported from Terrafrom 0.14.6+, AWS provider 3.26.0+ and Terragrunt 0.28.9+ and AWS CLI v2.
This is all working great, except when using SOPS from Terragrunt, like below:
secrets.yaml
terragrunt.hcl
It should work as I am using a AWS profile for SOPS, called
development
.It DOES work if this profile is configured on
~/.aws/credentials
(no SSO, CLI v1):But when I switched to use Single-Sign On with
~/.aws/config
(with SSO, CLI v2):I get this error:
It was obvious that sops does not support AWS Single-Sign On.
But then I saw that SOPS 1.7.0 supports Single-Sign On now:
See here getsops/sops#823 (released on 1.7.0).
I have tested on the command line with 1.6.1 and 1.7.0 with:
Does NOT work with 1.6.1, but with 1.7.0 it does.
I see Terragrunt depends on Sops 1.5.0.
For Single-Sign On to be supported and fixed we would need to upgrade the SOPS Go dependency to 1.7.0.
Thanks.
The text was updated successfully, but these errors were encountered: