diff --git a/pb/edge_client_pb/edge_client.pb.go b/pb/edge_client_pb/edge_client.pb.go index 9c0c3d66..07c8f77c 100644 --- a/pb/edge_client_pb/edge_client.pb.go +++ b/pb/edge_client_pb/edge_client.pb.go @@ -1,15 +1,15 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.23.4 +// protoc-gen-go v1.33.0 +// protoc v3.21.12 // source: edge_client.proto package edge_client_pb import ( - timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" ) @@ -24,7 +24,10 @@ const ( type ContentType int32 const ( - ContentType_Zero ContentType = 0 + ContentType_Hello ContentType = 0 + ContentType_Ping ContentType = 1 + ContentType_Result ContentType = 2 + ContentType_Latency ContentType = 3 ContentType_ConnectType ContentType = 60783 ContentType_StateConnectedType ContentType = 60784 ContentType_StateClosedType ContentType = 60785 @@ -40,9 +43,12 @@ const ( ContentType_HealthEventType ContentType = 60795 ContentType_TraceRouteType ContentType = 60796 ContentType_TraceRouteResponseType ContentType = 60797 - ContentType_UpdateTokenType ContentType = 60800 + ContentType_ConnInspectRequest ContentType = 60798 + ContentType_ConnInspectResponse ContentType = 60799 + ContentType_BindSuccess ContentType = 60800 ContentType_UpdateTokenSuccessType ContentType = 60801 ContentType_UpdateTokenFailureType ContentType = 60802 + ContentType_UpdateTokenType ContentType = 60803 ContentType_PostureResponseType ContentType = 10800 ContentType_PostureResponseSuccessType ContentType = 10801 ) @@ -50,7 +56,10 @@ const ( // Enum value maps for ContentType. var ( ContentType_name = map[int32]string{ - 0: "Zero", + 0: "Hello", + 1: "Ping", + 2: "Result", + 3: "Latency", 60783: "ConnectType", 60784: "StateConnectedType", 60785: "StateClosedType", @@ -66,14 +75,20 @@ var ( 60795: "HealthEventType", 60796: "TraceRouteType", 60797: "TraceRouteResponseType", - 60800: "UpdateTokenType", + 60798: "ConnInspectRequest", + 60799: "ConnInspectResponse", + 60800: "BindSuccess", 60801: "UpdateTokenSuccessType", 60802: "UpdateTokenFailureType", + 60803: "UpdateTokenType", 10800: "PostureResponseType", 10801: "PostureResponseSuccessType", } ContentType_value = map[string]int32{ - "Zero": 0, + "Hello": 0, + "Ping": 1, + "Result": 2, + "Latency": 3, "ConnectType": 60783, "StateConnectedType": 60784, "StateClosedType": 60785, @@ -89,9 +104,12 @@ var ( "HealthEventType": 60795, "TraceRouteType": 60796, "TraceRouteResponseType": 60797, - "UpdateTokenType": 60800, + "ConnInspectRequest": 60798, + "ConnInspectResponse": 60799, + "BindSuccess": 60800, "UpdateTokenSuccessType": 60801, "UpdateTokenFailureType": 60802, + "UpdateTokenType": 60803, "PostureResponseType": 10800, "PostureResponseSuccessType": 10801, } @@ -124,6 +142,325 @@ func (ContentType) EnumDescriptor() ([]byte, []int) { return file_edge_client_proto_rawDescGZIP(), []int{0} } +type HeaderId int32 + +const ( + HeaderId_ZER0 HeaderId = 0 + HeaderId_UUID HeaderId = 128 + HeaderId_ConnId HeaderId = 1000 + HeaderId_Seq HeaderId = 1001 + HeaderId_SessionToken HeaderId = 1002 + HeaderId_PublicKey HeaderId = 1003 + HeaderId_Cost HeaderId = 1004 + HeaderId_Precedence HeaderId = 1005 + HeaderId_TerminatorIdentity HeaderId = 1006 + HeaderId_TerminatorIdentitySecret HeaderId = 1007 + HeaderId_CallerId HeaderId = 1008 + HeaderId_CryptoMethod HeaderId = 1009 + HeaderId_Flags HeaderId = 1010 + HeaderId_AppData HeaderId = 1011 + HeaderId_RouterProvidedConnId HeaderId = 1012 + HeaderId_HealthStatus HeaderId = 1013 + HeaderId_ErrorCode HeaderId = 1014 + HeaderId_Timestamp HeaderId = 1015 + HeaderId_TraceHopCount HeaderId = 1016 + HeaderId_TraceHopType HeaderId = 1017 + HeaderId_TraceHopId HeaderId = 1018 + HeaderId_TraceSourceRequestId HeaderId = 1019 + HeaderId_TraceError HeaderId = 1020 + HeaderId_ListenerId HeaderId = 1021 + HeaderId_ConnType HeaderId = 1022 + HeaderId_SupportsInspect HeaderId = 1023 + HeaderId_SupportsBindSuccess HeaderId = 1024 + HeaderId_ConnectionMarker HeaderId = 1025 + HeaderId_CircuitId HeaderId = 1026 + HeaderId_StickinessToken HeaderId = 1027 +) + +// Enum value maps for HeaderId. +var ( + HeaderId_name = map[int32]string{ + 0: "ZER0", + 128: "UUID", + 1000: "ConnId", + 1001: "Seq", + 1002: "SessionToken", + 1003: "PublicKey", + 1004: "Cost", + 1005: "Precedence", + 1006: "TerminatorIdentity", + 1007: "TerminatorIdentitySecret", + 1008: "CallerId", + 1009: "CryptoMethod", + 1010: "Flags", + 1011: "AppData", + 1012: "RouterProvidedConnId", + 1013: "HealthStatus", + 1014: "ErrorCode", + 1015: "Timestamp", + 1016: "TraceHopCount", + 1017: "TraceHopType", + 1018: "TraceHopId", + 1019: "TraceSourceRequestId", + 1020: "TraceError", + 1021: "ListenerId", + 1022: "ConnType", + 1023: "SupportsInspect", + 1024: "SupportsBindSuccess", + 1025: "ConnectionMarker", + 1026: "CircuitId", + 1027: "StickinessToken", + } + HeaderId_value = map[string]int32{ + "ZER0": 0, + "UUID": 128, + "ConnId": 1000, + "Seq": 1001, + "SessionToken": 1002, + "PublicKey": 1003, + "Cost": 1004, + "Precedence": 1005, + "TerminatorIdentity": 1006, + "TerminatorIdentitySecret": 1007, + "CallerId": 1008, + "CryptoMethod": 1009, + "Flags": 1010, + "AppData": 1011, + "RouterProvidedConnId": 1012, + "HealthStatus": 1013, + "ErrorCode": 1014, + "Timestamp": 1015, + "TraceHopCount": 1016, + "TraceHopType": 1017, + "TraceHopId": 1018, + "TraceSourceRequestId": 1019, + "TraceError": 1020, + "ListenerId": 1021, + "ConnType": 1022, + "SupportsInspect": 1023, + "SupportsBindSuccess": 1024, + "ConnectionMarker": 1025, + "CircuitId": 1026, + "StickinessToken": 1027, + } +) + +func (x HeaderId) Enum() *HeaderId { + p := new(HeaderId) + *p = x + return p +} + +func (x HeaderId) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (HeaderId) Descriptor() protoreflect.EnumDescriptor { + return file_edge_client_proto_enumTypes[1].Descriptor() +} + +func (HeaderId) Type() protoreflect.EnumType { + return &file_edge_client_proto_enumTypes[1] +} + +func (x HeaderId) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use HeaderId.Descriptor instead. +func (HeaderId) EnumDescriptor() ([]byte, []int) { + return file_edge_client_proto_rawDescGZIP(), []int{1} +} + +type Error int32 + +const ( + Error_OK Error = 0 + Error_Internal Error = 1 + Error_InvalidApiSession Error = 2 + Error_InvalidSession Error = 3 + Error_WrongSessionType Error = 4 + Error_InvalidEdgeRouterForSession Error = 5 + Error_InvalidService Error = 6 + Error_TunnelingNotEnabled Error = 7 + Error_InvalidTerminator Error = 8 + Error_InvalidPrecedence Error = 9 + Error_InvalidCost Error = 10 + Error_EncryptionDataMissing Error = 11 +) + +// Enum value maps for Error. +var ( + Error_name = map[int32]string{ + 0: "OK", + 1: "Internal", + 2: "InvalidApiSession", + 3: "InvalidSession", + 4: "WrongSessionType", + 5: "InvalidEdgeRouterForSession", + 6: "InvalidService", + 7: "TunnelingNotEnabled", + 8: "InvalidTerminator", + 9: "InvalidPrecedence", + 10: "InvalidCost", + 11: "EncryptionDataMissing", + } + Error_value = map[string]int32{ + "OK": 0, + "Internal": 1, + "InvalidApiSession": 2, + "InvalidSession": 3, + "WrongSessionType": 4, + "InvalidEdgeRouterForSession": 5, + "InvalidService": 6, + "TunnelingNotEnabled": 7, + "InvalidTerminator": 8, + "InvalidPrecedence": 9, + "InvalidCost": 10, + "EncryptionDataMissing": 11, + } +) + +func (x Error) Enum() *Error { + p := new(Error) + *p = x + return p +} + +func (x Error) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Error) Descriptor() protoreflect.EnumDescriptor { + return file_edge_client_proto_enumTypes[2].Descriptor() +} + +func (Error) Type() protoreflect.EnumType { + return &file_edge_client_proto_enumTypes[2] +} + +func (x Error) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Error.Descriptor instead. +func (Error) EnumDescriptor() ([]byte, []int) { + return file_edge_client_proto_rawDescGZIP(), []int{2} +} + +type PrecedenceValue int32 + +const ( + PrecedenceValue_Default PrecedenceValue = 0 + PrecedenceValue_Required PrecedenceValue = 1 + PrecedenceValue_Failed PrecedenceValue = 2 +) + +// Enum value maps for PrecedenceValue. +var ( + PrecedenceValue_name = map[int32]string{ + 0: "Default", + 1: "Required", + 2: "Failed", + } + PrecedenceValue_value = map[string]int32{ + "Default": 0, + "Required": 1, + "Failed": 2, + } +) + +func (x PrecedenceValue) Enum() *PrecedenceValue { + p := new(PrecedenceValue) + *p = x + return p +} + +func (x PrecedenceValue) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PrecedenceValue) Descriptor() protoreflect.EnumDescriptor { + return file_edge_client_proto_enumTypes[3].Descriptor() +} + +func (PrecedenceValue) Type() protoreflect.EnumType { + return &file_edge_client_proto_enumTypes[3] +} + +func (x PrecedenceValue) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PrecedenceValue.Descriptor instead. +func (PrecedenceValue) EnumDescriptor() ([]byte, []int) { + return file_edge_client_proto_rawDescGZIP(), []int{3} +} + +type Flag int32 + +const ( + Flag_ZERO Flag = 0 + // FIN is an edge payload flag used to signal communication ends + Flag_FIN Flag = 1 + // TRACE_UUID indicates that peer will send data messages with specially constructed UUID headers + Flag_TRACE_UUID Flag = 2 + // MULTIPART indicates that peer can accept multipart data messages + Flag_MULTIPART Flag = 4 + // STREAM indicates connection with stream semantics + // this allows consolidation of payloads to lower overhead + Flag_STREAM Flag = 8 + // MULTIPART_MSG set on data message with multiple payloads + Flag_MULTIPART_MSG Flag = 16 +) + +// Enum value maps for Flag. +var ( + Flag_name = map[int32]string{ + 0: "ZERO", + 1: "FIN", + 2: "TRACE_UUID", + 4: "MULTIPART", + 8: "STREAM", + 16: "MULTIPART_MSG", + } + Flag_value = map[string]int32{ + "ZERO": 0, + "FIN": 1, + "TRACE_UUID": 2, + "MULTIPART": 4, + "STREAM": 8, + "MULTIPART_MSG": 16, + } +) + +func (x Flag) Enum() *Flag { + p := new(Flag) + *p = x + return p +} + +func (x Flag) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Flag) Descriptor() protoreflect.EnumDescriptor { + return file_edge_client_proto_enumTypes[4].Descriptor() +} + +func (Flag) Type() protoreflect.EnumType { + return &file_edge_client_proto_enumTypes[4] +} + +func (x Flag) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Flag.Descriptor instead. +func (Flag) EnumDescriptor() ([]byte, []int) { + return file_edge_client_proto_rawDescGZIP(), []int{4} +} + type PostureResponses struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -602,7 +939,7 @@ type PostureResponse_Woken struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=Time,proto3" json:"Time,omitempty"` + Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Time,proto3" json:"Time,omitempty"` } func (x *PostureResponse_Woken) Reset() { @@ -637,7 +974,7 @@ func (*PostureResponse_Woken) Descriptor() ([]byte, []int) { return file_edge_client_proto_rawDescGZIP(), []int{1, 5} } -func (x *PostureResponse_Woken) GetTime() *timestamp.Timestamp { +func (x *PostureResponse_Woken) GetTime() *timestamppb.Timestamp { if x != nil { return x.Time } @@ -649,7 +986,7 @@ type PostureResponse_Unlocked struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=Time,proto3" json:"Time,omitempty"` + Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Time,proto3" json:"Time,omitempty"` } func (x *PostureResponse_Unlocked) Reset() { @@ -684,7 +1021,7 @@ func (*PostureResponse_Unlocked) Descriptor() ([]byte, []int) { return file_edge_client_proto_rawDescGZIP(), []int{1, 6} } -func (x *PostureResponse_Unlocked) GetTime() *timestamp.Timestamp { +func (x *PostureResponse_Unlocked) GetTime() *timestamppb.Timestamp { if x != nil { return x.Time } @@ -865,42 +1202,110 @@ var file_edge_client_proto_rawDesc = []byte{ 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x2a, 0xe7, - 0x03, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, - 0x0a, 0x04, 0x5a, 0x65, 0x72, 0x6f, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x10, 0xef, 0xda, 0x03, 0x12, 0x18, 0x0a, 0x12, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, - 0x65, 0x10, 0xf0, 0xda, 0x03, 0x12, 0x15, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x6c, - 0x6f, 0x73, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf1, 0xda, 0x03, 0x12, 0x0e, 0x0a, 0x08, - 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf2, 0xda, 0x03, 0x12, 0x0e, 0x0a, 0x08, - 0x44, 0x69, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf3, 0xda, 0x03, 0x12, 0x15, 0x0a, 0x0f, - 0x44, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x10, - 0xf4, 0xda, 0x03, 0x12, 0x14, 0x0a, 0x0e, 0x44, 0x69, 0x61, 0x6c, 0x46, 0x61, 0x69, 0x6c, 0x65, - 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf5, 0xda, 0x03, 0x12, 0x0e, 0x0a, 0x08, 0x42, 0x69, 0x6e, - 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf6, 0xda, 0x03, 0x12, 0x10, 0x0a, 0x0a, 0x55, 0x6e, 0x62, - 0x69, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf7, 0xda, 0x03, 0x12, 0x1b, 0x0a, 0x15, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x65, 0x64, - 0x54, 0x79, 0x70, 0x65, 0x10, 0xf8, 0xda, 0x03, 0x12, 0x0f, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x62, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf9, 0xda, 0x03, 0x12, 0x14, 0x0a, 0x0e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xfa, 0xda, 0x03, 0x12, - 0x15, 0x0a, 0x0f, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x10, 0xfb, 0xda, 0x03, 0x12, 0x14, 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x10, 0xfc, 0xda, 0x03, 0x12, 0x1c, 0x0a, 0x16, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x10, 0xfd, 0xda, 0x03, 0x12, 0x15, 0x0a, 0x0f, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x10, 0x80, 0xdb, - 0x03, 0x12, 0x1c, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x10, 0x81, 0xdb, 0x03, 0x12, - 0x1c, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x46, 0x61, - 0x69, 0x6c, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x10, 0x82, 0xdb, 0x03, 0x12, 0x18, 0x0a, - 0x13, 0x50, 0x6f, 0x73, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x10, 0xb0, 0x54, 0x12, 0x1f, 0x0a, 0x1a, 0x50, 0x6f, 0x73, 0x74, 0x75, - 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x54, 0x79, 0x70, 0x65, 0x10, 0xb1, 0x54, 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x7a, 0x69, 0x74, 0x69, 0x2f, - 0x73, 0x64, 0x6b, 0x2d, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x64, - 0x67, 0x65, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x2a, 0xd3, + 0x04, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, + 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x69, 0x6e, + 0x67, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x10, 0x02, 0x12, + 0x0b, 0x0a, 0x07, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0b, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x10, 0xef, 0xda, 0x03, 0x12, + 0x18, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, + 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf0, 0xda, 0x03, 0x12, 0x15, 0x0a, 0x0f, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf1, 0xda, 0x03, + 0x12, 0x0e, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf2, 0xda, 0x03, + 0x12, 0x0e, 0x0a, 0x08, 0x44, 0x69, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf3, 0xda, 0x03, + 0x12, 0x15, 0x0a, 0x0f, 0x44, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, + 0x79, 0x70, 0x65, 0x10, 0xf4, 0xda, 0x03, 0x12, 0x14, 0x0a, 0x0e, 0x44, 0x69, 0x61, 0x6c, 0x46, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf5, 0xda, 0x03, 0x12, 0x0e, 0x0a, + 0x08, 0x42, 0x69, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf6, 0xda, 0x03, 0x12, 0x10, 0x0a, + 0x0a, 0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf7, 0xda, 0x03, 0x12, + 0x1b, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x45, + 0x6e, 0x64, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf8, 0xda, 0x03, 0x12, 0x0f, 0x0a, 0x09, + 0x50, 0x72, 0x6f, 0x62, 0x65, 0x54, 0x79, 0x70, 0x65, 0x10, 0xf9, 0xda, 0x03, 0x12, 0x14, 0x0a, + 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, + 0xfa, 0xda, 0x03, 0x12, 0x15, 0x0a, 0x0f, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x10, 0xfb, 0xda, 0x03, 0x12, 0x14, 0x0a, 0x0e, 0x54, 0x72, + 0x61, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x10, 0xfc, 0xda, 0x03, + 0x12, 0x1c, 0x0a, 0x16, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x10, 0xfd, 0xda, 0x03, 0x12, 0x18, + 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x6e, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x10, 0xfe, 0xda, 0x03, 0x12, 0x19, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x6e, + 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x10, + 0xff, 0xda, 0x03, 0x12, 0x11, 0x0a, 0x0b, 0x42, 0x69, 0x6e, 0x64, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x10, 0x80, 0xdb, 0x03, 0x12, 0x1c, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, + 0x10, 0x81, 0xdb, 0x03, 0x12, 0x1c, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x10, 0x82, + 0xdb, 0x03, 0x12, 0x15, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x10, 0x83, 0xdb, 0x03, 0x12, 0x18, 0x0a, 0x13, 0x50, 0x6f, 0x73, + 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x10, 0xb0, 0x54, 0x12, 0x1f, 0x0a, 0x1a, 0x50, 0x6f, 0x73, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, + 0x65, 0x10, 0xb1, 0x54, 0x2a, 0xa8, 0x04, 0x0a, 0x08, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x30, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x04, 0x55, + 0x55, 0x49, 0x44, 0x10, 0x80, 0x01, 0x12, 0x0b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x6e, 0x49, 0x64, + 0x10, 0xe8, 0x07, 0x12, 0x08, 0x0a, 0x03, 0x53, 0x65, 0x71, 0x10, 0xe9, 0x07, 0x12, 0x11, 0x0a, + 0x0c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x10, 0xea, 0x07, + 0x12, 0x0e, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x10, 0xeb, 0x07, + 0x12, 0x09, 0x0a, 0x04, 0x43, 0x6f, 0x73, 0x74, 0x10, 0xec, 0x07, 0x12, 0x0f, 0x0a, 0x0a, 0x50, + 0x72, 0x65, 0x63, 0x65, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x10, 0xed, 0x07, 0x12, 0x17, 0x0a, 0x12, + 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x10, 0xee, 0x07, 0x12, 0x1d, 0x0a, 0x18, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, + 0x74, 0x6f, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x65, 0x63, 0x72, 0x65, + 0x74, 0x10, 0xef, 0x07, 0x12, 0x0d, 0x0a, 0x08, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x49, 0x64, + 0x10, 0xf0, 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x10, 0xf1, 0x07, 0x12, 0x0a, 0x0a, 0x05, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x10, + 0xf2, 0x07, 0x12, 0x0c, 0x0a, 0x07, 0x41, 0x70, 0x70, 0x44, 0x61, 0x74, 0x61, 0x10, 0xf3, 0x07, + 0x12, 0x19, 0x0a, 0x14, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x6e, 0x49, 0x64, 0x10, 0xf4, 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x48, + 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x10, 0xf5, 0x07, 0x12, 0x0e, + 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x10, 0xf6, 0x07, 0x12, 0x0e, + 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x10, 0xf7, 0x07, 0x12, 0x12, + 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x63, 0x65, 0x48, 0x6f, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x10, + 0xf8, 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x63, 0x65, 0x48, 0x6f, 0x70, 0x54, 0x79, + 0x70, 0x65, 0x10, 0xf9, 0x07, 0x12, 0x0f, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x48, 0x6f, + 0x70, 0x49, 0x64, 0x10, 0xfa, 0x07, 0x12, 0x19, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x10, 0xfb, + 0x07, 0x12, 0x0f, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, + 0xfc, 0x07, 0x12, 0x0f, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x49, 0x64, + 0x10, 0xfd, 0x07, 0x12, 0x0d, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x10, + 0xfe, 0x07, 0x12, 0x14, 0x0a, 0x0f, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x49, 0x6e, + 0x73, 0x70, 0x65, 0x63, 0x74, 0x10, 0xff, 0x07, 0x12, 0x18, 0x0a, 0x13, 0x53, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x73, 0x42, 0x69, 0x6e, 0x64, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, + 0x80, 0x08, 0x12, 0x15, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x10, 0x81, 0x08, 0x12, 0x0e, 0x0a, 0x09, 0x43, 0x69, 0x72, + 0x63, 0x75, 0x69, 0x74, 0x49, 0x64, 0x10, 0x82, 0x08, 0x12, 0x14, 0x0a, 0x0f, 0x53, 0x74, 0x69, + 0x63, 0x6b, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x10, 0x83, 0x08, 0x2a, + 0x86, 0x02, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, + 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x10, 0x01, 0x12, + 0x15, 0x0a, 0x11, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x41, 0x70, 0x69, 0x53, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x57, 0x72, + 0x6f, 0x6e, 0x67, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x10, 0x04, + 0x12, 0x1f, 0x0a, 0x1b, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x45, 0x64, 0x67, 0x65, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x10, + 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x69, + 0x6e, 0x67, 0x4e, 0x6f, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x10, 0x07, 0x12, 0x15, + 0x0a, 0x11, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, + 0x74, 0x6f, 0x72, 0x10, 0x08, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x50, 0x72, 0x65, 0x63, 0x65, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x10, 0x09, 0x12, 0x0f, 0x0a, 0x0b, + 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x43, 0x6f, 0x73, 0x74, 0x10, 0x0a, 0x12, 0x19, 0x0a, + 0x15, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x4d, + 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x10, 0x0b, 0x2a, 0x38, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x63, + 0x65, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x44, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x71, 0x75, + 0x69, 0x72, 0x65, 0x64, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, + 0x10, 0x02, 0x2a, 0x57, 0x0a, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, + 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x46, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0e, 0x0a, + 0x0a, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x55, 0x55, 0x49, 0x44, 0x10, 0x02, 0x12, 0x0d, 0x0a, + 0x09, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x50, 0x41, 0x52, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, + 0x53, 0x54, 0x52, 0x45, 0x41, 0x4d, 0x10, 0x08, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x55, 0x4c, 0x54, + 0x49, 0x50, 0x41, 0x52, 0x54, 0x5f, 0x4d, 0x53, 0x47, 0x10, 0x10, 0x42, 0x4b, 0x0a, 0x17, 0x6f, + 0x72, 0x67, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x7a, 0x69, 0x74, 0x69, 0x2e, 0x65, 0x64, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x7a, 0x69, 0x74, 0x69, 0x2f, 0x73, 0x64, 0x6b, 0x2d, + 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x5f, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -915,34 +1320,38 @@ func file_edge_client_proto_rawDescGZIP() []byte { return file_edge_client_proto_rawDescData } -var file_edge_client_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_edge_client_proto_enumTypes = make([]protoimpl.EnumInfo, 5) var file_edge_client_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_edge_client_proto_goTypes = []interface{}{ (ContentType)(0), // 0: ziti.edge_client.pb.ContentType - (*PostureResponses)(nil), // 1: ziti.edge_client.pb.PostureResponses - (*PostureResponse)(nil), // 2: ziti.edge_client.pb.PostureResponse - (*PostureResponse_Macs)(nil), // 3: ziti.edge_client.pb.PostureResponse.Macs - (*PostureResponse_OperatingSystem)(nil), // 4: ziti.edge_client.pb.PostureResponse.OperatingSystem - (*PostureResponse_Domain)(nil), // 5: ziti.edge_client.pb.PostureResponse.Domain - (*PostureResponse_Process)(nil), // 6: ziti.edge_client.pb.PostureResponse.Process - (*PostureResponse_ProcessList)(nil), // 7: ziti.edge_client.pb.PostureResponse.ProcessList - (*PostureResponse_Woken)(nil), // 8: ziti.edge_client.pb.PostureResponse.Woken - (*PostureResponse_Unlocked)(nil), // 9: ziti.edge_client.pb.PostureResponse.Unlocked - (*PostureResponse_SdkInfo)(nil), // 10: ziti.edge_client.pb.PostureResponse.SdkInfo - (*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp + (HeaderId)(0), // 1: ziti.edge_client.pb.HeaderId + (Error)(0), // 2: ziti.edge_client.pb.Error + (PrecedenceValue)(0), // 3: ziti.edge_client.pb.PrecedenceValue + (Flag)(0), // 4: ziti.edge_client.pb.Flag + (*PostureResponses)(nil), // 5: ziti.edge_client.pb.PostureResponses + (*PostureResponse)(nil), // 6: ziti.edge_client.pb.PostureResponse + (*PostureResponse_Macs)(nil), // 7: ziti.edge_client.pb.PostureResponse.Macs + (*PostureResponse_OperatingSystem)(nil), // 8: ziti.edge_client.pb.PostureResponse.OperatingSystem + (*PostureResponse_Domain)(nil), // 9: ziti.edge_client.pb.PostureResponse.Domain + (*PostureResponse_Process)(nil), // 10: ziti.edge_client.pb.PostureResponse.Process + (*PostureResponse_ProcessList)(nil), // 11: ziti.edge_client.pb.PostureResponse.ProcessList + (*PostureResponse_Woken)(nil), // 12: ziti.edge_client.pb.PostureResponse.Woken + (*PostureResponse_Unlocked)(nil), // 13: ziti.edge_client.pb.PostureResponse.Unlocked + (*PostureResponse_SdkInfo)(nil), // 14: ziti.edge_client.pb.PostureResponse.SdkInfo + (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp } var file_edge_client_proto_depIdxs = []int32{ - 2, // 0: ziti.edge_client.pb.PostureResponses.responses:type_name -> ziti.edge_client.pb.PostureResponse - 3, // 1: ziti.edge_client.pb.PostureResponse.macs:type_name -> ziti.edge_client.pb.PostureResponse.Macs - 4, // 2: ziti.edge_client.pb.PostureResponse.os:type_name -> ziti.edge_client.pb.PostureResponse.OperatingSystem - 7, // 3: ziti.edge_client.pb.PostureResponse.processList:type_name -> ziti.edge_client.pb.PostureResponse.ProcessList - 5, // 4: ziti.edge_client.pb.PostureResponse.domain:type_name -> ziti.edge_client.pb.PostureResponse.Domain - 8, // 5: ziti.edge_client.pb.PostureResponse.woken:type_name -> ziti.edge_client.pb.PostureResponse.Woken - 9, // 6: ziti.edge_client.pb.PostureResponse.unlocked:type_name -> ziti.edge_client.pb.PostureResponse.Unlocked - 10, // 7: ziti.edge_client.pb.PostureResponse.sdkInfo:type_name -> ziti.edge_client.pb.PostureResponse.SdkInfo - 6, // 8: ziti.edge_client.pb.PostureResponse.ProcessList.processes:type_name -> ziti.edge_client.pb.PostureResponse.Process - 11, // 9: ziti.edge_client.pb.PostureResponse.Woken.Time:type_name -> google.protobuf.Timestamp - 11, // 10: ziti.edge_client.pb.PostureResponse.Unlocked.Time:type_name -> google.protobuf.Timestamp + 6, // 0: ziti.edge_client.pb.PostureResponses.responses:type_name -> ziti.edge_client.pb.PostureResponse + 7, // 1: ziti.edge_client.pb.PostureResponse.macs:type_name -> ziti.edge_client.pb.PostureResponse.Macs + 8, // 2: ziti.edge_client.pb.PostureResponse.os:type_name -> ziti.edge_client.pb.PostureResponse.OperatingSystem + 11, // 3: ziti.edge_client.pb.PostureResponse.processList:type_name -> ziti.edge_client.pb.PostureResponse.ProcessList + 9, // 4: ziti.edge_client.pb.PostureResponse.domain:type_name -> ziti.edge_client.pb.PostureResponse.Domain + 12, // 5: ziti.edge_client.pb.PostureResponse.woken:type_name -> ziti.edge_client.pb.PostureResponse.Woken + 13, // 6: ziti.edge_client.pb.PostureResponse.unlocked:type_name -> ziti.edge_client.pb.PostureResponse.Unlocked + 14, // 7: ziti.edge_client.pb.PostureResponse.sdkInfo:type_name -> ziti.edge_client.pb.PostureResponse.SdkInfo + 10, // 8: ziti.edge_client.pb.PostureResponse.ProcessList.processes:type_name -> ziti.edge_client.pb.PostureResponse.Process + 15, // 9: ziti.edge_client.pb.PostureResponse.Woken.Time:type_name -> google.protobuf.Timestamp + 15, // 10: ziti.edge_client.pb.PostureResponse.Unlocked.Time:type_name -> google.protobuf.Timestamp 11, // [11:11] is the sub-list for method output_type 11, // [11:11] is the sub-list for method input_type 11, // [11:11] is the sub-list for extension type_name @@ -1091,7 +1500,7 @@ func file_edge_client_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_edge_client_proto_rawDesc, - NumEnums: 1, + NumEnums: 5, NumMessages: 10, NumExtensions: 0, NumServices: 0, diff --git a/pb/edge_client_pb/edge_client.proto b/pb/edge_client_pb/edge_client.proto index 4624b0e5..9b1ffb2a 100644 --- a/pb/edge_client_pb/edge_client.proto +++ b/pb/edge_client_pb/edge_client.proto @@ -8,7 +8,11 @@ option go_package = "github.com/openziti/sdk-golang/pb/edge_client_pb"; option java_package = "org.openziti.edge.proto"; enum ContentType { - Zero = 0; + Hello = 0; + Ping = 1; + Result = 2; + Latency = 3; + ConnectType = 60783; StateConnectedType = 60784; StateClosedType = 60785; @@ -24,15 +28,87 @@ enum ContentType { HealthEventType = 60795; TraceRouteType = 60796; TraceRouteResponseType = 60797; - - UpdateTokenType = 60800; + ConnInspectRequest = 60798; + ConnInspectResponse = 60799; + BindSuccess = 60800; UpdateTokenSuccessType = 60801; UpdateTokenFailureType = 60802; - + UpdateTokenType = 60803; + PostureResponseType = 10800; PostureResponseSuccessType = 10801; } +enum HeaderId { + ZER0 = 0; + UUID = 128; + ConnId = 1000; + Seq = 1001; + SessionToken = 1002; + PublicKey = 1003; + Cost = 1004; + Precedence = 1005; + TerminatorIdentity = 1006; + TerminatorIdentitySecret = 1007; + CallerId = 1008; + CryptoMethod = 1009; + Flags = 1010; + AppData = 1011; + RouterProvidedConnId = 1012; + HealthStatus = 1013; + ErrorCode = 1014; + Timestamp = 1015; + TraceHopCount = 1016; + TraceHopType = 1017; + TraceHopId = 1018; + TraceSourceRequestId = 1019; + TraceError = 1020; + ListenerId = 1021; + ConnType = 1022; + SupportsInspect = 1023; + SupportsBindSuccess = 1024; + ConnectionMarker = 1025; + CircuitId = 1026; + StickinessToken = 1027; +} + +enum Error { + OK = 0; + Internal = 1; + InvalidApiSession = 2; + InvalidSession = 3; + WrongSessionType = 4; + InvalidEdgeRouterForSession = 5; + InvalidService = 6; + TunnelingNotEnabled = 7; + InvalidTerminator = 8; + InvalidPrecedence = 9; + InvalidCost = 10; + EncryptionDataMissing = 11; +} + +enum PrecedenceValue { + Default = 0; + Required = 1; + Failed = 2; +} + +enum Flag { + ZERO = 0; + + // FIN is an edge payload flag used to signal communication ends + FIN = 1; + // TRACE_UUID indicates that peer will send data messages with specially constructed UUID headers + TRACE_UUID = 2; + // MULTIPART indicates that peer can accept multipart data messages + MULTIPART = 4; + // STREAM indicates connection with stream semantics + // this allows consolidation of payloads to lower overhead + STREAM = 8; + // MULTIPART_MSG set on data message with multiple payloads + MULTIPART_MSG = 16; +} + message PostureResponses { repeated PostureResponse responses = 1; } diff --git a/ziti/edge/messages.go b/ziti/edge/messages.go index 6006a907..59b0c954 100644 --- a/ziti/edge/messages.go +++ b/ziti/edge/messages.go @@ -42,79 +42,89 @@ const ( ContentTypeTraceRoute = int32(edge_client_pb.ContentType_TraceRouteType) ContentTypeTraceRouteResponse = int32(edge_client_pb.ContentType_TraceRouteResponseType) + ContentTypeConnInspectRequest = int32(edge_client_pb.ContentType_ConnInspectRequest) + ContentTypeConnInspectResponse = int32(edge_client_pb.ContentType_ConnInspectResponse) + ContentTypeBindSuccess = int32(edge_client_pb.ContentType_BindSuccess) + ContentTypeUpdateToken = int32(edge_client_pb.ContentType_UpdateTokenType) ContentTypeUpdateTokenSuccess = int32(edge_client_pb.ContentType_UpdateTokenSuccessType) ContentTypeUpdateTokenFailure = int32(edge_client_pb.ContentType_UpdateTokenFailureType) ContentTypePostureResponse = int32(edge_client_pb.ContentType_PostureResponseType) +) - ContentTypeConnInspectRequest = 60798 - ContentTypeConnInspectResponse = 60799 - ContentTypeBindSuccess = 60800 - - ConnIdHeader = 1000 - SeqHeader = 1001 - SessionTokenHeader = 1002 - PublicKeyHeader = 1003 - CostHeader = 1004 - PrecedenceHeader = 1005 - TerminatorIdentityHeader = 1006 - TerminatorIdentitySecretHeader = 1007 - CallerIdHeader = 1008 - CryptoMethodHeader = 1009 - FlagsHeader = 1010 - AppDataHeader = 1011 - RouterProvidedConnId = 1012 - HealthStatusHeader = 1013 - ErrorCodeHeader = 1014 - TimestampHeader = 1015 - TraceHopCountHeader = 1016 - TraceHopTypeHeader = 1017 - TraceHopIdHeader = 1018 - TraceSourceRequestIdHeader = 1019 - TraceError = 1020 - ListenerId = 1021 - ConnTypeHeader = 1022 - SupportsInspectHeader = 1023 - SupportsBindSuccessHeader = 1024 - ConnectionMarkerHeader = 1025 - CircuitIdHeader = 1026 - StickinessTokenHeader = 1027 - - ErrorCodeInternal = 1 - ErrorCodeInvalidApiSession = 2 - ErrorCodeInvalidSession = 3 - ErrorCodeWrongSessionType = 4 - ErrorCodeInvalidEdgeRouterForSession = 5 - ErrorCodeInvalidService = 6 - ErrorCodeTunnelingNotEnabled = 7 - ErrorCodeInvalidTerminator = 8 - ErrorCodeInvalidPrecedence = 9 - ErrorCodeInvalidCost = 10 - ErrorCodeEncryptionDataMissing = 11 - - PrecedenceDefault Precedence = 0 - PrecedenceRequired Precedence = 1 - PrecedenceFailed Precedence = 2 - +const ( // UUIDHeader is put in the reflected range so replies will share the same UUID - UUIDHeader = 128 + UUIDHeader = int32(edge_client_pb.HeaderId_UUID) + + ConnIdHeader = int32(edge_client_pb.HeaderId_ConnId) + SeqHeader = int32(edge_client_pb.HeaderId_Seq) + SessionTokenHeader = int32(edge_client_pb.HeaderId_SessionToken) + PublicKeyHeader = int32(edge_client_pb.HeaderId_PublicKey) + CostHeader = int32(edge_client_pb.HeaderId_Cost) + PrecedenceHeader = int32(edge_client_pb.HeaderId_Precedence) + TerminatorIdentityHeader = int32(edge_client_pb.HeaderId_TerminatorIdentity) + TerminatorIdentitySecretHeader = int32(edge_client_pb.HeaderId_TerminatorIdentitySecret) + CallerIdHeader = int32(edge_client_pb.HeaderId_CallerId) + CryptoMethodHeader = int32(edge_client_pb.HeaderId_CryptoMethod) + FlagsHeader = int32(edge_client_pb.HeaderId_Flags) + AppDataHeader = int32(edge_client_pb.HeaderId_AppData) + RouterProvidedConnId = int32(edge_client_pb.HeaderId_RouterProvidedConnId) + HealthStatusHeader = int32(edge_client_pb.HeaderId_HealthStatus) + ErrorCodeHeader = int32(edge_client_pb.HeaderId_ErrorCode) + TimestampHeader = int32(edge_client_pb.HeaderId_Timestamp) + TraceHopCountHeader = int32(edge_client_pb.HeaderId_TraceHopCount) + TraceHopTypeHeader = int32(edge_client_pb.HeaderId_TraceHopType) + TraceHopIdHeader = int32(edge_client_pb.HeaderId_TraceHopId) + TraceSourceRequestIdHeader = int32(edge_client_pb.HeaderId_TraceSourceRequestId) + TraceError = int32(edge_client_pb.HeaderId_TraceError) + ListenerId = int32(edge_client_pb.HeaderId_ListenerId) + ConnTypeHeader = int32(edge_client_pb.HeaderId_ConnType) + SupportsInspectHeader = int32(edge_client_pb.HeaderId_SupportsInspect) + SupportsBindSuccessHeader = int32(edge_client_pb.HeaderId_SupportsBindSuccess) + ConnectionMarkerHeader = int32(edge_client_pb.HeaderId_ConnectionMarker) + CircuitIdHeader = int32(edge_client_pb.HeaderId_CircuitId) + StickinessTokenHeader = int32(edge_client_pb.HeaderId_StickinessToken) +) + +const ( + ErrorCodeInternal = int32(edge_client_pb.Error_Internal) + ErrorCodeInvalidApiSession = int32(edge_client_pb.Error_InvalidApiSession) + ErrorCodeInvalidSession = int32(edge_client_pb.Error_InvalidSession) + ErrorCodeWrongSessionType = int32(edge_client_pb.Error_WrongSessionType) + ErrorCodeInvalidEdgeRouterForSession = int32(edge_client_pb.Error_InvalidEdgeRouterForSession) + ErrorCodeInvalidService = int32(edge_client_pb.Error_InvalidService) + ErrorCodeTunnelingNotEnabled = int32(edge_client_pb.Error_TunnelingNotEnabled) + ErrorCodeInvalidTerminator = int32(edge_client_pb.Error_InvalidTerminator) + ErrorCodeInvalidPrecedence = int32(edge_client_pb.Error_InvalidPrecedence) + ErrorCodeInvalidCost = int32(edge_client_pb.Error_InvalidCost) + ErrorCodeEncryptionDataMissing = int32(edge_client_pb.Error_EncryptionDataMissing) +) + +const ( + PrecedenceDefault = Precedence(edge_client_pb.PrecedenceValue_Default) + PrecedenceRequired = Precedence(edge_client_pb.PrecedenceValue_Required) + PrecedenceFailed = Precedence(edge_client_pb.PrecedenceValue_Failed) +) +const ( // CryptoMethodLibsodium are used to indicate the crypto engine in use CryptoMethodLibsodium CryptoMethod = 0 // default: crypto_kx_*, crypto_secretstream_* CryptoMethodSSL CryptoMethod = 1 // OpenSSL(possibly with FIPS): ECDH, AES256-GCM +) +const ( // FIN is an edge payload flag used to signal communication ends - FIN = 0x1 + FIN = uint32(edge_client_pb.Flag_FIN) // TRACE_UUID indicates that peer will send data messages with specially constructed UUID headers - TRACE_UUID = 1 << 1 + TRACE_UUID = uint32(edge_client_pb.Flag_TRACE_UUID) // MULTIPART indicates that peer can accept multipart data messages - MULTIPART = 1 << 2 + MULTIPART = uint32(edge_client_pb.Flag_MULTIPART) // STREAM indicates connection with stream semantics // this allows consolidation of payloads to lower overhead - STREAM = 1 << 3 + STREAM = uint32(edge_client_pb.Flag_STREAM) // MULTIPART_MSG set on data message with multiple payloads - MULTIPART_MSG = 1 << 4 + MULTIPART_MSG = uint32(edge_client_pb.Flag_MULTIPART_MSG) ) type CryptoMethod byte diff --git a/ziti/edge/network/conn.go b/ziti/edge/network/conn.go index cc91865d..aaf87ac2 100644 --- a/ziti/edge/network/conn.go +++ b/ziti/edge/network/conn.go @@ -99,13 +99,11 @@ func (conn *edgeConn) Write(data []byte) (int, error) { } } -var finHeaders = map[int32][]byte{ - edge.FlagsHeader: {edge.FIN, 0, 0, 0}, -} - func (conn *edgeConn) CloseWrite() error { if conn.sentFIN.CompareAndSwap(false, true) { - _, err := conn.MsgChannel.WriteTraced(nil, nil, finHeaders) + headers := channel.Headers{} + headers.PutUint32Header(edge.FlagsHeader, edge.FIN) + _, err := conn.MsgChannel.WriteTraced(nil, nil, headers) return err }