diff --git a/cli/reporter/cnquery_report.pb.go b/cli/reporter/cnquery_report.pb.go index f2fe7e78ca..8dffe1a706 100644 --- a/cli/reporter/cnquery_report.pb.go +++ b/cli/reporter/cnquery_report.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: cnquery_report.proto package reporter diff --git a/explorer/cnquery_explorer.pb.go b/explorer/cnquery_explorer.pb.go index 69e9c55056..eed7139cb0 100644 --- a/explorer/cnquery_explorer.pb.go +++ b/explorer/cnquery_explorer.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: cnquery_explorer.proto package explorer @@ -91,12 +91,21 @@ func (Action) EnumDescriptor() ([]byte, []int) { type ScoringSystem int32 const ( + // Default value, should not be used ScoringSystem_SCORING_UNSPECIFIED ScoringSystem = 0 - ScoringSystem_WEIGHTED ScoringSystem = 1 - ScoringSystem_WORST ScoringSystem = 2 - ScoringSystem_AVERAGE ScoringSystem = 3 - ScoringSystem_DATA_ONLY ScoringSystem = 4 - ScoringSystem_IGNORE_SCORE ScoringSystem = 5 + // Weighted scoring mechanism which uses the weight defined at the query + // level to calculate the score. + ScoringSystem_WEIGHTED ScoringSystem = 1 + // Worst scoring mechanism which uses the worst score of all findings + // to calculate the policy score. + ScoringSystem_WORST ScoringSystem = 2 + // Average scoring mechanism which uses the average score of all findings + // to calculate the policy score. + ScoringSystem_AVERAGE ScoringSystem = 3 + // Treats the query as data only, no scoring is applied. + ScoringSystem_DATA_ONLY ScoringSystem = 4 + // Ignore scoring mechanism which ignores the score of each query. + ScoringSystem_IGNORE_SCORE ScoringSystem = 5 // Experimental: BANDED scoring mechanism which creates a score based on // the 4 categories of criticality (critical, high, medium, low) and // positions scores so that: @@ -1209,14 +1218,19 @@ func (x *QueryPackDocs) GetDesc() string { return "" } +// Documentation for Mquery type MqueryDocs struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Desc string `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"` - Audit string `protobuf:"bytes,2,opt,name=audit,proto3" json:"audit,omitempty"` - Refs []*MqueryRef `protobuf:"bytes,4,rep,name=refs,proto3" json:"refs,omitempty"` + // Description of the query + Desc string `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"` + // Optional. Audit instructions to verify the query results + Audit string `protobuf:"bytes,2,opt,name=audit,proto3" json:"audit,omitempty"` + // Optional. References to external sources, typical URLs + Refs []*MqueryRef `protobuf:"bytes,4,rep,name=refs,proto3" json:"refs,omitempty"` + // Optional. Remediation instructions for the query Remediation *Remediation `protobuf:"bytes,5,opt,name=remediation,proto3" json:"remediation,omitempty"` } @@ -1278,11 +1292,14 @@ func (x *MqueryDocs) GetRemediation() *Remediation { return nil } +// Remediation is used to provide a fix for a check. type Remediation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // items is a list of TypedDoc items that include the description of the + // remediation for different platforms. Items []*TypedDoc `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` } @@ -1323,6 +1340,7 @@ func (x *Remediation) GetItems() []*TypedDoc { return nil } +// A typed documentation for a remediation type TypedDoc struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1414,12 +1432,15 @@ func (x *TypedDoc) GetTags() map[string]string { return nil } +// Author is used to identify the author of a query type Author struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Name of the author + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Email of the author Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` } @@ -1467,13 +1488,16 @@ func (x *Author) GetEmail() string { return "" } +// MqueryRef is used to reference external sources type MqueryRef struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // Title of the reference Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + // URL of the reference + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` } func (x *MqueryRef) Reset() { diff --git a/explorer/cnquery_explorer.proto b/explorer/cnquery_explorer.proto index 47d650783d..b4b0787174 100644 --- a/explorer/cnquery_explorer.proto +++ b/explorer/cnquery_explorer.proto @@ -163,11 +163,20 @@ message Mquery { // protolint:disable ENUM_FIELD_NAMES_PREFIX // protolint:disable ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH enum ScoringSystem { + // Default value, should not be used SCORING_UNSPECIFIED = 0; + // Weighted scoring mechanism which uses the weight defined at the query + // level to calculate the score. WEIGHTED = 1; + // Worst scoring mechanism which uses the worst score of all findings + // to calculate the policy score. WORST = 2; + // Average scoring mechanism which uses the average score of all findings + // to calculate the policy score. AVERAGE = 3; + // Treats the query as data only, no scoring is applied. DATA_ONLY = 4; + // Ignore scoring mechanism which ignores the score of each query. IGNORE_SCORE = 5; // Experimental: BANDED scoring mechanism which creates a score based on // the 4 categories of criticality (critical, high, medium, low) and @@ -203,19 +212,27 @@ message QueryPackDocs { string desc = 1; } +// Documentation for Mquery message MqueryDocs { reserved 3; - + // Description of the query string desc = 1; + // Optional. Audit instructions to verify the query results string audit = 2; + // Optional. References to external sources, typical URLs repeated MqueryRef refs = 4; + // Optional. Remediation instructions for the query Remediation remediation = 5; } +// Remediation is used to provide a fix for a check. message Remediation { + // items is a list of TypedDoc items that include the description of the + // remediation for different platforms. repeated TypedDoc items = 1; } +// A typed documentation for a remediation message TypedDoc { // Identifier string id = 1; @@ -231,13 +248,19 @@ message TypedDoc { map tags = 22; } +// Author is used to identify the author of a query message Author { + // Name of the author string name = 1; + // Email of the author string email = 2; } +// MqueryRef is used to reference external sources message MqueryRef { + // Title of the reference string title = 1; + // URL of the reference string url = 2; } diff --git a/explorer/resources/cnquery_resources_explorer.pb.go b/explorer/resources/cnquery_resources_explorer.pb.go index 37fd0827c0..5585d9b295 100644 --- a/explorer/resources/cnquery_resources_explorer.pb.go +++ b/explorer/resources/cnquery_resources_explorer.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: cnquery_resources_explorer.proto package resources diff --git a/explorer/scan/cnquery_explorer_scan.pb.go b/explorer/scan/cnquery_explorer_scan.pb.go index c697805d24..089345f550 100644 --- a/explorer/scan/cnquery_explorer_scan.pb.go +++ b/explorer/scan/cnquery_explorer_scan.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: cnquery_explorer_scan.proto package scan diff --git a/llx/llx.pb.go b/llx/llx.pb.go index fd9b1d00b4..fe9e2fe4ad 100644 --- a/llx/llx.pb.go +++ b/llx/llx.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: llx.proto package llx diff --git a/providers-sdk/v1/inventory/inventory.pb.go b/providers-sdk/v1/inventory/inventory.pb.go index 6ae36eef19..734d5a65dd 100644 --- a/providers-sdk/v1/inventory/inventory.pb.go +++ b/providers-sdk/v1/inventory/inventory.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: inventory.proto package inventory diff --git a/providers-sdk/v1/plugin/plugin.pb.go b/providers-sdk/v1/plugin/plugin.pb.go index 844819aa20..bb5f8169f7 100644 --- a/providers-sdk/v1/plugin/plugin.pb.go +++ b/providers-sdk/v1/plugin/plugin.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: plugin.proto package plugin diff --git a/providers-sdk/v1/plugin/plugin_grpc.pb.go b/providers-sdk/v1/plugin/plugin_grpc.pb.go index 63e57fc937..a784a690f4 100644 --- a/providers-sdk/v1/plugin/plugin_grpc.pb.go +++ b/providers-sdk/v1/plugin/plugin_grpc.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.29.0 +// - protoc v5.29.2 // source: plugin.proto package plugin diff --git a/providers-sdk/v1/resources/resources.pb.go b/providers-sdk/v1/resources/resources.pb.go index 19797b6200..2f749eb329 100644 --- a/providers-sdk/v1/resources/resources.pb.go +++ b/providers-sdk/v1/resources/resources.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: resources.proto package resources diff --git a/providers-sdk/v1/upstream/health/errors.pb.go b/providers-sdk/v1/upstream/health/errors.pb.go index 392f24e7d2..76b58517e2 100644 --- a/providers-sdk/v1/upstream/health/errors.pb.go +++ b/providers-sdk/v1/upstream/health/errors.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: errors.proto package health diff --git a/providers-sdk/v1/upstream/health/health.pb.go b/providers-sdk/v1/upstream/health/health.pb.go index 01526cf4d8..690bd4a58a 100644 --- a/providers-sdk/v1/upstream/health/health.pb.go +++ b/providers-sdk/v1/upstream/health/health.pb.go @@ -18,7 +18,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: health.proto package health diff --git a/providers-sdk/v1/upstream/mvd/cvss/cvss.pb.go b/providers-sdk/v1/upstream/mvd/cvss/cvss.pb.go index 99a0e3505b..066cd7cf5a 100644 --- a/providers-sdk/v1/upstream/mvd/cvss/cvss.pb.go +++ b/providers-sdk/v1/upstream/mvd/cvss/cvss.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: cvss.proto package cvss diff --git a/providers-sdk/v1/upstream/mvd/mvd.pb.go b/providers-sdk/v1/upstream/mvd/mvd.pb.go index 9c87f8e8fd..ce2bac7544 100644 --- a/providers-sdk/v1/upstream/mvd/mvd.pb.go +++ b/providers-sdk/v1/upstream/mvd/mvd.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: mvd.proto package mvd diff --git a/providers-sdk/v1/upstream/upstream.pb.go b/providers-sdk/v1/upstream/upstream.pb.go index 39d7475118..9dc91ca2ba 100644 --- a/providers-sdk/v1/upstream/upstream.pb.go +++ b/providers-sdk/v1/upstream/upstream.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: upstream.proto package upstream diff --git a/providers-sdk/v1/vault/vault.pb.go b/providers-sdk/v1/vault/vault.pb.go index ad919c8cb4..de9bc8bf44 100644 --- a/providers-sdk/v1/vault/vault.pb.go +++ b/providers-sdk/v1/vault/vault.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: vault.proto package vault diff --git a/sbom/sbom.pb.go b/sbom/sbom.pb.go index c07a8f5b95..0d3ccbaa35 100644 --- a/sbom/sbom.pb.go +++ b/sbom/sbom.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: sbom.proto package sbom diff --git a/shared/proto/cnquery.pb.go b/shared/proto/cnquery.pb.go index 0ecb330e8a..c51a6a1f1a 100644 --- a/shared/proto/cnquery.pb.go +++ b/shared/proto/cnquery.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 -// protoc v5.29.0 +// protoc v5.29.2 // source: cnquery.proto package proto diff --git a/shared/proto/cnquery_grpc.pb.go b/shared/proto/cnquery_grpc.pb.go index 6c9d541e29..ece3ef6c0e 100644 --- a/shared/proto/cnquery_grpc.pb.go +++ b/shared/proto/cnquery_grpc.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.29.0 +// - protoc v5.29.2 // source: cnquery.proto package proto