fluent-plugin-sdns-api 0.1.1 → 0.1.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a27f5c40f5051098722918eeda5bd9b75bb8896863e8dc38e4f64a738098d93e
|
|
4
|
+
data.tar.gz: acd7a62f3ff27e3d8abebab6dd0adf39f62579120d5d65488268bb6ebeb98446
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 567f3b61d068b508f83414fb291b3aed534eff4880659febd9715eecf048352958a706c8b43766b98969f9b2ae8a7f51958749c7f473ad2b6cd69e2bd81f2060
|
|
7
|
+
data.tar.gz: 378ba7804d1bf01d526dab7809a011415450f2474fac9cbaeadd672b7dae72865105eccbc3a0eeab08422e418383696af6ff2efce51ff44a631b97856c5e84bf
|
|
@@ -147,9 +147,8 @@ module Fluent
|
|
|
147
147
|
"action" => item["action"],
|
|
148
148
|
"threat_level" => item["threat_level"],
|
|
149
149
|
"threat_type" => item["threat_type"],
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"event_description" => item["event_description"].gsub("\n", '\\n').gsub("\t", '\\t'),
|
|
150
|
+
"threat_name" => item["threat_name"],
|
|
151
|
+
"threat_description" => item["threat_description"].gsub("\n", '\\n').gsub("\t", '\\t'),
|
|
153
152
|
}
|
|
154
153
|
es = OneEventStream.new(Fluent::EventTime.now, record)
|
|
155
154
|
router.emit_stream(@tag, es)
|
|
@@ -11,7 +11,7 @@ class SdnsApiSignerTest < Test::Unit::TestCase
|
|
|
11
11
|
sig.key = "Fad3mbhh9NwadtEd7t0ekFp5HwrNJiDc" # test key
|
|
12
12
|
sig.secret = "5MLR15LYGn8IeTHQwPs7tZyJslGqNZmYI6g8eHETGrWZYZ6J7U9Ak8CrRlSyCEMT"
|
|
13
13
|
|
|
14
|
-
r = Fluent::Plugin::SdnsApiSinger::HttpRequest.new("GET", "https://
|
|
14
|
+
r = Fluent::Plugin::SdnsApiSinger::HttpRequest.new("GET", "https://xxx.net/apis/grpc/v2/ListThreatDetail")
|
|
15
15
|
r.headers = {"content-type" => "application/json"}
|
|
16
16
|
|
|
17
17
|
r.body = ''
|
|
@@ -10,7 +10,7 @@ class SdnsApiListThreatDetailInputTest < Test::Unit::TestCase
|
|
|
10
10
|
CONFIG = %[
|
|
11
11
|
client_ip '1.1.1.1'
|
|
12
12
|
access_key 'xxx'
|
|
13
|
-
endpoint 'https://
|
|
13
|
+
endpoint 'https://xxx.net/apis/grpc/v2/ListThreatDetail'
|
|
14
14
|
access_secret 'sdf'
|
|
15
15
|
]
|
|
16
16
|
|
|
@@ -37,7 +37,7 @@ class SdnsApiListThreatDetailInputTest < Test::Unit::TestCase
|
|
|
37
37
|
d = create_driver(%[
|
|
38
38
|
access_key 'L2guCE9mRsuvUhNxUDKfgjKR083RqIFB'
|
|
39
39
|
access_secret 'Vy4HrnHHZdewCkeQ9pHeiN6repMUgzjeoP2mqzMCVY2Hbne0k4jlKzZ10unYIKo5'
|
|
40
|
-
endpoint 'https://
|
|
40
|
+
endpoint 'https://xxx.net/apis/grpc/v2/ListThreatDetail'
|
|
41
41
|
page_size 20
|
|
42
42
|
scrape_interval 600
|
|
43
43
|
])
|
|
@@ -55,7 +55,7 @@ class SdnsApiListThreatDetailInputTest < Test::Unit::TestCase
|
|
|
55
55
|
d = create_driver(%[
|
|
56
56
|
access_key 'L2guCE9mRsuvUhNxUDKfgjKR083RqIFB'
|
|
57
57
|
access_secret 'Vy4HrnHHZdewCkeQ9pHeiN6repMUgzjeoP2mqzMCVY2Hbne0k4jlKzZ10unYIKo5'
|
|
58
|
-
endpoint 'https://
|
|
58
|
+
endpoint 'https://xxx.net/apis/grpc/v2/ListThreatDetail'
|
|
59
59
|
page_size 100
|
|
60
60
|
scrape_interval 600
|
|
61
61
|
])
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-sdns-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yinqiwei
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-12-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|