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
When I took this blob and put it into the KMSSecret object, the controller failed to decrypt it:
2020-11-23T05:49:46.954Z INFO controllers.KMSSecret fetching KMSSecret resources {"kmssecret": "kube-system/mysecret"}
2020-11-23T05:49:47.049Z ERROR controllers.KMSSecret failed to decrypt data {"kmssecret": "kube-system/mysecret", "secret_name": "mysecret", "error": "failed to yaml parse: failed to unmarshal: yaml: unmarshal errors:\n line 1: cannot unmarshal !!map into string"}
github.com/go-logr/zapr.(*zapLogger).Error
/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128
github.com/h3poteto/kms-secrets/controllers.(*KMSSecretReconciler).Reconcile
/workspace/controllers/kmssecret_controller.go:72
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:244
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:218
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:197
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155
k8s.io/apimachinery/pkg/util/wait.BackoffUntil
/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156
k8s.io/apimachinery/pkg/util/wait.JitterUntil
/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133
k8s.io/apimachinery/pkg/util/wait.Until
/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:90
2020-11-23T05:49:47.049Z ERROR controller Reconciler error {"reconcilerGroup": "secret.h3poteto.dev", "reconcilerKind": "KMSSecret", "controller": "kmssecret", "name": "mysecret", "namespace": "kube-system", "error": "failed to yaml parse: failed to unmarshal: yaml: unmarshal errors:\n line 1: cannot unmarshal !!map into string"}
After doing some testing, I found that virtually any secret that decrypts into anything that looks like YAML fails. For example, even encrypting "foo: bar" fails:
I would love to use this project - but we need it to be a little less concerned with the "final" contents of the secret data.... does this seem like an easy thing to fix?
The text was updated successfully, but these errors were encountered:
We are trying to work around argoproj-labs/argocd-notifications#107. To do that, I tried to encrypt a multi-line blob:
When I took this blob and put it into the
KMSSecret
object, the controller failed to decrypt it:After doing some testing, I found that virtually any secret that decrypts into anything that looks like YAML fails. For example, even encrypting
"foo: bar"
fails:I would love to use this project - but we need it to be a little less concerned with the "final" contents of the secret data.... does this seem like an easy thing to fix?
The text was updated successfully, but these errors were encountered: