Secret encryption #3092
Replies: 4 comments
-
Hi, @kron4eg thank you for your time. I have a few questions thanks in advance for your reply. 1. I understand that to enable encryption just add to kubeone.yaml?
and run
Similarly with the exclusion of encryption
2. The KubeOne will automatically generate a configuration similar to this?
3. Key rotation can also be enabled, just ?
- How do I switch off the rotation after switching on? 4. Backups. Important. If everything above is correct then ? - Is there any way to check if the secrets are encrypted? E.g. log in to the master plane and check with the command via SSH? |
Beta Was this translation helpful? Give feedback.
-
Hi @kron4eg However, for now, I would like to report an error.When I run a new installation of KubeOne with the configuration. kubeone.yaml
Everything works. However, when I change
and run
I have an error
|
Beta Was this translation helpful? Give feedback.
-
How do I check that the secrets are encrypted?I'll add it here, maybe someone will find it useful. kubectl create namespace test
kubectl create secret generic --namespace test test --from-literal=key=value
kubectl get pods --namespace kube-system --selector component=etcd
kubectl exec --stdin --tty --namespace kube-system <NAME> -- sh
export ETCDCTL_API=3
export ETCDCTL_CACERT=/etc/kubernetes/pki/etcd/ca.crt
export ETCDCTL_CERT=/etc/kubernetes/pki/etcd/healthcheck-client.crt
export ETCDCTL_KEY=/etc/kubernetes/pki/etcd/healthcheck-client.key
etcdctl get /registry/secrets/test/test # Verify the stored Secret is prefixed with k8s:enc:aescbc:v1:
kubectl delete namespace test |
Beta Was this translation helpful? Give feedback.
-
Hi,
With reference to:
We have included in kubeone.yaml
and run
How can we verify whether data is encrypted?
Beta Was this translation helpful? Give feedback.
All reactions