I deployed my KMS V2 encryption plugin in KIND Cluster. I wanted to test if the API server calls the Decrypt method. So after creating multiple secrets with different DEK seed, I restarted the Kube API Server, expecting the api server to call Decrypt method of my plugin. But the Kube API Server did not call the Decrypt method and I suspect its getting the decrypted DEK Seed from somewhere even after restart and gets cached again.
How do I force the Kube API server to call DEK Seed after restart ?
Solutions I tried: (Which did not work)
- cachesize: -1 in EncryptionConfiguration
- Disabled and Enabled EncryptionConfiguration.
Note: Same scenario works fine in Redhat OpenShift
Cluster information:
Kubernetes version: v1.33.1
Installation method: Kind Cluster
Host OS: Mac