fluent-plugin-site24x7 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/README.md +3 -0
- data/fluent-plugin-site24x7.gemspec +1 -2
- data/lib/fluent/plugin/out_site24x7.rb +12 -1
- 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: a1b8cf65db3d72b0f868f17783d552cb0139865f90b46fda5f785e25c46fb006
|
|
4
|
+
data.tar.gz: 0e1d311f59df96e5490798243577e4d970fbccfb074c0c7126e19c344dfebf26
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 384d2bfd8adad89a587557ceead314160c4fca185b447fb1bd39f41f79b275c1f4a3c5628d1ffd2fded32135595583aa6e99a2f42e527b16391f9330848fb0f6
|
|
7
|
+
data.tar.gz: f8045692f66faa2128aa344c8bbfbe88591e49c60cedbeb47a10f41a5d7ead43d23e52ec3f62be9f543bc4d5dcb0eddb57dc694c18e1d55462f6e1e0e1cb726d
|
data/README.md
CHANGED
|
@@ -64,8 +64,11 @@ retry_timeout | Time after which the data is going to be dropped | 24 hours
|
|
|
64
64
|
http_idle_timeout | Timeout (in seconds) for which http persistent connection will stay open without traffic | 5 seconds
|
|
65
65
|
http_read_timeout | Timeout (in seconds) when the socket connects until the connection breaks | 30 secods
|
|
66
66
|
http_proxy | Your proxy uri | nil
|
|
67
|
+
skip_ssl_verify | When true, disables TLS certificate verification of the upload endpoint. **Not recommended** (exposes the API key and log data to on-path attackers); leave false unless you terminate TLS at a trusted proxy with a private CA | false
|
|
67
68
|
|
|
68
69
|
## Release Notes
|
|
70
|
+
* 0.1.9 - Security: TLS certificate verification enabled by default (VERIFY_PEER); added skip_ssl_verify opt-out
|
|
71
|
+
* 0.1.8 - Widen net-http-persistent constraint for Ruby 3.x
|
|
69
72
|
* 0.1.7 - Sending stop signal to Fluentd for unrecoverable errors
|
|
70
73
|
* 0.1.6 - chunk unique id added for each upload and unlimited retry support
|
|
71
74
|
* 0.1.5 - Retry handled for empty upload-id
|
|
@@ -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-site24x7"
|
|
6
|
-
spec.version = "0.1.
|
|
6
|
+
spec.version = "0.1.9"
|
|
7
7
|
spec.authors = ["Magesh Rajan"]
|
|
8
8
|
spec.email = ["support@site24x7.com"]
|
|
9
9
|
|
|
@@ -28,5 +28,4 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.add_runtime_dependency "fluentd", [">= 0.14.10", "< 2"]
|
|
29
29
|
spec.add_runtime_dependency "net-http-persistent", '>= 3.1', '< 5'
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
end
|
|
@@ -28,6 +28,9 @@ class Fluent::Site24x7Output < Fluent::Plugin::Output
|
|
|
28
28
|
config_param :http_idle_timeout, :integer, default: 5
|
|
29
29
|
config_param :http_read_timeout, :integer, default: 30
|
|
30
30
|
config_param :http_proxy, :string, :default => nil
|
|
31
|
+
# When true, disables TLS certificate verification of the upload endpoint.
|
|
32
|
+
# NOT recommended: it exposes the API key and log data to on-path attackers.
|
|
33
|
+
config_param :skip_ssl_verify, :bool, :default => false
|
|
31
34
|
|
|
32
35
|
config_section :buffer do
|
|
33
36
|
config_set_default :@type, "memory"
|
|
@@ -188,7 +191,15 @@ class Fluent::Site24x7Output < Fluent::Plugin::Output
|
|
|
188
191
|
@uri = URI(upload_url)
|
|
189
192
|
log.info "Starting HTTP connection to #{upload_url}"
|
|
190
193
|
@s247_http_client = Net::HTTP::Persistent.new name: "fluent-plugin-site24x7", proxy: :ENV
|
|
191
|
-
|
|
194
|
+
# Verify the server certificate by default (Net::HTTP::Persistent also does
|
|
195
|
+
# hostname verification when peer verification is on). skip_ssl_verify=true
|
|
196
|
+
# is an explicit, discouraged opt-out for trusted TLS-terminating proxies.
|
|
197
|
+
if @skip_ssl_verify
|
|
198
|
+
@s247_http_client.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
199
|
+
log.warn "skip_ssl_verify=true: TLS certificate verification is disabled; the API key and logs can be intercepted by on-path attackers"
|
|
200
|
+
else
|
|
201
|
+
@s247_http_client.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
|
202
|
+
end
|
|
192
203
|
@s247_http_client.idle_timeout = @http_idle_timeout
|
|
193
204
|
@s247_http_client.read_timeout = @http_read_timeout
|
|
194
205
|
@s247_http_client.override_headers["Content-Type"] = "application/json"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-site24x7
|
|
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
|
- Magesh Rajan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|