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
{{ message }}
Repository navigation
Restore recreates the embedded etcd data directory world accessible #4274
vcluster restore for the embedded etcd backing store moves the existing data directory aside and recreates it with os.MkdirAll(dir, 0777) (pkg/snapshot/restoreclient.go, backupFolder). The directory holds the restored etcd database, including every Secret of the virtual cluster. etcd creates and expects its data directory with mode 0700 and warns at startup when it finds anything looser.
What did you expect to happen?
The restored data directory created with 0700, like etcd creates it itself.
How can we reproduce it (as minimally and precisely as possible)?
Run a restore into a vCluster that uses the embedded etcd backing store and check the mode of /data/etcd in the control plane container afterwards. With the usual umask it is 0755 instead of 0700.
Activity