Managed Kubernetes
Latest
How to Verify if the ETCD Secrets Are Encrypted or Not?
Problem
How to verify if ETCD secrets are actually encrypted after configuring ETCD secret encryption?
Environment
Platform9 Managed Kubernetes - v5.2 and above
Kubernetes v1.20 and above
Docker or Containerd
Answer
ETCD secret encryption can be verified with the help of
etcdctlcommand line utility.ETCD secrets are stored at the path
/registry/secrets/$namespace/$secreton the master node.The below command can be used to verify if the particular ETCD secret is encrypted or not.
# ETCDCTL_API=3 etcdctl get /registry/secrets/default/secret1 [...] | hexdump -C
# /opt/pf9/pf9-kube/bin/etcdctl --cacert=/etc/pf9/kube.d/certs/etcdctl/etcd/ca.crt --cert=/etc/pf9/kube.d/certs/etcdctl/etcd/request.crt --key=/etc/pf9/kube.d/certs/etcdctl/etcd/request.key get /registry/secrets/default/secret1 [...] | hexdump -C
Last updated on
Was this page helpful?
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered by
