Bläddra i källkod

Merge pull request #5539 from mitake/auth-v3-get-role

*: support getting role in auth v3
Xiang Li 9 år sedan
förälder
incheckning
b3fee0abff

+ 27 - 0
auth/store.go

@@ -82,6 +82,9 @@ type AuthStore interface {
 	// RoleGrant grants a permission to a role
 	RoleGrant(r *pb.AuthRoleGrantRequest) (*pb.AuthRoleGrantResponse, error)
 
+	// RoleGet gets the detailed information of a role
+	RoleGet(r *pb.AuthRoleGetRequest) (*pb.AuthRoleGetResponse, error)
+
 	// UsernameFromToken gets a username from the given Token
 	UsernameFromToken(token string) (string, bool)
 
@@ -321,6 +324,30 @@ func (as *authStore) UserGet(r *pb.AuthUserGetRequest) (*pb.AuthUserGetResponse,
 	return &resp, nil
 }
 
+func (as *authStore) RoleGet(r *pb.AuthRoleGetRequest) (*pb.AuthRoleGetResponse, error) {
+	tx := as.be.BatchTx()
+	tx.Lock()
+	defer tx.Unlock()
+
+	_, vs := tx.UnsafeRange(authRolesBucketName, []byte(r.Role), nil, 0)
+	if len(vs) != 1 {
+		return nil, ErrRoleNotFound
+	}
+
+	role := &authpb.Role{}
+	err := role.Unmarshal(vs[0])
+	if err != nil {
+		return nil, err
+	}
+
+	var resp pb.AuthRoleGetResponse
+	for _, perm := range role.KeyPermission {
+		resp.Perm = append(resp.Perm, perm)
+	}
+
+	return &resp, nil
+}
+
 func (as *authStore) RoleAdd(r *pb.AuthRoleAddRequest) (*pb.AuthRoleAddResponse, error) {
 	tx := as.be.BatchTx()
 	tx.Lock()

+ 9 - 0
clientv3/auth.go

@@ -36,6 +36,7 @@ type (
 	AuthUserGetResponse            pb.AuthUserGetResponse
 	AuthRoleAddResponse            pb.AuthRoleAddResponse
 	AuthRoleGrantResponse          pb.AuthRoleGrantResponse
+	AuthRoleGetResponse            pb.AuthRoleGetResponse
 
 	PermissionType authpb.Permission_Type
 )
@@ -73,6 +74,9 @@ type Auth interface {
 
 	// RoleGrant grants a permission to a role.
 	RoleGrant(ctx context.Context, name string, key string, permType PermissionType) (*AuthRoleGrantResponse, error)
+
+	// RoleGet gets a detailed information of a role.
+	RoleGet(ctx context.Context, role string) (*AuthRoleGetResponse, error)
 }
 
 type auth struct {
@@ -140,6 +144,11 @@ func (auth *auth) RoleGrant(ctx context.Context, name string, key string, permTy
 	return (*AuthRoleGrantResponse)(resp), rpctypes.Error(err)
 }
 
+func (auth *auth) RoleGet(ctx context.Context, role string) (*AuthRoleGetResponse, error) {
+	resp, err := auth.remote.RoleGet(ctx, &pb.AuthRoleGetRequest{Role: role})
+	return (*AuthRoleGetResponse)(resp), rpctypes.Error(err)
+}
+
 func StrToPermissionType(s string) (PermissionType, error) {
 	val, ok := authpb.Permission_Type_value[strings.ToUpper(s)]
 	if ok {

+ 35 - 0
etcdctl/ctlv3/command/role_command.go

@@ -31,6 +31,7 @@ func NewRoleCommand() *cobra.Command {
 
 	ac.AddCommand(newRoleAddCommand())
 	ac.AddCommand(newRoleGrantCommand())
+	ac.AddCommand(newRoleGetCommand())
 
 	return ac
 }
@@ -51,6 +52,14 @@ func newRoleGrantCommand() *cobra.Command {
 	}
 }
 
+func newRoleGetCommand() *cobra.Command {
+	return &cobra.Command{
+		Use:   "get <role name>",
+		Short: "get detailed information of a role",
+		Run:   roleGetCommandFunc,
+	}
+}
+
 // roleAddCommandFunc executes the "role add" command.
 func roleAddCommandFunc(cmd *cobra.Command, args []string) {
 	if len(args) != 1 {
@@ -83,3 +92,29 @@ func roleGrantCommandFunc(cmd *cobra.Command, args []string) {
 
 	fmt.Printf("Role %s updated\n", args[0])
 }
+
+// roleGetCommandFunc executes the "role get" command.
+func roleGetCommandFunc(cmd *cobra.Command, args []string) {
+	if len(args) != 1 {
+		ExitWithError(ExitBadArgs, fmt.Errorf("role get command requires role name as its argument."))
+	}
+
+	resp, err := mustClientFromCmd(cmd).Auth.RoleGet(context.TODO(), args[0])
+	if err != nil {
+		ExitWithError(ExitError, err)
+	}
+
+	fmt.Printf("Role %s\n", args[0])
+	fmt.Println("KV Read:")
+	for _, perm := range resp.Perm {
+		if perm.PermType == clientv3.PermRead || perm.PermType == clientv3.PermReadWrite {
+			fmt.Printf("\t%s\n", string(perm.Key))
+		}
+	}
+	fmt.Println("KV Write:")
+	for _, perm := range resp.Perm {
+		if perm.PermType == clientv3.PermWrite || perm.PermType == clientv3.PermReadWrite {
+			fmt.Printf("\t%s\n", string(perm.Key))
+		}
+	}
+}

+ 5 - 2
etcdserver/api/v3rpc/auth.go

@@ -66,8 +66,11 @@ func (as *AuthServer) RoleDelete(ctx context.Context, r *pb.AuthRoleDeleteReques
 }
 
 func (as *AuthServer) RoleGet(ctx context.Context, r *pb.AuthRoleGetRequest) (*pb.AuthRoleGetResponse, error) {
-	plog.Info("not implemented yet")
-	return nil, nil
+	resp, err := as.authenticator.RoleGet(ctx, r)
+	if err != nil {
+		return nil, togRPCError(err)
+	}
+	return resp, nil
 }
 
 func (as *AuthServer) RoleRevoke(ctx context.Context, r *pb.AuthRoleRevokeRequest) (*pb.AuthRoleRevokeResponse, error) {

+ 7 - 0
etcdserver/apply.go

@@ -64,6 +64,7 @@ type applierV3 interface {
 	UserGet(ua *pb.AuthUserGetRequest) (*pb.AuthUserGetResponse, error)
 	RoleAdd(ua *pb.AuthRoleAddRequest) (*pb.AuthRoleAddResponse, error)
 	RoleGrant(ua *pb.AuthRoleGrantRequest) (*pb.AuthRoleGrantResponse, error)
+	RoleGet(ua *pb.AuthRoleGetRequest) (*pb.AuthRoleGetResponse, error)
 }
 
 type applierV3backend struct {
@@ -117,6 +118,8 @@ func (s *EtcdServer) applyV3Request(r *pb.InternalRaftRequest) *applyResult {
 		ar.resp, ar.err = s.applyV3.RoleAdd(r.AuthRoleAdd)
 	case r.AuthRoleGrant != nil:
 		ar.resp, ar.err = s.applyV3.RoleGrant(r.AuthRoleGrant)
+	case r.AuthRoleGet != nil:
+		ar.resp, ar.err = s.applyV3.RoleGet(r.AuthRoleGet)
 	default:
 		panic("not implemented")
 	}
@@ -547,6 +550,10 @@ func (a *applierV3backend) RoleGrant(r *pb.AuthRoleGrantRequest) (*pb.AuthRoleGr
 	return a.s.AuthStore().RoleGrant(r)
 }
 
+func (a *applierV3backend) RoleGet(r *pb.AuthRoleGetRequest) (*pb.AuthRoleGetResponse, error) {
+	return a.s.AuthStore().RoleGet(r)
+}
+
 type quotaApplierV3 struct {
 	applierV3
 	q Quota

+ 91 - 40
etcdserver/etcdserverpb/raft_internal.pb.go

@@ -54,6 +54,7 @@ type InternalRaftRequest struct {
 	AuthRoleGrant          *AuthRoleGrantRequest          `protobuf:"bytes,1017,opt,name=auth_role_grant,json=authRoleGrant" json:"auth_role_grant,omitempty"`
 	Authenticate           *AuthenticateRequest           `protobuf:"bytes,1018,opt,name=authenticate" json:"authenticate,omitempty"`
 	AuthUserGet            *AuthUserGetRequest            `protobuf:"bytes,1019,opt,name=auth_user_get,json=authUserGet" json:"auth_user_get,omitempty"`
+	AuthRoleGet            *AuthRoleGetRequest            `protobuf:"bytes,1020,opt,name=auth_role_get,json=authRoleGet" json:"auth_role_get,omitempty"`
 }
 
 func (m *InternalRaftRequest) Reset()                    { *m = InternalRaftRequest{} }
@@ -345,6 +346,18 @@ func (m *InternalRaftRequest) MarshalTo(data []byte) (int, error) {
 		}
 		i += n20
 	}
+	if m.AuthRoleGet != nil {
+		data[i] = 0xe2
+		i++
+		data[i] = 0x3f
+		i++
+		i = encodeVarintRaftInternal(data, i, uint64(m.AuthRoleGet.Size()))
+		n21, err := m.AuthRoleGet.MarshalTo(data[i:])
+		if err != nil {
+			return 0, err
+		}
+		i += n21
+	}
 	return i, nil
 }
 
@@ -492,6 +505,10 @@ func (m *InternalRaftRequest) Size() (n int) {
 		l = m.AuthUserGet.Size()
 		n += 2 + l + sovRaftInternal(uint64(l))
 	}
+	if m.AuthRoleGet != nil {
+		l = m.AuthRoleGet.Size()
+		n += 2 + l + sovRaftInternal(uint64(l))
+	}
 	return n
 }
 
@@ -1320,6 +1337,39 @@ func (m *InternalRaftRequest) Unmarshal(data []byte) error {
 				return err
 			}
 			iNdEx = postIndex
+		case 1020:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field AuthRoleGet", wireType)
+			}
+			var msglen int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowRaftInternal
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := data[iNdEx]
+				iNdEx++
+				msglen |= (int(b) & 0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			if msglen < 0 {
+				return ErrInvalidLengthRaftInternal
+			}
+			postIndex := iNdEx + msglen
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			if m.AuthRoleGet == nil {
+				m.AuthRoleGet = &AuthRoleGetRequest{}
+			}
+			if err := m.AuthRoleGet.Unmarshal(data[iNdEx:postIndex]); err != nil {
+				return err
+			}
+			iNdEx = postIndex
 		default:
 			iNdEx = preIndex
 			skippy, err := skipRaftInternal(data[iNdEx:])
@@ -1497,44 +1547,45 @@ var (
 )
 
 var fileDescriptorRaftInternal = []byte{
-	// 617 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x94, 0xcd, 0x6f, 0xd3, 0x30,
-	0x18, 0xc6, 0x59, 0xf7, 0x59, 0xb7, 0xdd, 0x2a, 0x0f, 0x90, 0x29, 0xd2, 0x18, 0x45, 0x48, 0x08,
-	0xa4, 0x82, 0xb6, 0x23, 0x07, 0x28, 0x6d, 0x19, 0x13, 0x08, 0x4d, 0x11, 0x9c, 0x23, 0x37, 0x79,
-	0x49, 0x2b, 0xd2, 0x24, 0x38, 0x6e, 0x19, 0x7f, 0x1f, 0x97, 0x1d, 0xf9, 0x13, 0x80, 0x13, 0x77,
-	0xbe, 0xe1, 0x82, 0x3f, 0x12, 0xa7, 0x59, 0x5d, 0x0e, 0x91, 0x92, 0xc7, 0xcf, 0xfb, 0x7b, 0x5f,
-	0xdb, 0x8f, 0x82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0x65, 0xe1,
-	0xcb, 0x60, 0xdb, 0xb4, 0x24, 0xe3, 0x00, 0x5d, 0x29, 0x78, 0xde, 0x48, 0xc6, 0xd1, 0x4d, 0x68,
-	0x9a, 0xbe, 0x8d, 0x99, 0x4f, 0x7e, 0x68, 0xf0, 0x1d, 0x3b, 0xb8, 0xa7, 0xdc, 0x27, 0x99, 0x39,
-	0x6f, 0x70, 0x99, 0x5a, 0x97, 0xf1, 0x53, 0xb4, 0x53, 0x34, 0xd2, 0xd1, 0xfb, 0xa9, 0xf1, 0x6d,
-	0x3b, 0xbe, 0x14, 0xbf, 0x06, 0x9d, 0x57, 0xcd, 0x61, 0xb2, 0x38, 0x04, 0x75, 0x98, 0xbf, 0x96,
-	0x1e, 0xa6, 0x23, 0x2c, 0xe7, 0x0f, 0x33, 0xd3, 0xcc, 0x4c, 0x0a, 0xa3, 0x67, 0xfa, 0xbd, 0x74,
-	0x26, 0x59, 0xb4, 0x38, 0x93, 0x51, 0xf1, 0x63, 0x1d, 0x13, 0x88, 0xf8, 0xd8, 0xa3, 0xe2, 0x56,
-	0xfe, 0x68, 0xd2, 0xf5, 0x45, 0x52, 0x6e, 0xc9, 0x41, 0xa5, 0xba, 0x72, 0x50, 0x02, 0xe0, 0xe4,
-	0xef, 0x7f, 0x83, 0x72, 0x04, 0x7c, 0x21, 0x28, 0x42, 0x6b, 0xef, 0xa0, 0xc6, 0x60, 0x92, 0xf0,
-	0x77, 0x0e, 0xa4, 0x49, 0x1c, 0xa5, 0xf0, 0xa8, 0x79, 0xf6, 0x69, 0xef, 0xc2, 0xd9, 0xe7, 0xbd,
-	0x95, 0x0f, 0xe2, 0xf9, 0x28, 0x9e, 0xe1, 0x86, 0xfa, 0x59, 0x1f, 0xfe, 0x0b, 0x00, 0x00, 0xff,
-	0xff, 0x8a, 0x9d, 0xc9, 0xf9, 0x04, 0x06, 0x00, 0x00,
+	// 630 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00,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 0x34, 0xe9, 0xfa, 0x32, 0x29, 0xb5, 0xa4, 0xa0, 0x5c, 0x5c, 0x7e, 0x51, 0x3c,
+	0xe0, 0xe4, 0xef, 0xb9, 0x8b, 0x72, 0x04, 0x7c, 0x69, 0x51, 0x84, 0x96, 0x1f, 0x91, 0xc4, 0xfc,
+	0x3b, 0x77, 0x44, 0x8b, 0x98, 0x44, 0x6b, 0xef, 0xa0, 0xc6, 0x60, 0x12, 0xf1, 0x77, 0x16, 0xc4,
+	0x51, 0x18, 0xc4, 0xf0, 0xa8, 0x79, 0xf6, 0x69, 0xef, 0xc2, 0xd9, 0xe7, 0xbd, 0xd2, 0x07, 0xf1,
+	0x7c, 0x14, 0xcf, 0xb0, 0xa2, 0xfe, 0xf9, 0x87, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x96,
+	0xbf, 0x32, 0x4b, 0x06, 0x00, 0x00,
 }

+ 1 - 0
etcdserver/etcdserverpb/raft_internal.proto

@@ -45,6 +45,7 @@ message InternalRaftRequest {
   AuthRoleGrantRequest auth_role_grant = 1017;
   AuthenticateRequest authenticate = 1018;
   AuthUserGetRequest auth_user_get = 1019;
+  AuthRoleGetRequest auth_role_get = 1020;
 }
 
 message EmptyResponse {

+ 262 - 164
etcdserver/etcdserverpb/rpc.pb.go

@@ -1611,6 +1611,7 @@ func (*AuthRoleAddRequest) ProtoMessage()               {}
 func (*AuthRoleAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{53} }
 
 type AuthRoleGetRequest struct {
+	Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
 }
 
 func (m *AuthRoleGetRequest) Reset()                    { *m = AuthRoleGetRequest{} }
@@ -1819,7 +1820,8 @@ func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader {
 }
 
 type AuthRoleGetResponse struct {
-	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
+	Header *ResponseHeader      `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
+	Perm   []*authpb.Permission `protobuf:"bytes,2,rep,name=perm" json:"perm,omitempty"`
 }
 
 func (m *AuthRoleGetResponse) Reset()                    { *m = AuthRoleGetResponse{} }
@@ -1834,6 +1836,13 @@ func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader {
 	return nil
 }
 
+func (m *AuthRoleGetResponse) GetPerm() []*authpb.Permission {
+	if m != nil {
+		return m.Perm
+	}
+	return nil
+}
+
 type AuthRoleDeleteResponse struct {
 	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
 }
@@ -5313,6 +5322,12 @@ func (m *AuthRoleGetRequest) MarshalTo(data []byte) (int, error) {
 	_ = i
 	var l int
 	_ = l
+	if len(m.Role) > 0 {
+		data[i] = 0xa
+		i++
+		i = encodeVarintRpc(data, i, uint64(len(m.Role)))
+		i += copy(data[i:], m.Role)
+	}
 	return i, nil
 }
 
@@ -5712,6 +5727,18 @@ func (m *AuthRoleGetResponse) MarshalTo(data []byte) (int, error) {
 		}
 		i += n43
 	}
+	if len(m.Perm) > 0 {
+		for _, msg := range m.Perm {
+			data[i] = 0x12
+			i++
+			i = encodeVarintRpc(data, i, uint64(msg.Size()))
+			n, err := msg.MarshalTo(data[i:])
+			if err != nil {
+				return 0, err
+			}
+			i += n
+		}
+	}
 	return i, nil
 }
 
@@ -6646,6 +6673,10 @@ func (m *AuthRoleAddRequest) Size() (n int) {
 func (m *AuthRoleGetRequest) Size() (n int) {
 	var l int
 	_ = l
+	l = len(m.Role)
+	if l > 0 {
+		n += 1 + l + sovRpc(uint64(l))
+	}
 	return n
 }
 
@@ -6792,6 +6823,12 @@ func (m *AuthRoleGetResponse) Size() (n int) {
 		l = m.Header.Size()
 		n += 1 + l + sovRpc(uint64(l))
 	}
+	if len(m.Perm) > 0 {
+		for _, e := range m.Perm {
+			l = e.Size()
+			n += 1 + l + sovRpc(uint64(l))
+		}
+	}
 	return n
 }
 
@@ -12501,6 +12538,35 @@ func (m *AuthRoleGetRequest) Unmarshal(data []byte) error {
 			return fmt.Errorf("proto: AuthRoleGetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 		}
 		switch fieldNum {
+		case 1:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
+			}
+			var stringLen uint64
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowRpc
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := data[iNdEx]
+				iNdEx++
+				stringLen |= (uint64(b) & 0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			intStringLen := int(stringLen)
+			if intStringLen < 0 {
+				return ErrInvalidLengthRpc
+			}
+			postIndex := iNdEx + intStringLen
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.Role = string(data[iNdEx:postIndex])
+			iNdEx = postIndex
 		default:
 			iNdEx = preIndex
 			skippy, err := skipRpc(data[iNdEx:])
@@ -13684,6 +13750,37 @@ func (m *AuthRoleGetResponse) Unmarshal(data []byte) error {
 				return err
 			}
 			iNdEx = postIndex
+		case 2:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType)
+			}
+			var msglen int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowRpc
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := data[iNdEx]
+				iNdEx++
+				msglen |= (int(b) & 0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			if msglen < 0 {
+				return ErrInvalidLengthRpc
+			}
+			postIndex := iNdEx + msglen
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.Perm = append(m.Perm, &authpb.Permission{})
+			if err := m.Perm[len(m.Perm)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
+				return err
+			}
+			iNdEx = postIndex
 		default:
 			iNdEx = preIndex
 			skippy, err := skipRpc(data[iNdEx:])
@@ -14060,167 +14157,168 @@ var (
 )
 
 var fileDescriptorRpc = []byte{
-	// 2584 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x1a, 0xcb, 0x72, 0x1b, 0xc7,
-	0x91, 0x78, 0x10, 0x20, 0x1a, 0x20, 0x44, 0x0d, 0x29, 0x99, 0x82, 0x1e, 0x96, 0x57, 0x92, 0xad,
-	0xc4, 0x0e, 0x15, 0x33, 0xce, 0x21, 0x15, 0x97, 0x52, 0x20, 0x01, 0x4b, 0x34, 0x29, 0x92, 0x5e,
-	0x82, 0x54, 0x7c, 0x62, 0x2d, 0x81, 0x11, 0xb9, 0x25, 0xbc, 0xbc, 0xbb, 0xa0, 0x44, 0x55, 0xe5,
-	0x92, 0xaa, 0x7c, 0x81, 0x73, 0x4a, 0xe5, 0x07, 0xf2, 0x01, 0xf9, 0x87, 0x54, 0x2e, 0xc9, 0x17,
-	0x24, 0xa9, 0x9c, 0x52, 0xb9, 0xe4, 0x9e, 0x5c, 0xd2, 0xf3, 0xda, 0x9d, 0x1d, 0xec, 0x42, 0x72,
-	0x96, 0x39, 0x88, 0xdc, 0xe9, 0xe9, 0xee, 0xe9, 0xd7, 0xf4, 0x74, 0x37, 0x05, 0x15, 0x6f, 0xdc,
-	0x5d, 0x1b, 0x7b, 0xa3, 0x60, 0x44, 0x6a, 0x34, 0xe8, 0xf6, 0x7c, 0xea, 0x9d, 0x53, 0x6f, 0x7c,
-	0xd2, 0x58, 0x39, 0x1d, 0x9d, 0x8e, 0xf8, 0xc6, 0x23, 0xf6, 0x25, 0x70, 0x1a, 0x37, 0x18, 0xce,
-	0xa3, 0xc1, 0x79, 0xb7, 0xcb, 0x7f, 0x8c, 0x4f, 0x1e, 0xbd, 0x3c, 0x97, 0x5b, 0x37, 0xf9, 0x96,
-	0x33, 0x09, 0xce, 0xf8, 0x0f, 0xdc, 0x62, 0xbf, 0xc4, 0xa6, 0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0x6c, 0x92, 0xfa, 0xd3, 0x85, 0xad, 0xf0, 0x58,
-	0x58, 0xa0, 0x26, 0x79, 0xcc, 0x6c, 0x84, 0x1b, 0xf7, 0x66, 0xe2, 0x98, 0x22, 0xa7, 0x7b, 0x6c,
-	0xaa, 0x1b, 0x4e, 0x13, 0xd9, 0xf4, 0xd8, 0x46, 0xed, 0x0f, 0x7f, 0xbf, 0x93, 0xfb, 0x33, 0xfe,
-	0xfb, 0x1b, 0xfe, 0x3b, 0x29, 0xf1, 0xff, 0xdb, 0xf5, 0xa3, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff,
-	0xf5, 0x43, 0xe6, 0x66, 0x44, 0x26, 0x00, 0x00,
+	// 2599 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x5a, 0xcd, 0x72, 0x1b, 0xc7,
+	0x11, 0x26, 0x7e, 0x08, 0x10, 0x0d, 0x10, 0xa2, 0x86, 0x94, 0x4c, 0x41, 0x3f, 0x96, 0x57, 0x92,
+	0xad, 0xc4, 0x0e, 0x15, 0x33, 0xce, 0x21, 0x15, 0x97, 0x52, 0x20, 0x01, 0x4b, 0x34, 0x29, 0x52,
+	0x5e, 0x82, 0x54, 0x7c, 0x62, 0x2d, 0x80, 0x11, 0xb9, 0x25, 0xfc, 0x79, 0x77, 0x41, 0x89, 0xaa,
+	0xca, 0x25, 0x55, 0x79, 0x02, 0xe7, 0x94, 0xca, 0x0b, 0xe4, 0x01, 0xf2, 0x0e, 0xa9, 0x5c, 0x92,
+	0x27, 0x48, 0x52, 0x39, 0xa5, 0x72, 0xc9, 0x3d, 0xb9, 0xa4, 0xe7, 0x6f, 0x77, 0x76, 0xb0, 0x0b,
+	0xc9, 0x59, 0xe5, 0x20, 0x72, 0xa7, 0xa7, 0xfb, 0x9b, 0xee, 0x9e, 0x9e, 0x9e, 0xee, 0xa1, 0xa0,
+	0xe2, 0x4d,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xf4, 0x37, 0x40, 0x66, 0x8b, 0x50, 0xf2, 0x71,
+	0xb2, 0x74, 0x62, 0xaf, 0xd8, 0xf8, 0xe4, 0xed, 0x98, 0xc3, 0x25, 0x8f, 0xa1, 0x12, 0xd6, 0xa7,
+	0xc4, 0x4a, 0xb1, 0x5f, 0xbf, 0x69, 0xee, 0xcc, 0xe5, 0x31, 0xbd, 0x24, 0xef, 0x9a, 0x14, 0xa1,
+	0xf8, 0x75, 0x73, 0x77, 0x3e, 0x93, 0xbe, 0xa5, 0xb2, 0x66, 0x4d, 0xda, 0xd2, 0x78, 0x73, 0x9a,
+	0xb4, 0xa5, 0x46, 0xc1, 0x1b, 0x21, 0xa6, 0x04, 0x49, 0xbc, 0x89, 0x4d, 0x43, 0x9c, 0x09, 0x92,
+	0xa8, 0x2a, 0x4d, 0x32, 0x7f, 0xa6, 0xdf, 0x4d, 0x32, 0x7f, 0xb6, 0xb0, 0x15, 0x3b, 0x16, 0x16,
+	0xa8, 0x49, 0x3b, 0x66, 0x36, 0xcc, 0x8d, 0x3b, 0x73, 0x79, 0x4c, 0x95, 0xd3, 0x77, 0x6c, 0xa6,
+	0x6b, 0x4e, 0x53, 0xd9, 0xdc, 0xb1, 0xad, 0xda, 0x1f, 0xfe, 0x7e, 0x2b, 0xf7, 0x67, 0xfc, 0xf7,
+	0x37, 0xfc, 0xd7, 0x2d, 0xf1, 0xff, 0x17, 0xf6, 0xa3, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x48,
+	0x31, 0xae, 0xd9, 0x80, 0x26, 0x00, 0x00,
 }

+ 3 - 0
etcdserver/etcdserverpb/rpc.proto

@@ -603,6 +603,7 @@ message AuthRoleAddRequest {
 }
 
 message AuthRoleGetRequest {
+  string role = 1;
 }
 
 message AuthRoleDeleteRequest {
@@ -664,6 +665,8 @@ message AuthRoleAddResponse {
 
 message AuthRoleGetResponse {
   ResponseHeader header = 1;
+
+  repeated authpb.Permission perm = 2;
 }
 
 message AuthRoleDeleteResponse {

+ 12 - 0
etcdserver/v3_server.go

@@ -66,6 +66,7 @@ type Authenticator interface {
 	UserGet(ctx context.Context, r *pb.AuthUserGetRequest) (*pb.AuthUserGetResponse, error)
 	RoleAdd(ctx context.Context, r *pb.AuthRoleAddRequest) (*pb.AuthRoleAddResponse, error)
 	RoleGrant(ctx context.Context, r *pb.AuthRoleGrantRequest) (*pb.AuthRoleGrantResponse, error)
+	RoleGet(ctx context.Context, r *pb.AuthRoleGetRequest) (*pb.AuthRoleGetResponse, error)
 }
 
 func (s *EtcdServer) Range(ctx context.Context, r *pb.RangeRequest) (*pb.RangeResponse, error) {
@@ -345,6 +346,17 @@ func (s *EtcdServer) RoleGrant(ctx context.Context, r *pb.AuthRoleGrantRequest)
 	return result.resp.(*pb.AuthRoleGrantResponse), nil
 }
 
+func (s *EtcdServer) RoleGet(ctx context.Context, r *pb.AuthRoleGetRequest) (*pb.AuthRoleGetResponse, error) {
+	result, err := s.processInternalRaftRequest(ctx, pb.InternalRaftRequest{AuthRoleGet: r})
+	if err != nil {
+		return nil, err
+	}
+	if result.err != nil {
+		return nil, result.err
+	}
+	return result.resp.(*pb.AuthRoleGetResponse), nil
+}
+
 func (s *EtcdServer) usernameFromCtx(ctx context.Context) (string, error) {
 	md, mdexist := metadata.FromContext(ctx)
 	if mdexist {