gitlab-secret_detection 0.10.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a749972fd361e8f84074f6b292f0a244ad5f86dd9d78b046cdd5593fed8ead8e
|
4
|
+
data.tar.gz: bdbc88f40aa8061577bcc4c618e3fc1691ef3b62276509300f8f2ee5be4c3e52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72af511eae50a715a3c5023302ba3eafe7f7dd25af4a420bcc09b797c36fb924d2d70d074f5877bd5e21527347785b743d90b58e779dd90b43e16926f30351ed
|
7
|
+
data.tar.gz: 700627072f35b21367e561343f87dce664bf30e6b627194e56a3fbbe421bbd73794cf4e0f1fc3fae69382da92a4ac1067e2f5a842b51b777a9e8ce490cac49f3
|
@@ -5,7 +5,7 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
|
8
|
-
descriptor_data = "\n\x16secret_detection.proto\x12\x17gitlab.secret_detection\"\
|
8
|
+
descriptor_data = "\n\x16secret_detection.proto\x12\x17gitlab.secret_detection\"Z\n\tExclusion\x12>\n\x0e\x65xclusion_type\x18\x01 \x01(\x0e\x32&.gitlab.secret_detection.ExclusionType\x12\r\n\x05value\x18\x02 \x01(\t\"\xc0\x02\n\x0bScanRequest\x12>\n\x08payloads\x18\x01 \x03(\x0b\x32,.gitlab.secret_detection.ScanRequest.Payload\x12\x19\n\x0ctimeout_secs\x18\x02 \x01(\x02H\x00\x88\x01\x01\x12!\n\x14payload_timeout_secs\x18\x03 \x01(\x02H\x01\x88\x01\x01\x12\x36\n\nexclusions\x18\x04 \x03(\x0b\x32\".gitlab.secret_detection.Exclusion\x12\x0c\n\x04tags\x18\x05 \x03(\t\x1a\x43\n\x07Payload\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\x12\x13\n\x06offset\x18\x03 \x01(\x05H\x00\x88\x01\x01\x42\t\n\x07_offsetB\x0f\n\r_timeout_secsB\x17\n\x15_payload_timeout_secs\"\xa2\x04\n\x0cScanResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32-.gitlab.secret_detection.ScanResponse.Finding\x12\x0e\n\x06status\x18\x02 \x01(\x05\x12>\n\x12\x61pplied_exclusions\x18\x03 \x03(\x0b\x32\".gitlab.secret_detection.Exclusion\x1a\x9d\x01\n\x07\x46inding\x12\x12\n\npayload_id\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\x05\x12\x11\n\x04type\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bline_number\x18\x05 \x01(\x05H\x02\x88\x01\x01\x42\x07\n\x05_typeB\x0e\n\x0c_descriptionB\x0e\n\x0c_line_number\"\xe1\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x10\n\x0cSTATUS_FOUND\x10\x01\x12\x1c\n\x18STATUS_FOUND_WITH_ERRORS\x10\x02\x12\x17\n\x13STATUS_SCAN_TIMEOUT\x10\x03\x12\x1a\n\x16STATUS_PAYLOAD_TIMEOUT\x10\x04\x12\x15\n\x11STATUS_SCAN_ERROR\x10\x05\x12\x16\n\x12STATUS_INPUT_ERROR\x10\x06\x12\x14\n\x10STATUS_NOT_FOUND\x10\x07\x12\x15\n\x11STATUS_AUTH_ERROR\x10\x08*f\n\rExclusionType\x12\x1e\n\x1a\x45XCLUSION_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x45XCLUSION_TYPE_RULE\x10\x01\x12\x1c\n\x18\x45XCLUSION_TYPE_RAW_VALUE\x10\x02\x32\xc1\x01\n\x07Scanner\x12U\n\x04Scan\x12$.gitlab.secret_detection.ScanRequest\x1a%.gitlab.secret_detection.ScanResponse\"\x00\x12_\n\nScanStream\x12$.gitlab.secret_detection.ScanRequest\x1a%.gitlab.secret_detection.ScanResponse\"\x00(\x01\x30\x01\x42 \xea\x02\x1dGitlab::SecretDetection::GRPCb\x06proto3"
|
9
9
|
|
10
10
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
11
|
pool.add_serialized_file(descriptor_data)
|
@@ -13,13 +13,13 @@ pool.add_serialized_file(descriptor_data)
|
|
13
13
|
module Gitlab
|
14
14
|
module SecretDetection
|
15
15
|
module GRPC
|
16
|
+
Exclusion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.secret_detection.Exclusion").msgclass
|
16
17
|
ScanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.secret_detection.ScanRequest").msgclass
|
17
18
|
ScanRequest::Payload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.secret_detection.ScanRequest.Payload").msgclass
|
18
|
-
ScanRequest::Exclusion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.secret_detection.ScanRequest.Exclusion").msgclass
|
19
|
-
ScanRequest::ExclusionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.secret_detection.ScanRequest.ExclusionType").enummodule
|
20
19
|
ScanResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.secret_detection.ScanResponse").msgclass
|
21
20
|
ScanResponse::Finding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.secret_detection.ScanResponse.Finding").msgclass
|
22
21
|
ScanResponse::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.secret_detection.ScanResponse.Status").enummodule
|
22
|
+
ExclusionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitlab.secret_detection.ExclusionType").enummodule
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -7,6 +7,18 @@ package gitlab.secret_detection;
|
|
7
7
|
*/
|
8
8
|
option ruby_package = "Gitlab::SecretDetection::GRPC";
|
9
9
|
|
10
|
+
// Either provide rule type or a particular value to allow during the scan
|
11
|
+
message Exclusion {
|
12
|
+
ExclusionType exclusion_type = 1;
|
13
|
+
string value = 2;
|
14
|
+
}
|
15
|
+
|
16
|
+
enum ExclusionType {
|
17
|
+
EXCLUSION_TYPE_UNSPECIFIED = 0;
|
18
|
+
EXCLUSION_TYPE_RULE = 1; // Rule ID to exclude
|
19
|
+
EXCLUSION_TYPE_RAW_VALUE = 2; // Raw value to exclude
|
20
|
+
}
|
21
|
+
|
10
22
|
/* Request arg for triggering Scan/ScanStream method */
|
11
23
|
message ScanRequest {
|
12
24
|
message Payload {
|
@@ -15,18 +27,6 @@ message ScanRequest {
|
|
15
27
|
optional int32 offset = 3;
|
16
28
|
}
|
17
29
|
|
18
|
-
// Either provide rule type or a particular value to allow during the scan
|
19
|
-
message Exclusion {
|
20
|
-
ExclusionType exclusion_type = 1;
|
21
|
-
string value = 2;
|
22
|
-
}
|
23
|
-
|
24
|
-
enum ExclusionType {
|
25
|
-
EXCLUSION_TYPE_UNSPECIFIED = 0;
|
26
|
-
EXCLUSION_TYPE_RULE = 1; // Rule ID to exclude
|
27
|
-
EXCLUSION_TYPE_RAW_VALUE = 2; // Raw value to exclude
|
28
|
-
}
|
29
|
-
|
30
30
|
repeated Payload payloads = 1; // Array of payloads to scan
|
31
31
|
// Scan timeout on the entire request. Value is represented in seconds, accepts float values to represent
|
32
32
|
// smaller unit values. Default is 180 seconds.
|
@@ -64,6 +64,7 @@ message ScanResponse {
|
|
64
64
|
|
65
65
|
repeated Finding results = 1;
|
66
66
|
int32 status = 2;
|
67
|
+
repeated Exclusion applied_exclusions = 3;
|
67
68
|
}
|
68
69
|
|
69
70
|
/* Scanner service that scans given payloads and returns findings */
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-secret_detection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- group::secret detection
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: grpc
|