gitlab-secret_detection 0.10.0 → 0.11.0
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: f1b36060c6a62ccc46ba67f2b9bd66ae093cc8dda902c50f367f2ba46d61588a
|
4
|
+
data.tar.gz: f17e80f6dc8350449fed8ac8eb522a6ac3cfa859d3a63ad5294a05ecb9941bc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fc83370d27a997ce9e082b123272c3f6ab74565663de0b039e0962668b190a4f8f12564cf0a88585b770c25d0d3d4e7cd1b2659b7e8fc9eff6d307374e04bc3
|
7
|
+
data.tar.gz: c391a6ba77f4701877fff2c46ab816bb3120fbb629d968e1d0a227a18e571800c41a94279b8da528c43c6d983ff295520e13eac09c00ff68e56c93e8122d11f1
|
@@ -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.0
|
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-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: grpc
|