We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5efc068 + 460eae2 commit f0a3147Copy full SHA for f0a3147
controllers/kustomization_decryptor.go
@@ -25,6 +25,7 @@ import (
25
"os/exec"
26
27
securejoin "github.com/cyphar/filepath-securejoin"
28
+ "go.mozilla.org/sops/v3"
29
"go.mozilla.org/sops/v3/aes"
30
"go.mozilla.org/sops/v3/cmd/sops/common"
31
"go.mozilla.org/sops/v3/cmd/sops/formats"
@@ -87,6 +88,9 @@ func (kd *KustomizeDecryptor) Decrypt(res *resource.Resource) (*resource.Resourc
87
88
},
89
)
90
if err != nil {
91
+ if userErr, ok := err.(sops.UserError); ok {
92
+ err = fmt.Errorf(userErr.UserError())
93
+ }
94
return nil, fmt.Errorf("GetDataKey: %w", err)
95
}
96
0 commit comments