From a1616afc5df3a5b27a8977bd3edafc733026aec9 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Sun, 15 Nov 2015 17:58:09 -0800 Subject: [PATCH] auth: use canonical path for pre-defined guest role --- etcdserver/auth/auth.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etcdserver/auth/auth.go b/etcdserver/auth/auth.go index 3f42dfa2e..609ee7aeb 100644 --- a/etcdserver/auth/auth.go +++ b/etcdserver/auth/auth.go @@ -53,8 +53,8 @@ var rootRole = Role{ Role: RootRoleName, Permissions: Permissions{ KV: RWPermission{ - Read: []string{"*"}, - Write: []string{"*"}, + Read: []string{"/*"}, + Write: []string{"/*"}, }, }, } @@ -63,8 +63,8 @@ var guestRole = Role{ Role: GuestRoleName, Permissions: Permissions{ KV: RWPermission{ - Read: []string{"*"}, - Write: []string{"*"}, + Read: []string{"/*"}, + Write: []string{"/*"}, }, }, }