fluent-plugin-jfrog-siem 0.1.8 → 0.1.9
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 +6 -0
- data/test/plugin/test_in_jfrog_siem.rb +3 -3
- 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: e45847f8ff6faf6103f383101c21b8534f1b0bc7c9d8626e8f3a5a172631fb9e
|
|
4
|
+
data.tar.gz: 3f45070df06e498421d9e64ea25a793b700bb6efab6b7a5e878a206214927889
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69f51b464049166d1930578447cd7ca2dd5bd273e013ea94e1eb682b2e664e83e1694db11358c929fda408c714cf3f5c2d3d272aee5b4bee88104c55441e556e
|
|
7
|
+
data.tar.gz: 0a94d81ed3741bbbffd41aa47e5781becb956337675261bb00eea4f4de2c9bcc41809fe212c6abb21a817b5626f9ff03db5be07e262ce0dde9093efa9c68c17a
|
|
@@ -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.9"
|
|
7
7
|
spec.authors = ["John Peterson", "Mahitha Byreddy"]
|
|
8
8
|
spec.email = ["johnp@jfrog.com", "mahithab@jfrog.com"]
|
|
9
9
|
|
|
@@ -129,8 +129,14 @@ module Fluent
|
|
|
129
129
|
if waiting_for_violations
|
|
130
130
|
if created_date <= last_created_date
|
|
131
131
|
# "not persisting it - waiting for violations"
|
|
132
|
+
# waiting and same last timestamp (left violations in batch)
|
|
132
133
|
persistItem = false
|
|
133
134
|
end
|
|
135
|
+
if created_date > last_created_date
|
|
136
|
+
# new violation while waiting
|
|
137
|
+
persistItem = true
|
|
138
|
+
waiting_for_violations = false
|
|
139
|
+
end
|
|
134
140
|
else
|
|
135
141
|
if created_date < last_created_date
|
|
136
142
|
# "persisting everything"
|
|
@@ -13,9 +13,9 @@ class JfrogSiemInputTest < Test::Unit::TestCase
|
|
|
13
13
|
# Default configuration for tests
|
|
14
14
|
CONFIG = %[
|
|
15
15
|
tag "test_tag"
|
|
16
|
-
jpd_url
|
|
17
|
-
username
|
|
18
|
-
apikey
|
|
16
|
+
jpd_url "http://dd-siem-unified-15-rt.jfrog.tech"
|
|
17
|
+
username "admin"
|
|
18
|
+
apikey "AKCp8jQ8tAb2tqC6jXH7J1qLShXnjorD5XhFkvqUhN78WMLmvfTx5GNuD9B8uEXnGyruBCzYk"
|
|
19
19
|
pos_file "test_pos.txt"
|
|
20
20
|
]
|
|
21
21
|
|
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.9
|
|
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-05-
|
|
12
|
+
date: 2021-05-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|