fluent-plugin-jfrog-siem 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/fluent-plugin-jfrog-siem.gemspec +1 -1
- data/lib/fluent/plugin/in_jfrog_siem.rb +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d5598c727b3f7567c6ca432c96b12252e45387787ed75ec55ce98024f936725
|
|
4
|
+
data.tar.gz: e5d9aaed273061f7abbe7c41a337d6346bfac8896ffc88c182888b96770646d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1b43ff8df04ecf7e89a30632e2174c7a55724b1ae6357ef564d4719ebfec699601ac5dd1936c8275758196ad2c1bfc260262c4f7e3490658c132b5f456eb2ca
|
|
7
|
+
data.tar.gz: 0a77aa48d288ad3ca06e3dfe2bef07fff81ad368fd834d686c55a3e39963ce332334389ff2f753692dcf06e65f97a83cc440f66c906f62093ba682fa7d55e232
|
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |spec|
|
|
5
5
|
spec.name = "fluent-plugin-jfrog-siem"
|
|
6
|
-
spec.version = "0.1.
|
|
6
|
+
spec.version = "0.1.7"
|
|
7
7
|
spec.authors = ["John Peterson", "Mahitha Byreddy"]
|
|
8
8
|
spec.email = ["johnp@jfrog.com", "mahithab@jfrog.com"]
|
|
9
9
|
|
|
@@ -240,6 +240,8 @@ module Fluent
|
|
|
240
240
|
cve = []
|
|
241
241
|
cvss_v2_list = []
|
|
242
242
|
cvss_v3_list = []
|
|
243
|
+
policy_list = []
|
|
244
|
+
rule_list = []
|
|
243
245
|
impacted_artifact_url_list = []
|
|
244
246
|
if detailResp_json.key?('properties')
|
|
245
247
|
properties = detailResp_json['properties']
|
|
@@ -269,6 +271,20 @@ module Fluent
|
|
|
269
271
|
detailResp_json["cvss_version"] = cvss_version
|
|
270
272
|
end
|
|
271
273
|
|
|
274
|
+
if detailResp_json.key?('matched_policies')
|
|
275
|
+
matched_policies = detailResp_json['matched_policies']
|
|
276
|
+
for index in 0..matched_policies.length-1 do
|
|
277
|
+
if matched_policies[index].key?('policy')
|
|
278
|
+
policy_list.push(matched_policies[index]['policy'])
|
|
279
|
+
end
|
|
280
|
+
if matched_policies[index].key?('rule')
|
|
281
|
+
rule_list.push(matched_policies[index]['rule'])
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
detailResp_json['policies'] = policy_list
|
|
285
|
+
detailResp_json['rules'] = rule_list
|
|
286
|
+
end
|
|
287
|
+
|
|
272
288
|
impacted_artifacts = detailResp_json['impacted_artifacts']
|
|
273
289
|
for impacted_artifact in impacted_artifacts do
|
|
274
290
|
matchdata = impacted_artifact.match /default\/(?<repo_name>[^\/]*)\/(?<path>.*)/
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-jfrog-siem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Peterson
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-04-
|
|
12
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|