mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Add handling of AuthStatusRequest.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
This commit is contained in:
parent
c65c1ea559
commit
83f97c1f46
@ -64,6 +64,7 @@ type applierV3 interface {
|
||||
|
||||
AuthEnable() (*pb.AuthEnableResponse, error)
|
||||
AuthDisable() (*pb.AuthDisableResponse, error)
|
||||
AuthStatus() (*pb.AuthStatusResponse, error)
|
||||
|
||||
UserAdd(ua *pb.AuthUserAddRequest) (*pb.AuthUserAddResponse, error)
|
||||
UserDelete(ua *pb.AuthUserDeleteRequest) (*pb.AuthUserDeleteResponse, error)
|
||||
@ -143,6 +144,8 @@ func (a *applierV3backend) Apply(r *pb.InternalRaftRequest) *applyResult {
|
||||
ar.resp, ar.err = a.s.applyV3.AuthEnable()
|
||||
case r.AuthDisable != nil:
|
||||
ar.resp, ar.err = a.s.applyV3.AuthDisable()
|
||||
case r.AuthStatus != nil:
|
||||
ar.resp, ar.err = a.s.applyV3.AuthStatus()
|
||||
case r.AuthUserAdd != nil:
|
||||
ar.resp, ar.err = a.s.applyV3.UserAdd(r.AuthUserAdd)
|
||||
case r.AuthUserDelete != nil:
|
||||
@ -719,6 +722,12 @@ func (a *applierV3backend) AuthDisable() (*pb.AuthDisableResponse, error) {
|
||||
return &pb.AuthDisableResponse{Header: newHeader(a.s)}, nil
|
||||
}
|
||||
|
||||
func (a *applierV3backend) AuthStatus() (*pb.AuthStatusResponse, error) {
|
||||
enabled := a.s.AuthStore().IsAuthEnabled()
|
||||
authRevision := a.s.AuthStore().Revision()
|
||||
return &pb.AuthStatusResponse{Header: newHeader(a.s), Enabled: enabled, AuthRevision: authRevision}, nil
|
||||
}
|
||||
|
||||
func (a *applierV3backend) Authenticate(r *pb.InternalAuthenticateRequest) (*pb.AuthenticateResponse, error) {
|
||||
ctx := context.WithValue(context.WithValue(a.s.ctx, auth.AuthenticateParamIndex{}, a.s.consistIndex.ConsistentIndex()), auth.AuthenticateParamSimpleTokenPrefix{}, r.SimpleToken)
|
||||
resp, err := a.s.AuthStore().Authenticate(ctx, r.Name, r.Password)
|
||||
@ -994,7 +1003,7 @@ func mkGteRange(rangeEnd []byte) []byte {
|
||||
}
|
||||
|
||||
func noSideEffect(r *pb.InternalRaftRequest) bool {
|
||||
return r.Range != nil || r.AuthUserGet != nil || r.AuthRoleGet != nil
|
||||
return r.Range != nil || r.AuthUserGet != nil || r.AuthRoleGet != nil || r.AuthStatus != nil
|
||||
}
|
||||
|
||||
func removeNeedlessRangeReqs(txn *pb.TxnRequest) {
|
||||
|
@ -227,6 +227,8 @@ func needAdminPermission(r *pb.InternalRaftRequest) bool {
|
||||
return true
|
||||
case r.AuthDisable != nil:
|
||||
return true
|
||||
case r.AuthStatus != nil:
|
||||
return true
|
||||
case r.AuthUserAdd != nil:
|
||||
return true
|
||||
case r.AuthUserDelete != nil:
|
||||
|
@ -79,6 +79,7 @@ It has these top-level messages:
|
||||
StatusResponse
|
||||
AuthEnableRequest
|
||||
AuthDisableRequest
|
||||
AuthStatusRequest
|
||||
AuthenticateRequest
|
||||
AuthUserAddRequest
|
||||
AuthUserGetRequest
|
||||
@ -95,6 +96,7 @@ It has these top-level messages:
|
||||
AuthRoleRevokePermissionRequest
|
||||
AuthEnableResponse
|
||||
AuthDisableResponse
|
||||
AuthStatusResponse
|
||||
AuthenticateResponse
|
||||
AuthUserAddResponse
|
||||
AuthUserGetResponse
|
||||
|
@ -50,6 +50,7 @@ type InternalRaftRequest struct {
|
||||
LeaseCheckpoint *LeaseCheckpointRequest `protobuf:"bytes,11,opt,name=lease_checkpoint,json=leaseCheckpoint" json:"lease_checkpoint,omitempty"`
|
||||
AuthEnable *AuthEnableRequest `protobuf:"bytes,1000,opt,name=auth_enable,json=authEnable" json:"auth_enable,omitempty"`
|
||||
AuthDisable *AuthDisableRequest `protobuf:"bytes,1011,opt,name=auth_disable,json=authDisable" json:"auth_disable,omitempty"`
|
||||
AuthStatus *AuthStatusRequest `protobuf:"bytes,1013,opt,name=auth_status,json=authStatus" json:"auth_status,omitempty"`
|
||||
Authenticate *InternalAuthenticateRequest `protobuf:"bytes,1012,opt,name=authenticate" json:"authenticate,omitempty"`
|
||||
AuthUserAdd *AuthUserAddRequest `protobuf:"bytes,1100,opt,name=auth_user_add,json=authUserAdd" json:"auth_user_add,omitempty"`
|
||||
AuthUserDelete *AuthUserDeleteRequest `protobuf:"bytes,1101,opt,name=auth_user_delete,json=authUserDelete" json:"auth_user_delete,omitempty"`
|
||||
@ -304,17 +305,29 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
}
|
||||
i += n14
|
||||
}
|
||||
if m.AuthStatus != nil {
|
||||
dAtA[i] = 0xaa
|
||||
i++
|
||||
dAtA[i] = 0x3f
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthStatus.Size()))
|
||||
n15, err := m.AuthStatus.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n15
|
||||
}
|
||||
if m.AuthUserAdd != nil {
|
||||
dAtA[i] = 0xe2
|
||||
i++
|
||||
dAtA[i] = 0x44
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserAdd.Size()))
|
||||
n15, err := m.AuthUserAdd.MarshalTo(dAtA[i:])
|
||||
n16, err := m.AuthUserAdd.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n15
|
||||
i += n16
|
||||
}
|
||||
if m.AuthUserDelete != nil {
|
||||
dAtA[i] = 0xea
|
||||
@ -322,11 +335,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x44
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserDelete.Size()))
|
||||
n16, err := m.AuthUserDelete.MarshalTo(dAtA[i:])
|
||||
n17, err := m.AuthUserDelete.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n16
|
||||
i += n17
|
||||
}
|
||||
if m.AuthUserGet != nil {
|
||||
dAtA[i] = 0xf2
|
||||
@ -334,11 +347,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x44
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserGet.Size()))
|
||||
n17, err := m.AuthUserGet.MarshalTo(dAtA[i:])
|
||||
n18, err := m.AuthUserGet.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n17
|
||||
i += n18
|
||||
}
|
||||
if m.AuthUserChangePassword != nil {
|
||||
dAtA[i] = 0xfa
|
||||
@ -346,11 +359,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x44
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserChangePassword.Size()))
|
||||
n18, err := m.AuthUserChangePassword.MarshalTo(dAtA[i:])
|
||||
n19, err := m.AuthUserChangePassword.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n18
|
||||
i += n19
|
||||
}
|
||||
if m.AuthUserGrantRole != nil {
|
||||
dAtA[i] = 0x82
|
||||
@ -358,11 +371,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x45
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserGrantRole.Size()))
|
||||
n19, err := m.AuthUserGrantRole.MarshalTo(dAtA[i:])
|
||||
n20, err := m.AuthUserGrantRole.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n19
|
||||
i += n20
|
||||
}
|
||||
if m.AuthUserRevokeRole != nil {
|
||||
dAtA[i] = 0x8a
|
||||
@ -370,11 +383,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x45
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserRevokeRole.Size()))
|
||||
n20, err := m.AuthUserRevokeRole.MarshalTo(dAtA[i:])
|
||||
n21, err := m.AuthUserRevokeRole.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n20
|
||||
i += n21
|
||||
}
|
||||
if m.AuthUserList != nil {
|
||||
dAtA[i] = 0x92
|
||||
@ -382,11 +395,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x45
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthUserList.Size()))
|
||||
n21, err := m.AuthUserList.MarshalTo(dAtA[i:])
|
||||
n22, err := m.AuthUserList.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n21
|
||||
i += n22
|
||||
}
|
||||
if m.AuthRoleList != nil {
|
||||
dAtA[i] = 0x9a
|
||||
@ -394,11 +407,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x45
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleList.Size()))
|
||||
n22, err := m.AuthRoleList.MarshalTo(dAtA[i:])
|
||||
n23, err := m.AuthRoleList.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n22
|
||||
i += n23
|
||||
}
|
||||
if m.AuthRoleAdd != nil {
|
||||
dAtA[i] = 0x82
|
||||
@ -406,11 +419,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x4b
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleAdd.Size()))
|
||||
n23, err := m.AuthRoleAdd.MarshalTo(dAtA[i:])
|
||||
n24, err := m.AuthRoleAdd.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n23
|
||||
i += n24
|
||||
}
|
||||
if m.AuthRoleDelete != nil {
|
||||
dAtA[i] = 0x8a
|
||||
@ -418,11 +431,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x4b
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleDelete.Size()))
|
||||
n24, err := m.AuthRoleDelete.MarshalTo(dAtA[i:])
|
||||
n25, err := m.AuthRoleDelete.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n24
|
||||
i += n25
|
||||
}
|
||||
if m.AuthRoleGet != nil {
|
||||
dAtA[i] = 0x92
|
||||
@ -430,11 +443,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x4b
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleGet.Size()))
|
||||
n25, err := m.AuthRoleGet.MarshalTo(dAtA[i:])
|
||||
n26, err := m.AuthRoleGet.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n25
|
||||
i += n26
|
||||
}
|
||||
if m.AuthRoleGrantPermission != nil {
|
||||
dAtA[i] = 0x9a
|
||||
@ -442,11 +455,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x4b
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleGrantPermission.Size()))
|
||||
n26, err := m.AuthRoleGrantPermission.MarshalTo(dAtA[i:])
|
||||
n27, err := m.AuthRoleGrantPermission.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n26
|
||||
i += n27
|
||||
}
|
||||
if m.AuthRoleRevokePermission != nil {
|
||||
dAtA[i] = 0xa2
|
||||
@ -454,11 +467,11 @@ func (m *InternalRaftRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
dAtA[i] = 0x4b
|
||||
i++
|
||||
i = encodeVarintRaftInternal(dAtA, i, uint64(m.AuthRoleRevokePermission.Size()))
|
||||
n27, err := m.AuthRoleRevokePermission.MarshalTo(dAtA[i:])
|
||||
n28, err := m.AuthRoleRevokePermission.MarshalTo(dAtA[i:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i += n27
|
||||
i += n28
|
||||
}
|
||||
return i, nil
|
||||
}
|
||||
@ -604,6 +617,10 @@ func (m *InternalRaftRequest) Size() (n int) {
|
||||
l = m.Authenticate.Size()
|
||||
n += 2 + l + sovRaftInternal(uint64(l))
|
||||
}
|
||||
if m.AuthStatus != nil {
|
||||
l = m.AuthStatus.Size()
|
||||
n += 2 + l + sovRaftInternal(uint64(l))
|
||||
}
|
||||
if m.AuthUserAdd != nil {
|
||||
l = m.AuthUserAdd.Size()
|
||||
n += 2 + l + sovRaftInternal(uint64(l))
|
||||
@ -1323,6 +1340,39 @@ func (m *InternalRaftRequest) Unmarshal(dAtA []byte) error {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
case 1013:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field AuthStatus", 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.AuthStatus == nil {
|
||||
m.AuthStatus = &AuthStatusRequest{}
|
||||
}
|
||||
if err := m.AuthStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
case 1100:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field AuthUserAdd", wireType)
|
||||
@ -2068,60 +2118,61 @@ var (
|
||||
func init() { proto.RegisterFile("raft_internal.proto", fileDescriptorRaftInternal) }
|
||||
|
||||
var fileDescriptorRaftInternal = []byte{
|
||||
// 867 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x96, 0xcb, 0x52, 0x33, 0x45,
|
||||
0x14, 0xc7, 0x49, 0xb8, 0xa6, 0x13, 0x2e, 0x36, 0xa0, 0x6d, 0xa8, 0x8a, 0x10, 0xbc, 0xe0, 0x0d,
|
||||
0xad, 0xf0, 0x00, 0x1a, 0x13, 0x0a, 0xa8, 0xa2, 0x90, 0x9a, 0xc2, 0x2a, 0xab, 0x5c, 0x8c, 0xcd,
|
||||
0xcc, 0x21, 0x19, 0x99, 0xcc, 0x8c, 0x3d, 0x9d, 0x88, 0x6f, 0xe2, 0x63, 0x78, 0xdb, 0xbb, 0x65,
|
||||
0xe1, 0x05, 0xf5, 0x05, 0x14, 0x37, 0xee, 0xbf, 0xef, 0x01, 0xbe, 0xea, 0xcb, 0xf4, 0x64, 0x92,
|
||||
0x0e, 0xbb, 0xc9, 0x39, 0xff, 0xf3, 0xfb, 0x9f, 0x99, 0x3e, 0x07, 0x1a, 0x6d, 0x32, 0x7a, 0xc3,
|
||||
0xdd, 0x20, 0xe2, 0xc0, 0x22, 0x1a, 0x1e, 0x26, 0x2c, 0xe6, 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d, 0x16, 0x75, 0xa5, 0xa2, 0x60, 0x55, 0xf5,
|
||||
0xf3, 0x98, 0x30, 0xe4, 0x77, 0x11, 0x59, 0xb2, 0x19, 0x5e, 0xdd, 0x45, 0xc6, 0x90, 0xdf, 0x45,
|
||||
0xf8, 0x23, 0x84, 0xbc, 0x78, 0x90, 0x50, 0x8f, 0x8b, 0xef, 0xb7, 0x2c, 0x4b, 0x5e, 0x2b, 0x96,
|
||||
0x74, 0x4c, 0x3e, 0xab, 0x1c, 0x2b, 0xc1, 0x1f, 0xa3, 0x6a, 0x08, 0x34, 0x05, 0xb7, 0xc7, 0x68,
|
||||
0xc4, 0xc9, 0x8a, 0x8d, 0x70, 0x2e, 0x04, 0x27, 0x22, 0x6f, 0x08, 0xa1, 0x09, 0x89, 0x77, 0x56,
|
||||
0x04, 0x06, 0xa3, 0xf8, 0x16, 0x48, 0xc5, 0xf6, 0xce, 0x12, 0xe1, 0x48, 0x81, 0x79, 0xe7, 0x30,
|
||||
0x8f, 0x89, 0x63, 0xa1, 0x21, 0x65, 0x03, 0x82, 0x6c, 0xc7, 0xd2, 0x16, 0x29, 0x73, 0x2c, 0x52,
|
||||
0x88, 0x3f, 0x45, 0x1b, 0xca, 0xd6, 0xeb, 0x83, 0x77, 0x9b, 0xc4, 0x41, 0xc4, 0x49, 0x55, 0x16,
|
||||
0xbf, 0x6e, 0xb1, 0xee, 0x18, 0x51, 0x86, 0x59, 0x0f, 0x8b, 0x71, 0x7c, 0x84, 0x96, 0xfa, 0x72,
|
||||
0x86, 0x89, 0x2f, 0x31, 0x3b, 0xd6, 0x21, 0x52, 0x63, 0xee, 0x68, 0x29, 0x6e, 0xa3, 0xaa, 0x1c,
|
||||
0x61, 0x88, 0xe8, 0x75, 0x08, 0xe4, 0x7f, 0xeb, 0x09, 0xb4, 0x87, 0xbc, 0x7f, 0x2c, 0x05, 0xe6,
|
||||
0xfb, 0x51, 0x13, 0xc2, 0x5d, 0x24, 0x07, 0xde, 0xf5, 0x83,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e, 0x8e, 0xb1, 0x31, 0x9d, 0x4a, 0xe1, 0x53, 0xb4, 0x96, 0xc3,
|
||||
0xc3, 0x20, 0xe5, 0xe4, 0x2f, 0x45, 0xdd, 0xb3, 0x53, 0xcf, 0x83, 0x94, 0x17, 0xe6, 0x28, 0x0b,
|
||||
0x1a, 0x92, 0x68, 0x4d, 0x91, 0xfe, 0x9e, 0x49, 0x12, 0xd6, 0x53, 0xa4, 0x2c, 0x68, 0x8e, 0x5e,
|
||||
0x92, 0xc4, 0x44, 0x7e, 0x5f, 0x99, 0x75, 0xf4, 0xa2, 0x66, 0x72, 0x22, 0x75, 0xcc, 0x4c, 0xa4,
|
||||
0xc4, 0xe8, 0x89, 0xfc, 0xa1, 0x32, 0x6b, 0x22, 0x45, 0x95, 0x65, 0x22, 0xf3, 0x70, 0xb1, 0x2d,
|
||||
0x31, 0x91, 0x3f, 0x3e, 0xd9, 0xd6, 0xe4, 0x44, 0xea, 0x18, 0xfe, 0x0a, 0xd5, 0xc7, 0x30, 0x72,
|
||||
0x50, 0x12, 0x60, 0x83, 0x20, 0x95, 0xff, 0x18, 0x7f, 0x52, 0xcc, 0xf7, 0x66, 0x30, 0x85, 0xfc,
|
||||
0xd2, 0xa8, 0x33, 0xfe, 0x2b, 0xd4, 0x9e, 0xc7, 0x03, 0xb4, 0x93, 0x7b, 0xe9, 0xd1, 0x19, 0x33,
|
||||
0xfb, 0x59, 0x99, 0xbd, 0x6f, 0x37, 0x53, 0x53, 0x32, 0xed, 0x46, 0xe8, 0x0c, 0x41, 0x73, 0x1d,
|
||||
0xad, 0x1e, 0x0f, 0x12, 0xfe, 0xad, 0x03, 0x69, 0x12, 0x47, 0x29, 0x34, 0x13, 0xb4, 0xf3, 0xc4,
|
||||
0x1f, 0x22, 0x8c, 0xd1, 0x82, 0xbc, 0x2e, 0x94, 0xe4, 0x75, 0x41, 0x3e, 0x8b, 0x6b, 0x84, 0xd9,
|
||||
0x4f, 0x7d, 0x8d, 0xc8, 0x7e, 0xe3, 0x3d, 0x54, 0x4b, 0x83, 0x41, 0x12, 0x82, 0xcb, 0xe3, 0x5b,
|
||||
0x50, 0xb7, 0x88, 0x8a, 0x53, 0x55, 0xb1, 0x2b, 0x11, 0xfa, 0x64, 0xeb, 0xfe, 0xdf, 0xc6, 0xdc,
|
||||
0xfd, 0x63, 0xa3, 0xf4, 0xf0, 0xd8, 0x28, 0xfd, 0xf3, 0xd8, 0x28, 0x7d, 0xf7, 0x5f, 0x63, 0xee,
|
||||
0x7a, 0x49, 0xde, 0x61, 0x8e, 0x5e, 0x04, 0x00, 0x00, 0xff, 0xff, 0xed, 0x36, 0xf0, 0x6f, 0x1b,
|
||||
0x09, 0x00, 0x00,
|
||||
// 888 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x96, 0xdd, 0x72, 0x1b, 0x35,
|
||||
0x14, 0xc7, 0x6b, 0x37, 0x4d, 0x63, 0xd9, 0x49, 0x8d, 0x9a, 0x82, 0x70, 0x66, 0x4c, 0xea, 0xf2,
|
||||
0x51, 0xbe, 0x02, 0xe3, 0x3e, 0x00, 0x18, 0x3b, 0x93, 0x66, 0xa6, 0x53, 0x32, 0x4b, 0x98, 0x61,
|
||||
0x86, 0x8b, 0x45, 0xd9, 0x3d, 0xb1, 0x97, 0xac, 0x77, 0x17, 0x49, 0x36, 0xe1, 0x96, 0xa7, 0xe0,
|
||||
0x31, 0xf8, 0x7a, 0x88, 0x5c, 0xf0, 0x11, 0xe0, 0x05, 0x20, 0xdc, 0x70, 0x0f, 0xdc, 0x77, 0xf4,
|
||||
0xb1, 0x5a, 0xaf, 0xad, 0xcd, 0xdd, 0xfa, 0xe8, 0x7f, 0x7e, 0xff, 0x23, 0xe9, 0x9c, 0x44, 0xe8,
|
||||
0x2e, 0xa3, 0xa7, 0xc2, 0x8f, 0x12, 0x01, 0x2c, 0xa1, 0xf1, 0x5e, 0xc6, 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x2d, 0x95, 0xb4, 0x5b, 0x4e, 0x1a, 0x29,
|
||||
0x45, 0xc9, 0xaa, 0x19, 0x16, 0x31, 0x69, 0x28, 0xce, 0x13, 0xb2, 0xee, 0x32, 0x3c, 0x3e, 0x4f,
|
||||
0xac, 0xa1, 0x38, 0x4f, 0xf0, 0x7b, 0x08, 0x05, 0xe9, 0x34, 0xa3, 0x81, 0x90, 0xe7, 0x77, 0x5b,
|
||||
0xa5, 0xbc, 0x54, 0x4e, 0x19, 0xda, 0xf5, 0x3c, 0x73, 0x21, 0x05, 0xbf, 0x8f, 0x9a, 0x31, 0x50,
|
||||
0x0e, 0xfe, 0x98, 0xd1, 0x44, 0x90, 0x0d, 0x17, 0xe1, 0x89, 0x14, 0x1c, 0xc8, 0x75, 0x4b, 0x88,
|
||||
0x6d, 0x48, 0xee, 0x59, 0x13, 0x18, 0xcc, 0xd3, 0x33, 0x20, 0x0d, 0xd7, 0x9e, 0x15, 0xc2, 0x53,
|
||||
0x02, 0xbb, 0xe7, 0xb8, 0x88, 0xc9, 0x6b, 0xa1, 0x31, 0x65, 0x53, 0x82, 0x5c, 0xd7, 0x32, 0x90,
|
||||
0x4b, 0xf6, 0x5a, 0x94, 0x10, 0x7f, 0x88, 0xda, 0xda, 0x36, 0x98, 0x40, 0x70, 0x96, 0xa5, 0x51,
|
||||
0x22, 0x48, 0x53, 0x25, 0xbf, 0xec, 0xb0, 0x1e, 0x5a, 0x51, 0x8e, 0xb9, 0x13, 0x97, 0xe3, 0xf8,
|
||||
0x11, 0x5a, 0x9f, 0xa8, 0x1e, 0x26, 0xa1, 0xc2, 0xec, 0x38, 0x9b, 0x48, 0xb7, 0xb9, 0x67, 0xa4,
|
||||
0x78, 0x80, 0x9a, 0xaa, 0x85, 0x21, 0xa1, 0x27, 0x31, 0x90, 0x7f, 0x9c, 0x37, 0x30, 0x98, 0x89,
|
||||
0xc9, 0xbe, 0x12, 0xd8, 0xf3, 0xa3, 0x36, 0x84, 0x47, 0x48, 0x35, 0xbc, 0x1f, 0x46, 0x5c, 0x31,
|
||||
0xfe, 0xbd, 0xed, 0x3a, 0x40, 0xc9, 0x18, 0x69, 0x85, 0x3d, 0x40, 0x5a, 0xc4, 0xf0, 0x53, 0x4d,
|
||||
0x81, 0x44, 0x44, 0x01, 0x15, 0x40, 0xfe, 0xd3, 0x94, 0xd7, 0xcb, 0x94, 0x7c, 0x90, 0x06, 0x0b,
|
||||
0xd2, 0x1c, 0x57, 0xca, 0xb7, 0x1b, 0xe3, 0x82, 0x8a, 0x19, 0x27, 0xff, 0x57, 0x6e, 0xec, 0x23,
|
||||
0x25, 0x28, 0x6d, 0x4c, 0x87, 0xf0, 0xbe, 0x19, 0x6f, 0x39, 0xef, 0x3e, 0x0d, 0x43, 0xf2, 0xd3,
|
||||
0x46, 0xd5, 0xce, 0x3e, 0xe6, 0xc0, 0x06, 0x61, 0x58, 0xda, 0x99, 0x89, 0xe1, 0xa7, 0xa8, 0x5d,
|
||||
0x60, 0xf4, 0x9c, 0x90, 0x9f, 0x35, 0xe9, 0x81, 0x9b, 0x64, 0x06, 0xcc, 0xc0, 0xb6, 0x68, 0x29,
|
||||
0x5c, 0x2e, 0x6b, 0x0c, 0x82, 0xfc, 0x72, 0x6d, 0x59, 0x07, 0x20, 0x56, 0xca, 0x3a, 0x00, 0x81,
|
||||
0xc7, 0xe8, 0xc5, 0x02, 0x13, 0x4c, 0xe4, 0xe4, 0xfa, 0x19, 0xe5, 0xfc, 0xcb, 0x94, 0x85, 0xe4,
|
||||
0x57, 0x8d, 0x7c, 0xd3, 0x8d, 0x1c, 0x2a, 0xf5, 0x91, 0x11, 0xe7, 0xf4, 0xe7, 0xa9, 0x73, 0x19,
|
||||
0x7f, 0x82, 0xb6, 0x17, 0xea, 0x95, 0x23, 0xe7, 0xb3, 0x34, 0x06, 0x72, 0xa9, 0x3d, 0x5e, 0xad,
|
||||
0x28, 0x5b, 0x8d, 0x6b, 0x5a, 0x74, 0xcb, 0x73, 0x74, 0x79, 0x05, 0x7f, 0x8a, 0xee, 0x15, 0x64,
|
||||
0x3d, 0xbd, 0x1a, 0xfd, 0x9b, 0x46, 0xbf, 0xe6, 0x46, 0x9b, 0x31, 0x5e, 0x60, 0x63, 0xba, 0xb2,
|
||||
0x84, 0x1f, 0xa3, 0xad, 0x02, 0x1e, 0x47, 0x5c, 0x90, 0xdf, 0x35, 0xf5, 0xbe, 0x9b, 0xfa, 0x24,
|
||||
0xe2, 0xa2, 0xd4, 0x8a, 0x79, 0xd0, 0x92, 0x64, 0x69, 0x9a, 0xf4, 0x47, 0x25, 0x49, 0x5a, 0xaf,
|
||||
0x90, 0xf2, 0xa0, 0xbd, 0x7a, 0x45, 0x92, 0x1d, 0xf9, 0x6d, 0xa3, 0xea, 0xea, 0x65, 0xce, 0x72,
|
||||
0x47, 0x9a, 0x98, 0xed, 0x48, 0x85, 0x31, 0x1d, 0xf9, 0x5d, 0xa3, 0xaa, 0x23, 0x65, 0x96, 0xa3,
|
||||
0x23, 0x8b, 0x70, 0xb9, 0x2c, 0xd9, 0x91, 0xdf, 0x5f, 0x5b, 0xd6, 0x72, 0x47, 0x9a, 0x18, 0xfe,
|
||||
0x1c, 0x75, 0x16, 0x30, 0xaa, 0x51, 0x32, 0x60, 0xd3, 0x88, 0xab, 0xff, 0xad, 0x3f, 0x68, 0xe6,
|
||||
0x5b, 0x15, 0x4c, 0x29, 0x3f, 0xb2, 0xea, 0x9c, 0xff, 0x02, 0x75, 0xaf, 0xe3, 0x29, 0xda, 0x29,
|
||||
0xbc, 0x4c, 0xeb, 0x2c, 0x98, 0xfd, 0xa8, 0xcd, 0xde, 0x76, 0x9b, 0xe9, 0x2e, 0x59, 0x75, 0x23,
|
||||
0xb4, 0x42, 0xd0, 0xbb, 0x83, 0x36, 0xf7, 0xa7, 0x99, 0xf8, 0xca, 0x03, 0x9e, 0xa5, 0x09, 0x87,
|
||||
0x5e, 0x86, 0x76, 0xae, 0xf9, 0x5b, 0x86, 0x31, 0x5a, 0x53, 0x2f, 0x8e, 0x9a, 0x7a, 0x71, 0xa8,
|
||||
0x6f, 0xf9, 0x12, 0xb1, 0xf3, 0x69, 0x5e, 0x22, 0xf9, 0x6f, 0x7c, 0x1f, 0xb5, 0x78, 0x34, 0xcd,
|
||||
0x62, 0xf0, 0x45, 0x7a, 0x06, 0xfa, 0x21, 0xd2, 0xf0, 0x9a, 0x3a, 0x76, 0x2c, 0x43, 0x1f, 0x6c,
|
||||
0x5f, 0xfc, 0xd5, 0xbd, 0x71, 0x71, 0xd5, 0xad, 0x5d, 0x5e, 0x75, 0x6b, 0x7f, 0x5e, 0x75, 0x6b,
|
||||
0xdf, 0xfc, 0xdd, 0xbd, 0x71, 0xb2, 0xae, 0x9e, 0x41, 0x8f, 0x9e, 0x05, 0x00, 0x00, 0xff, 0xff,
|
||||
0xe3, 0xf8, 0x76, 0x98, 0x5e, 0x09, 0x00, 0x00,
|
||||
}
|
||||
|
@ -41,6 +41,7 @@ message InternalRaftRequest {
|
||||
|
||||
AuthEnableRequest auth_enable = 1000;
|
||||
AuthDisableRequest auth_disable = 1011;
|
||||
AuthStatusRequest auth_status = 1013;
|
||||
|
||||
InternalAuthenticateRequest authenticate = 1012;
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1000,6 +1000,9 @@ message AuthEnableRequest {
|
||||
message AuthDisableRequest {
|
||||
}
|
||||
|
||||
message AuthStatusRequest {
|
||||
}
|
||||
|
||||
message AuthenticateRequest {
|
||||
string name = 1;
|
||||
string password = 2;
|
||||
@ -1079,6 +1082,13 @@ message AuthDisableResponse {
|
||||
ResponseHeader header = 1;
|
||||
}
|
||||
|
||||
message AuthStatusResponse {
|
||||
ResponseHeader header = 1;
|
||||
bool enabled = 2;
|
||||
// authRevision is the current revision of auth store
|
||||
uint64 authRevision = 3;
|
||||
}
|
||||
|
||||
message AuthenticateResponse {
|
||||
ResponseHeader header = 1;
|
||||
// token is an authorized token that can be used in succeeding RPCs
|
||||
|
Loading…
x
Reference in New Issue
Block a user