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
// storePermsPrefix is the internal prefix of the storage layer dedicated to storing user data.
52
+
// refer to https://github.com/etcd-io/etcd/blob/v3.5.21/server/etcdserver/api/v2auth/auth.go#L40
53
+
storePermsPrefix:="/2"
50
54
for_, n:=rangeevent.Node.Nodes {
51
-
ifn.Key!=storePrefix&&n.Nodes.Len() >0 {
55
+
ifn.Key==storePrefix {
56
+
continue
57
+
}
58
+
59
+
// For auth data, even after we remove all users and roles, the node
60
+
// "/2/roles" and "/2/users" are still present in the tree. We need
61
+
// to exclude such case. See an example below,
62
+
// Refer to https://github.com/etcd-io/etcd/discussions/20231#discussioncomment-13791940
0 commit comments