fluent-plugin-site24x7 0.1.7 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b5f4e324f1115eea47583eb6dbc1467394841aadf376f08af4b07e6b0618578
4
- data.tar.gz: '08f30541235f4294db3a0546c5de0ee24d46cb0e68d76ecb96f3199175362844'
3
+ metadata.gz: a1b8cf65db3d72b0f868f17783d552cb0139865f90b46fda5f785e25c46fb006
4
+ data.tar.gz: 0e1d311f59df96e5490798243577e4d970fbccfb074c0c7126e19c344dfebf26
5
5
  SHA512:
6
- metadata.gz: 8b47d505b63ae3bca0f033678cb01932d02732e2eecaab9d6c84f88765772daeddbe6380538d85c669cf5565df7378a63ba893e7408de704b8656d2794f77e10
7
- data.tar.gz: 357ecae7bc8d57752cb0e66c94d9d3f69645eaf0258340909903759b00deaf8711c0de5aa1e10a17ca6c785dcc2a005f942f3fa40f460b958120823df34f9f4c
6
+ metadata.gz: 384d2bfd8adad89a587557ceead314160c4fca185b447fb1bd39f41f79b275c1f4a3c5628d1ffd2fded32135595583aa6e99a2f42e527b16391f9330848fb0f6
7
+ data.tar.gz: f8045692f66faa2128aa344c8bbfbe88591e49c60cedbeb47a10f41a5d7ead43d23e52ec3f62be9f543bc4d5dcb0eddb57dc694c18e1d55462f6e1e0e1cb726d
data/README.md CHANGED
@@ -57,13 +57,23 @@ As fluent-plugin-site24x7 is an output_buffer, you can set all the output_buffer
57
57
  Property | Description | Default Value
58
58
  ------------ | -------------|------------
59
59
  log_type_config | log_type_config of your configured log type in site24x7 | nil
60
- max_retry | Number of times to resend failed uploads | 3
60
+ max_retry | Number of times to resend failed uploads. Set to -1 for unlimited retries | -1
61
61
  retry_interval | Time interval to sleep initially between retries, exponential step-off | 2 seconds
62
+ maxretry_interval | Maximum interval to wait between sending retries | 60 seconds
63
+ retry_timeout | Time after which the data is going to be dropped | 24 hours
62
64
  http_idle_timeout | Timeout (in seconds) for which http persistent connection will stay open without traffic | 5 seconds
63
65
  http_read_timeout | Timeout (in seconds) when the socket connects until the connection breaks | 30 secods
64
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
65
68
 
66
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
72
+ * 0.1.7 - Sending stop signal to Fluentd for unrecoverable errors
73
+ * 0.1.6 - chunk unique id added for each upload and unlimited retry support
74
+ * 0.1.5 - Retry handled for empty upload-id
75
+ * 0.1.4 - Multi-line log, masking, hasing and derived fields support added
76
+ * 0.1.3 - JSON log parsing issue fixed
67
77
  * 0.1.2 - Timezone parsing issue fixed
68
78
  * 0.1.1 - Minor changes
69
79
  * 0.1.0 - Initial Release
@@ -3,9 +3,9 @@ $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.7"
6
+ spec.version = "0.1.9"
7
7
  spec.authors = ["Magesh Rajan"]
8
- spec.email = ["magesh.rajan@zohocorp.com"]
8
+ spec.email = ["support@site24x7.com"]
9
9
 
10
10
  spec.summary = %q{Site24x7 output plugin for Fluent event collector.}
11
11
  spec.homepage = "https://github.com/site24x7/fluent-plugin-site24x7"
@@ -26,7 +26,6 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'webmock', '~> 3.5', '>= 3.5.0'
27
27
 
28
28
  spec.add_runtime_dependency "fluentd", [">= 0.14.10", "< 2"]
29
- spec.add_runtime_dependency "net-http-persistent", '~> 3.1'
30
-
29
+ spec.add_runtime_dependency "net-http-persistent", '>= 3.1', '< 5'
31
30
 
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
- @s247_http_client.verify_mode = OpenSSL::SSL::VERIFY_NONE
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"
@@ -778,4 +789,4 @@ class Fluent::Site24x7Output < Fluent::Plugin::Output
778
789
  end
779
790
  end
780
791
 
781
- end
792
+ end
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.7
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: 2023-12-27 00:00:00.000000000 Z
11
+ date: 2026-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,22 +70,22 @@ dependencies:
70
70
  name: webmock
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '3.5'
76
73
  - - ">="
77
74
  - !ruby/object:Gem::Version
78
75
  version: 3.5.0
76
+ - - "~>"
77
+ - !ruby/object:Gem::Version
78
+ version: '3.5'
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - "~>"
84
- - !ruby/object:Gem::Version
85
- version: '3.5'
86
83
  - - ">="
87
84
  - !ruby/object:Gem::Version
88
85
  version: 3.5.0
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '3.5'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: fluentd
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -110,19 +110,25 @@ dependencies:
110
110
  name: net-http-persistent
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - "~>"
113
+ - - ">="
114
114
  - !ruby/object:Gem::Version
115
115
  version: '3.1'
116
+ - - "<"
117
+ - !ruby/object:Gem::Version
118
+ version: '5'
116
119
  type: :runtime
117
120
  prerelease: false
118
121
  version_requirements: !ruby/object:Gem::Requirement
119
122
  requirements:
120
- - - "~>"
123
+ - - ">="
121
124
  - !ruby/object:Gem::Version
122
125
  version: '3.1'
126
+ - - "<"
127
+ - !ruby/object:Gem::Version
128
+ version: '5'
123
129
  description:
124
130
  email:
125
- - magesh.rajan@zohocorp.com
131
+ - support@site24x7.com
126
132
  executables: []
127
133
  extensions: []
128
134
  extra_rdoc_files: []
@@ -152,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
158
  - !ruby/object:Gem::Version
153
159
  version: '0'
154
160
  requirements: []
155
- rubygems_version: 3.1.6
161
+ rubygems_version: 3.0.3.1
156
162
  signing_key:
157
163
  specification_version: 4
158
164
  summary: Site24x7 output plugin for Fluent event collector.