Kube-apiserver-controlplane is not running after changes made on to encrypt secret using Encrypting Confidential Data at Rest

Hi,
once after doing changes to /etc/kubernetes/manifests/kube-apiserver.yaml and adding EncryptionConfiguration
api server is getting this error and not running.

Followed this issue but no luck

0109 12:04:42.820629 1 reflector.go:569] storage/cacher.go:/secrets: failed to list *core.Secret: unable to transform key “/registry/secrets/default/my-secret”: no matching prefix found
E0109 12:04:42.820655 1 cacher.go:478] cacher (secrets): unexpected ListAndWatch error: failed to list *core.Secret: unable to transform key “/registry/secrets/default/my-secret”: no matching prefix found; reinitializing…

Hi @prasanna

Can you share your EncryptionConfiguration YAML?

Hi Santosh,
thanks for the response
please find logs,api-server yaml and encryptionconfiguration yaml files in below git link

Try setting the identity provider as the first under providers.
Order of providers matter here.

apiVersion: apiserver.config.k8s.io/v1
kind: EncryptionConfiguration
resources:
  - resources:
      - secrets
    providers:
      - identity: {}   # No encryption
      - aescbc:
      ...

Hi Santosh,
i tried this one but now data is not encrypting as the first provider is having no encryption.the data that is stored in etcd is not encrypted.