Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Add SlackRealtime proto message (#803)
trufflesteeeve57e46f9b761b
diff --git a/pkg/pb/sourcespb/sources.pb.go b/pkg/pb/sourcespb/sources.pb.goindex 21e403fe1..06cae7447 100644--- a/pkg/pb/sourcespb/sources.pb.go+++ b/pkg/pb/sourcespb/sources.pb.go@@ -55,6 +55,7 @@ const (SourceType_SOURCE_TYPE_JFROG_ARTIFACTORY SourceType = 24SourceType_SOURCE_TYPE_SYSLOG SourceType = 25SourceType_SOURCE_TYPE_PUBLIC_EVENT_MONITORING SourceType = 26+ SourceType_SOURCE_TYPE_SLACK_REALTIME SourceType = 27)// Enum value maps for SourceType.@@ -87,6 +88,7 @@ var (24: "SOURCE_TYPE_JFROG_ARTIFACTORY",25: "SOURCE_TYPE_SYSLOG",26: "SOURCE_TYPE_PUBLIC_EVENT_MONITORING",+ 27: "SOURCE_TYPE_SLACK_REALTIME",}SourceType_value = map[string]int32{"SOURCE_TYPE_AZURE_STORAGE": 0,@@ -116,6 +118,7 @@ var ("SOURCE_TYPE_JFROG_ARTIFACTORY": 24,"SOURCE_TYPE_SYSLOG": 25,"SOURCE_TYPE_PUBLIC_EVENT_MONITORING": 26,+ "SOURCE_TYPE_SLACK_REALTIME": 27,})@@ -2423,6 +2426,72 @@ type PublicEventMonitoring_Unauthenticated struct {func (*PublicEventMonitoring_Unauthenticated) isPublicEventMonitoring_Credential() {}+type SlackRealtime struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Types that are assignable to Credential:+ // *SlackRealtime_Tokens+ Credential isSlackRealtime_Credential `protobuf_oneof:"credential"`+}++func (x *SlackRealtime) Reset() {+ *x = SlackRealtime{}+ if protoimpl.UnsafeEnabled {+ mi := &file_sources_proto_msgTypes[25]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *SlackRealtime) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*SlackRealtime) ProtoMessage() {}++func (x *SlackRealtime) ProtoReflect() protoreflect.Message {+ mi := &file_sources_proto_msgTypes[25]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use SlackRealtime.ProtoReflect.Descriptor instead.+func (*SlackRealtime) Descriptor() ([]byte, []int) {+ return file_sources_proto_rawDescGZIP(), []int{25}+}++func (m *SlackRealtime) GetCredential() isSlackRealtime_Credential {+ if m != nil {+ return m.Credential+ }+ return nil+}++func (x *SlackRealtime) GetTokens() *credentialspb.SlackTokens {+ if x, ok := x.GetCredential().(*SlackRealtime_Tokens); ok {+ return x.Tokens+ }+ return nil+}++type isSlackRealtime_Credential interface {+ isSlackRealtime_Credential()+}++type SlackRealtime_Tokens struct {+ Tokens *credentialspb.SlackTokens `protobuf:"bytes,1,opt,name=tokens,proto3,oneof"`+}++func (*SlackRealtime_Tokens) isSlackRealtime_Credential() {}+var File_sources_proto protoreflect.FileDescriptorvar file_sources_proto_rawDesc = []byte{@@ -2723,59 +2792,66 @@ var file_sources_proto_rawDesc = []byte{0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,0x6d, 0x70, 0x52, 0x05, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x72, 0x65,- 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2a, 0xf9, 0x05, 0x0a, 0x0a, 0x53, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x52,- 0x41, 0x47, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x01,- 0x12, 0x18, 0x0a, 0x14, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x43, 0x49, 0x52, 0x43, 0x4c, 0x45, 0x43, 0x49, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x4f,- 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x4c, 0x55,- 0x45, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4f, 0x43, 0x4b, 0x45, 0x52, 0x48, 0x55, 0x42, 0x5f,- 0x49, 0x4d, 0x41, 0x47, 0x45, 0x53, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x4f, 0x55, 0x52,- 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x43, 0x52, 0x10, 0x05, 0x12, 0x13, 0x0a,- 0x0f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x43, 0x53,- 0x10, 0x06, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50,- 0x45, 0x5f, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x10, 0x07, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x4f,- 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43,- 0x5f, 0x47, 0x49, 0x54, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10, 0x09, 0x12, 0x14,- 0x0a, 0x10, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4a, 0x49,- 0x52, 0x41, 0x10, 0x0a, 0x12, 0x24, 0x0a, 0x20, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54,- 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x50, 0x4d, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x44, 0x5f,- 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47, 0x45, 0x53, 0x10, 0x0b, 0x12, 0x25, 0x0a, 0x21, 0x53, 0x4f,- 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x59, 0x50, 0x49, 0x5f, 0x55,- 0x4e, 0x41, 0x55, 0x54, 0x48, 0x44, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47, 0x45, 0x53, 0x10,- 0x0c, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45,- 0x5f, 0x53, 0x33, 0x10, 0x0d, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4c, 0x41, 0x43, 0x4b, 0x10, 0x0e, 0x12, 0x1a, 0x0a, 0x16,- 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45,- 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x0f, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x4f, 0x55, 0x52,- 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x10, 0x10, 0x12, 0x14, 0x0a,- 0x10, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x53,- 0x54, 0x10, 0x11, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59,- 0x50, 0x45, 0x5f, 0x53, 0x33, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x45, 0x44, 0x10, 0x12,- 0x12, 0x2a, 0x0a, 0x26, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,- 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54,- 0x49, 0x43, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x47, 0x10, 0x13, 0x12, 0x19, 0x0a, 0x15,- 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x55, 0x49, 0x4c,- 0x44, 0x4b, 0x49, 0x54, 0x45, 0x10, 0x14, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43,- 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x45, 0x52, 0x52, 0x49, 0x54, 0x10, 0x15, 0x12,- 0x17, 0x0a, 0x13, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4a,- 0x45, 0x4e, 0x4b, 0x49, 0x4e, 0x53, 0x10, 0x16, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x4f, 0x55, 0x52,- 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x41, 0x4d, 0x53, 0x10, 0x17, 0x12,- 0x21, 0x0a, 0x1d, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4a,- 0x46, 0x52, 0x4f, 0x47, 0x5f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x59,- 0x10, 0x18, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50,- 0x45, 0x5f, 0x53, 0x59, 0x53, 0x4c, 0x4f, 0x47, 0x10, 0x19, 0x12, 0x27, 0x0a, 0x23, 0x53, 0x4f,- 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43,- 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x4e, 0x49, 0x54, 0x4f, 0x52, 0x49, 0x4e,- 0x47, 0x10, 0x1a, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,- 0x6d, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,- 0x79, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x68, 0x6f, 0x67, 0x2f, 0x76, 0x33, 0x2f,- 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x70, 0x62,- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x51, 0x0a, 0x0d, 0x53, 0x6c, 0x61, 0x63, 0x6b,+ 0x52, 0x65, 0x61, 0x6c, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65,+ 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,+ 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x54, 0x6f, 0x6b, 0x65,+ 0x6e, 0x73, 0x48, 0x00, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x42, 0x0c, 0x0a, 0x0a,+ 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x2a, 0x99, 0x06, 0x0a, 0x0a, 0x53,+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x4f, 0x55,+ 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x53,+ 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x4f, 0x55, 0x52,+ 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45,+ 0x54, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x43, 0x49, 0x52, 0x43, 0x4c, 0x45, 0x43, 0x49, 0x10, 0x02, 0x12, 0x1a, 0x0a,+ 0x16, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4e,+ 0x46, 0x4c, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x4f, 0x55,+ 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4f, 0x43, 0x4b, 0x45, 0x52, 0x48,+ 0x55, 0x42, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x53, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53,+ 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x43, 0x52, 0x10, 0x05,+ 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x47, 0x43, 0x53, 0x10, 0x06, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f,+ 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x10, 0x07, 0x12, 0x1a, 0x0a,+ 0x16, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x55, 0x42,+ 0x4c, 0x49, 0x43, 0x5f, 0x47, 0x49, 0x54, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55,+ 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10,+ 0x09, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45,+ 0x5f, 0x4a, 0x49, 0x52, 0x41, 0x10, 0x0a, 0x12, 0x24, 0x0a, 0x20, 0x53, 0x4f, 0x55, 0x52, 0x43,+ 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x50, 0x4d, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54,+ 0x48, 0x44, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47, 0x45, 0x53, 0x10, 0x0b, 0x12, 0x25, 0x0a,+ 0x21, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x59, 0x50,+ 0x49, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x44, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47,+ 0x45, 0x53, 0x10, 0x0c, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54,+ 0x59, 0x50, 0x45, 0x5f, 0x53, 0x33, 0x10, 0x0d, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x4f, 0x55, 0x52,+ 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4c, 0x41, 0x43, 0x4b, 0x10, 0x0e, 0x12,+ 0x1a, 0x0a, 0x16, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46,+ 0x49, 0x4c, 0x45, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x0f, 0x12, 0x13, 0x0a, 0x0f, 0x53,+ 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x10, 0x10,+ 0x12, 0x14, 0x0a, 0x10, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,+ 0x54, 0x45, 0x53, 0x54, 0x10, 0x11, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,+ 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x33, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x45,+ 0x44, 0x10, 0x12, 0x12, 0x2a, 0x0a, 0x26, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59,+ 0x50, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x5f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48,+ 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x47, 0x10, 0x13, 0x12,+ 0x19, 0x0a, 0x15, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42,+ 0x55, 0x49, 0x4c, 0x44, 0x4b, 0x49, 0x54, 0x45, 0x10, 0x14, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f,+ 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x45, 0x52, 0x52, 0x49, 0x54,+ 0x10, 0x15, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x4a, 0x45, 0x4e, 0x4b, 0x49, 0x4e, 0x53, 0x10, 0x16, 0x12, 0x15, 0x0a, 0x11, 0x53,+ 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x41, 0x4d, 0x53,+ 0x10, 0x17, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x4a, 0x46, 0x52, 0x4f, 0x47, 0x5f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54,+ 0x4f, 0x52, 0x59, 0x10, 0x18, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f,+ 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x59, 0x53, 0x4c, 0x4f, 0x47, 0x10, 0x19, 0x12, 0x27, 0x0a,+ 0x23, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x55, 0x42,+ 0x4c, 0x49, 0x43, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x4d, 0x4f, 0x4e, 0x49, 0x54, 0x4f,+ 0x52, 0x49, 0x4e, 0x47, 0x10, 0x1a, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,+ 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4c, 0x41, 0x43, 0x4b, 0x5f, 0x52, 0x45, 0x41, 0x4c,+ 0x54, 0x49, 0x4d, 0x45, 0x10, 0x1b, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,+ 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x73, 0x65, 0x63, 0x75,+ 0x72, 0x69, 0x74, 0x79, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x68, 0x6f, 0x67, 0x2f,+ 0x76, 0x33, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,+ 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -2791,7 +2867,7 @@ func file_sources_proto_rawDescGZIP() []byte {}var file_sources_proto_enumTypes = make([]protoimpl.EnumInfo, 2)-var file_sources_proto_msgTypes = make([]protoimpl.MessageInfo, 25)+var file_sources_proto_msgTypes = make([]protoimpl.MessageInfo, 26)var file_sources_proto_goTypes = []interface{}{(SourceType)(0), // 0: sources.SourceType(Confluence_GetAllSpacesScope)(0), // 1: sources.Confluence.GetAllSpacesScope@@ -2820,59 +2896,61 @@ var file_sources_proto_goTypes = []interface{}{(*Artifactory)(nil), // 24: sources.Artifactory(*Syslog)(nil), // 25: sources.Syslog(*PublicEventMonitoring)(nil), // 26: sources.PublicEventMonitoring- (*durationpb.Duration)(nil), // 27: google.protobuf.Duration- (*anypb.Any)(nil), // 28: google.protobuf.Any- (*credentialspb.BasicAuth)(nil), // 29: credentials.BasicAuth- (*credentialspb.Unauthenticated)(nil), // 30: credentials.Unauthenticated- (*credentialspb.Oauth2)(nil), // 31: credentials.Oauth2- (*credentialspb.KeySecret)(nil), // 32: credentials.KeySecret- (*credentialspb.GitHubApp)(nil), // 33: credentials.GitHubApp- (*credentialspb.CloudEnvironment)(nil), // 34: credentials.CloudEnvironment- (*credentialspb.SlackTokens)(nil), // 35: credentials.SlackTokens- (*credentialspb.Header)(nil), // 36: credentials.Header- (*credentialspb.ClientCredentials)(nil), // 37: credentials.ClientCredentials- (*timestamppb.Timestamp)(nil), // 38: google.protobuf.Timestamp+ (*SlackRealtime)(nil), // 27: sources.SlackRealtime+ (*durationpb.Duration)(nil), // 28: google.protobuf.Duration+ (*anypb.Any)(nil), // 29: google.protobuf.Any+ (*credentialspb.BasicAuth)(nil), // 30: credentials.BasicAuth+ (*credentialspb.Unauthenticated)(nil), // 31: credentials.Unauthenticated+ (*credentialspb.Oauth2)(nil), // 32: credentials.Oauth2+ (*credentialspb.KeySecret)(nil), // 33: credentials.KeySecret+ (*credentialspb.GitHubApp)(nil), // 34: credentials.GitHubApp+ (*credentialspb.CloudEnvironment)(nil), // 35: credentials.CloudEnvironment+ (*credentialspb.SlackTokens)(nil), // 36: credentials.SlackTokens+ (*credentialspb.Header)(nil), // 37: credentials.Header+ (*credentialspb.ClientCredentials)(nil), // 38: credentials.ClientCredentials+ (*timestamppb.Timestamp)(nil), // 39: google.protobuf.Timestamp}var file_sources_proto_depIdxs = []int32{- 27, // 0: sources.LocalSource.scan_interval:type_name -> google.protobuf.Duration- 28, // 1: sources.LocalSource.connection:type_name -> google.protobuf.Any- 29, // 2: sources.AzureStorage.basic_auth:type_name -> credentials.BasicAuth- 30, // 3: sources.AzureStorage.unauthenticated:type_name -> credentials.Unauthenticated- 31, // 4: sources.Bitbucket.oauth:type_name -> credentials.Oauth2- 29, // 5: sources.Bitbucket.basic_auth:type_name -> credentials.BasicAuth- 30, // 6: sources.Confluence.unauthenticated:type_name -> credentials.Unauthenticated- 29, // 7: sources.Confluence.basic_auth:type_name -> credentials.BasicAuth+ 28, // 0: sources.LocalSource.scan_interval:type_name -> google.protobuf.Duration+ 29, // 1: sources.LocalSource.connection:type_name -> google.protobuf.Any+ 30, // 2: sources.AzureStorage.basic_auth:type_name -> credentials.BasicAuth+ 31, // 3: sources.AzureStorage.unauthenticated:type_name -> credentials.Unauthenticated+ 32, // 4: sources.Bitbucket.oauth:type_name -> credentials.Oauth2+ 30, // 5: sources.Bitbucket.basic_auth:type_name -> credentials.BasicAuth+ 31, // 6: sources.Confluence.unauthenticated:type_name -> credentials.Unauthenticated+ 30, // 7: sources.Confluence.basic_auth:type_name -> credentials.BasicAuth1, // 8: sources.Confluence.spaces_scope:type_name -> sources.Confluence.GetAllSpacesScope- 30, // 9: sources.DockerHub.unauthenticated:type_name -> credentials.Unauthenticated- 32, // 10: sources.ECR.access_key:type_name -> credentials.KeySecret- 29, // 11: sources.Git.basic_auth:type_name -> credentials.BasicAuth- 30, // 12: sources.Git.unauthenticated:type_name -> credentials.Unauthenticated- 31, // 13: sources.GitLab.oauth:type_name -> credentials.Oauth2- 29, // 14: sources.GitLab.basic_auth:type_name -> credentials.BasicAuth- 33, // 15: sources.GitHub.github_app:type_name -> credentials.GitHubApp- 30, // 16: sources.GitHub.unauthenticated:type_name -> credentials.Unauthenticated- 29, // 17: sources.JIRA.basic_auth:type_name -> credentials.BasicAuth- 30, // 18: sources.JIRA.unauthenticated:type_name -> credentials.Unauthenticated- 31, // 19: sources.JIRA.oauth:type_name -> credentials.Oauth2- 30, // 20: sources.NPMUnauthenticatedPackage.unauthenticated:type_name -> credentials.Unauthenticated- 30, // 21: sources.PyPIUnauthenticatedPackage.unauthenticated:type_name -> credentials.Unauthenticated- 32, // 22: sources.S3.access_key:type_name -> credentials.KeySecret- 30, // 23: sources.S3.unauthenticated:type_name -> credentials.Unauthenticated- 34, // 24: sources.S3.cloud_environment:type_name -> credentials.CloudEnvironment- 35, // 25: sources.Slack.tokens:type_name -> credentials.SlackTokens- 29, // 26: sources.Gerrit.basic_auth:type_name -> credentials.BasicAuth- 30, // 27: sources.Gerrit.unauthenticated:type_name -> credentials.Unauthenticated- 29, // 28: sources.Jenkins.basic_auth:type_name -> credentials.BasicAuth- 36, // 29: sources.Jenkins.header:type_name -> credentials.Header- 37, // 30: sources.Teams.authenticated:type_name -> credentials.ClientCredentials- 29, // 31: sources.Artifactory.basic_auth:type_name -> credentials.BasicAuth- 30, // 32: sources.PublicEventMonitoring.unauthenticated:type_name -> credentials.Unauthenticated- 38, // 33: sources.PublicEventMonitoring.since:type_name -> google.protobuf.Timestamp- 34, // [34:34] is the sub-list for method output_type- 34, // [34:34] is the sub-list for method input_type- 34, // [34:34] is the sub-list for extension type_name- 34, // [34:34] is the sub-list for extension extendee- 0, // [0:34] is the sub-list for field type_name+ 31, // 9: sources.DockerHub.unauthenticated:type_name -> credentials.Unauthenticated+ 33, // 10: sources.ECR.access_key:type_name -> credentials.KeySecret+ 30, // 11: sources.Git.basic_auth:type_name -> credentials.BasicAuth+ 31, // 12: sources.Git.unauthenticated:type_name -> credentials.Unauthenticated+ 32, // 13: sources.GitLab.oauth:type_name -> credentials.Oauth2+ 30, // 14: sources.GitLab.basic_auth:type_name -> credentials.BasicAuth+ 34, // 15: sources.GitHub.github_app:type_name -> credentials.GitHubApp+ 31, // 16: sources.GitHub.unauthenticated:type_name -> credentials.Unauthenticated+ 30, // 17: sources.JIRA.basic_auth:type_name -> credentials.BasicAuth+ 31, // 18: sources.JIRA.unauthenticated:type_name -> credentials.Unauthenticated+ 32, // 19: sources.JIRA.oauth:type_name -> credentials.Oauth2+ 31, // 20: sources.NPMUnauthenticatedPackage.unauthenticated:type_name -> credentials.Unauthenticated+ 31, // 21: sources.PyPIUnauthenticatedPackage.unauthenticated:type_name -> credentials.Unauthenticated+ 33, // 22: sources.S3.access_key:type_name -> credentials.KeySecret+ 31, // 23: sources.S3.unauthenticated:type_name -> credentials.Unauthenticated+ 35, // 24: sources.S3.cloud_environment:type_name -> credentials.CloudEnvironment+ 36, // 25: sources.Slack.tokens:type_name -> credentials.SlackTokens+ 30, // 26: sources.Gerrit.basic_auth:type_name -> credentials.BasicAuth+ 31, // 27: sources.Gerrit.unauthenticated:type_name -> credentials.Unauthenticated+ 30, // 28: sources.Jenkins.basic_auth:type_name -> credentials.BasicAuth+ 37, // 29: sources.Jenkins.header:type_name -> credentials.Header+ 38, // 30: sources.Teams.authenticated:type_name -> credentials.ClientCredentials+ 30, // 31: sources.Artifactory.basic_auth:type_name -> credentials.BasicAuth+ 31, // 32: sources.PublicEventMonitoring.unauthenticated:type_name -> credentials.Unauthenticated+ 39, // 33: sources.PublicEventMonitoring.since:type_name -> google.protobuf.Timestamp+ 36, // 34: sources.SlackRealtime.tokens:type_name -> credentials.SlackTokens+ 35, // [35:35] is the sub-list for method output_type+ 35, // [35:35] is the sub-list for method input_type+ 35, // [35:35] is the sub-list for extension type_name+ 35, // [35:35] is the sub-list for extension extendee+ 0, // [0:35] is the sub-list for field type_name}func init() { file_sources_proto_init() }@@ -3181,6 +3259,18 @@ func file_sources_proto_init() {return nil}}+ file_sources_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*SlackRealtime); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }}file_sources_proto_msgTypes[1].OneofWrappers = []interface{}{(*AzureStorage_ConnectionString)(nil),@@ -3266,13 +3356,16 @@ func file_sources_proto_init() {file_sources_proto_msgTypes[24].OneofWrappers = []interface{}{(*PublicEventMonitoring_Unauthenticated)(nil),}+ file_sources_proto_msgTypes[25].OneofWrappers = []interface{}{+ (*SlackRealtime_Tokens)(nil),+ }type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_sources_proto_rawDesc,NumEnums: 2,- NumMessages: 25,+ NumMessages: 26,NumExtensions: 0,NumServices: 0,},diff --git a/pkg/pb/sourcespb/sources.pb.validate.go b/pkg/pb/sourcespb/sources.pb.validate.goindex d0716e802..e681ddfd3 100644--- a/pkg/pb/sourcespb/sources.pb.validate.go+++ b/pkg/pb/sourcespb/sources.pb.validate.go@@ -3806,3 +3806,138 @@ var _ interface {Cause() errorErrorName() string} = PublicEventMonitoringValidationError{}++// Validate checks the field values on SlackRealtime with the rules defined in+// the proto definition for this message. If any rules are violated, the first+// error encountered is returned, or nil if there are no violations.+func (m *SlackRealtime) Validate() error {+ return m.validate(false)+}++// ValidateAll checks the field values on SlackRealtime with the rules defined+// in the proto definition for this message. If any rules are violated, the+// result is a list of violation errors wrapped in SlackRealtimeMultiError, or+// nil if none found.+func (m *SlackRealtime) ValidateAll() error {+ return m.validate(true)+}++func (m *SlackRealtime) validate(all bool) error {+ if m == nil {+ return nil+ }++ var errors []error++ switch m.Credential.(type) {++ case *SlackRealtime_Tokens:++ if all {+ switch v := interface{}(m.GetTokens()).(type) {+ case interface{ ValidateAll() error }:+ if err := v.ValidateAll(); err != nil {+ errors = append(errors, SlackRealtimeValidationError{+ field: "Tokens",+ reason: "embedded message failed validation",+ cause: err,+ })+ }+ case interface{ Validate() error }:+ if err := v.Validate(); err != nil {+ errors = append(errors, SlackRealtimeValidationError{+ field: "Tokens",+ reason: "embedded message failed validation",+ cause: err,+ })+ }+ }+ } else if v, ok := interface{}(m.GetTokens()).(interface{ Validate() error }); ok {+ if err := v.Validate(); err != nil {+ return SlackRealtimeValidationError{+ field: "Tokens",+ reason: "embedded message failed validation",+ cause: err,+ }+ }+ }++ }++ if len(errors) > 0 {+ return SlackRealtimeMultiError(errors)+ }++ return nil+}++// SlackRealtimeMultiError is an error wrapping multiple validation errors+// returned by SlackRealtime.ValidateAll() if the designated constraints+// aren't met.+type SlackRealtimeMultiError []error++// Error returns a concatenation of all the error messages it wraps.+func (m SlackRealtimeMultiError) Error() string {+ var msgs []string+ for _, err := range m {+ msgs = append(msgs, err.Error())+ }+ return strings.Join(msgs, "; ")+}++// AllErrors returns a list of validation violation errors.+func (m SlackRealtimeMultiError) AllErrors() []error { return m }++// SlackRealtimeValidationError is the validation error returned by+// SlackRealtime.Validate if the designated constraints aren't met.+type SlackRealtimeValidationError struct {+ field string+ reason string+ cause error+ key bool+}++// Field function returns field value.+func (e SlackRealtimeValidationError) Field() string { return e.field }++// Reason function returns reason value.+func (e SlackRealtimeValidationError) Reason() string { return e.reason }++// Cause function returns cause value.+func (e SlackRealtimeValidationError) Cause() error { return e.cause }++// Key function returns key value.+func (e SlackRealtimeValidationError) Key() bool { return e.key }++// ErrorName returns error name.+func (e SlackRealtimeValidationError) ErrorName() string { return "SlackRealtimeValidationError" }++// Error satisfies the builtin error interface+func (e SlackRealtimeValidationError) Error() string {+ cause := ""+ if e.cause != nil {+ cause = fmt.Sprintf(" | caused by: %v", e.cause)+ }++ key := ""+ if e.key {+ key = "key for "+ }++ return fmt.Sprintf(+ "invalid %sSlackRealtime.%s: %s%s",+ key,+ e.field,+ e.reason,+ cause)+}++var _ error = SlackRealtimeValidationError{}++var _ interface {+ Field() string+ Reason() string+ Key() bool+ Cause() error+ ErrorName() string+} = SlackRealtimeValidationError{}diff --git a/proto/sources.proto b/proto/sources.protoindex 55fdad9cd..1f958b29d 100644--- a/proto/sources.proto+++ b/proto/sources.proto@@ -39,6 +39,7 @@ enum SourceType {SOURCE_TYPE_JFROG_ARTIFACTORY = 24;SOURCE_TYPE_SYSLOG = 25;SOURCE_TYPE_PUBLIC_EVENT_MONITORING = 26;+ SOURCE_TYPE_SLACK_REALTIME = 27;}message LocalSource {@@ -159,7 +160,6 @@ message JIRA {credentials.BasicAuth basic_auth = 2;credentials.Unauthenticated unauthenticated = 3;credentials.Oauth2 oauth = 4;-}repeated string projects = 5;}@@ -257,3 +257,9 @@ message PublicEventMonitoring {int64 max_depth = 3;google.protobuf.Timestamp since = 4;}++message SlackRealtime {+ oneof credential {+ credentials.SlackTokens tokens = 1;+ }+}