From a0d0455ae5c34dfac9070a4977ade52b40494ca7 Mon Sep 17 00:00:00 2001 From: Vivek Patani Date: Wed, 17 Aug 2022 21:42:36 -0700 Subject: [PATCH] server/auth: refresh cache on each NewAuthStore - permissions were incorrectly loaded on restarts. - https://github.com/etcd-io/etcd/issues/14355 --- server/auth/store.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/auth/store.go b/server/auth/store.go index 370629c29a28..9cf5ca9c94db 100644 --- a/server/auth/store.go +++ b/server/auth/store.go @@ -968,6 +968,8 @@ func NewAuthStore(lg *zap.Logger, be AuthBackend, tp TokenProvider, bcryptCost i tx.Unlock() be.ForceCommit() + as.refreshRangePermCache(tx) + return as }