smplkit 3.0.59 → 3.0.60
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/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/http_configuration.rb +42 -4
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/test_forwarder_request.rb +39 -1
- data/lib/smplkit/_generated/audit/spec/models/http_configuration_spec.rb +12 -0
- data/lib/smplkit/_generated/audit/spec/models/test_forwarder_request_spec.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '06975d5368d200b5bb4b41bd75a0bcfe2e73719134384a996e1d1329139f5e43'
|
|
4
|
+
data.tar.gz: a3009fbe825b7504452ed98c620e9dc86011cd127a7be32168130456898960ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a606827a20f3a7e00a34d0ae73cf38803355809a0b2cc0896fa7bbfa7e7489da35ae67973de05433aecd094d5dee307e4ae0e306d4019b3117013d9fa46a8641
|
|
7
|
+
data.tar.gz: e935a07f39bf40bd0c68ebe7cc668d0476b3a0c8212a6a47185ebf2585626be84ae66211a6bc742f5437a5e1742f4abb3c82e5adc8d608f5f61ce715b1be8170
|
|
@@ -28,6 +28,12 @@ module SmplkitGeneratedClient::Audit
|
|
|
28
28
|
# HTTP response status that indicates a successful delivery. Either a specific status code (e.g. `200`, `204`) or a status class (`1xx`, `2xx`, `3xx`, `4xx`, `5xx`).
|
|
29
29
|
attr_accessor :success_status
|
|
30
30
|
|
|
31
|
+
# Whether to verify the destination server's TLS certificate against trusted certificate authorities. Defaults to `true` and should be left on for any production destination. Set to `false` only for development or short-lived testing against a destination that presents an untrusted certificate (e.g. a Splunk Cloud trial stack on `:8088` serving its default self-signed certificate). When `false`, deliveries proceed without certificate verification — they are vulnerable to man-in-the-middle attacks. For long-lived self-signed setups, pin the issuing CA via `ca_cert` instead of disabling verification entirely.
|
|
32
|
+
attr_accessor :tls_verify
|
|
33
|
+
|
|
34
|
+
# Optional PEM-encoded certificate (or bundle) used to verify the destination server's TLS certificate, in addition to the system trust store. Use this to pin a private or self-signed CA (e.g. Splunk's default `SplunkCommonCA`) without disabling verification entirely via `tls_verify`. Must contain one or more `-----BEGIN CERTIFICATE-----` blocks. Ignored when `tls_verify` is `false`.
|
|
35
|
+
attr_accessor :ca_cert
|
|
36
|
+
|
|
31
37
|
class EnumAttributeValidator
|
|
32
38
|
attr_reader :datatype
|
|
33
39
|
attr_reader :allowable_values
|
|
@@ -56,7 +62,9 @@ module SmplkitGeneratedClient::Audit
|
|
|
56
62
|
:'method' => :'method',
|
|
57
63
|
:'url' => :'url',
|
|
58
64
|
:'headers' => :'headers',
|
|
59
|
-
:'success_status' => :'success_status'
|
|
65
|
+
:'success_status' => :'success_status',
|
|
66
|
+
:'tls_verify' => :'tls_verify',
|
|
67
|
+
:'ca_cert' => :'ca_cert'
|
|
60
68
|
}
|
|
61
69
|
end
|
|
62
70
|
|
|
@@ -76,13 +84,16 @@ module SmplkitGeneratedClient::Audit
|
|
|
76
84
|
:'method' => :'String',
|
|
77
85
|
:'url' => :'String',
|
|
78
86
|
:'headers' => :'Array<HttpHeader>',
|
|
79
|
-
:'success_status' => :'String'
|
|
87
|
+
:'success_status' => :'String',
|
|
88
|
+
:'tls_verify' => :'Boolean',
|
|
89
|
+
:'ca_cert' => :'String'
|
|
80
90
|
}
|
|
81
91
|
end
|
|
82
92
|
|
|
83
93
|
# List of attributes with nullable: true
|
|
84
94
|
def self.openapi_nullable
|
|
85
95
|
Set.new([
|
|
96
|
+
:'ca_cert'
|
|
86
97
|
])
|
|
87
98
|
end
|
|
88
99
|
|
|
@@ -125,6 +136,16 @@ module SmplkitGeneratedClient::Audit
|
|
|
125
136
|
else
|
|
126
137
|
self.success_status = '2xx'
|
|
127
138
|
end
|
|
139
|
+
|
|
140
|
+
if attributes.key?(:'tls_verify')
|
|
141
|
+
self.tls_verify = attributes[:'tls_verify']
|
|
142
|
+
else
|
|
143
|
+
self.tls_verify = true
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'ca_cert')
|
|
147
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
148
|
+
end
|
|
128
149
|
end
|
|
129
150
|
|
|
130
151
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -148,6 +169,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
148
169
|
invalid_properties.push('invalid value for "success_status", the character length must be smaller than or equal to 3.')
|
|
149
170
|
end
|
|
150
171
|
|
|
172
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length > 65536
|
|
173
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be smaller than or equal to 65536.')
|
|
174
|
+
end
|
|
175
|
+
|
|
151
176
|
invalid_properties
|
|
152
177
|
end
|
|
153
178
|
|
|
@@ -161,6 +186,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
161
186
|
return false if @url.to_s.length > 2048
|
|
162
187
|
return false if @url.to_s.length < 1
|
|
163
188
|
return false if !@success_status.nil? && @success_status.to_s.length > 3
|
|
189
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length > 65536
|
|
164
190
|
true
|
|
165
191
|
end
|
|
166
192
|
|
|
@@ -206,6 +232,16 @@ module SmplkitGeneratedClient::Audit
|
|
|
206
232
|
@success_status = success_status
|
|
207
233
|
end
|
|
208
234
|
|
|
235
|
+
# Custom attribute writer method with validation
|
|
236
|
+
# @param [Object] ca_cert Value to be assigned
|
|
237
|
+
def ca_cert=(ca_cert)
|
|
238
|
+
if !ca_cert.nil? && ca_cert.to_s.length > 65536
|
|
239
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be smaller than or equal to 65536.'
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
@ca_cert = ca_cert
|
|
243
|
+
end
|
|
244
|
+
|
|
209
245
|
# Checks equality by comparing each attribute.
|
|
210
246
|
# @param [Object] Object to be compared
|
|
211
247
|
def ==(o)
|
|
@@ -214,7 +250,9 @@ module SmplkitGeneratedClient::Audit
|
|
|
214
250
|
method == o.method &&
|
|
215
251
|
url == o.url &&
|
|
216
252
|
headers == o.headers &&
|
|
217
|
-
success_status == o.success_status
|
|
253
|
+
success_status == o.success_status &&
|
|
254
|
+
tls_verify == o.tls_verify &&
|
|
255
|
+
ca_cert == o.ca_cert
|
|
218
256
|
end
|
|
219
257
|
|
|
220
258
|
# @see the `==` method
|
|
@@ -226,7 +264,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
226
264
|
# Calculates hash code according to all attributes.
|
|
227
265
|
# @return [Integer] Hash code
|
|
228
266
|
def hash
|
|
229
|
-
[method, url, headers, success_status].hash
|
|
267
|
+
[method, url, headers, success_status, tls_verify, ca_cert].hash
|
|
230
268
|
end
|
|
231
269
|
|
|
232
270
|
# Builds the object from hash
|
|
@@ -31,6 +31,12 @@ module SmplkitGeneratedClient::Audit
|
|
|
31
31
|
# Per-request timeout in milliseconds. Capped at 30 seconds.
|
|
32
32
|
attr_accessor :timeout_ms
|
|
33
33
|
|
|
34
|
+
# Whether to verify the destination server's TLS certificate. Mirrors the parent forwarder field of the same name — see its description for security guidance. Defaults to `true`.
|
|
35
|
+
attr_accessor :tls_verify
|
|
36
|
+
|
|
37
|
+
# Optional PEM-encoded certificate (or bundle) used to verify the destination server's TLS certificate. Mirrors the parent forwarder field. Must contain one or more `-----BEGIN CERTIFICATE-----` blocks.
|
|
38
|
+
attr_accessor :ca_cert
|
|
39
|
+
|
|
34
40
|
# Request body sent to the destination. When omitted, an empty body is sent (suitable for connectivity probes). When set, the body is sent verbatim — pair with an appropriate `Content-Type` entry in `headers` so the destination interprets it correctly. Limit 1 MiB.
|
|
35
41
|
attr_accessor :body
|
|
36
42
|
|
|
@@ -64,6 +70,8 @@ module SmplkitGeneratedClient::Audit
|
|
|
64
70
|
:'headers' => :'headers',
|
|
65
71
|
:'success_status' => :'success_status',
|
|
66
72
|
:'timeout_ms' => :'timeout_ms',
|
|
73
|
+
:'tls_verify' => :'tls_verify',
|
|
74
|
+
:'ca_cert' => :'ca_cert',
|
|
67
75
|
:'body' => :'body'
|
|
68
76
|
}
|
|
69
77
|
end
|
|
@@ -86,6 +94,8 @@ module SmplkitGeneratedClient::Audit
|
|
|
86
94
|
:'headers' => :'Array<HttpHeader>',
|
|
87
95
|
:'success_status' => :'String',
|
|
88
96
|
:'timeout_ms' => :'Integer',
|
|
97
|
+
:'tls_verify' => :'Boolean',
|
|
98
|
+
:'ca_cert' => :'String',
|
|
89
99
|
:'body' => :'String'
|
|
90
100
|
}
|
|
91
101
|
end
|
|
@@ -94,6 +104,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
94
104
|
def self.openapi_nullable
|
|
95
105
|
Set.new([
|
|
96
106
|
:'timeout_ms',
|
|
107
|
+
:'ca_cert',
|
|
97
108
|
:'body'
|
|
98
109
|
])
|
|
99
110
|
end
|
|
@@ -142,6 +153,16 @@ module SmplkitGeneratedClient::Audit
|
|
|
142
153
|
self.timeout_ms = attributes[:'timeout_ms']
|
|
143
154
|
end
|
|
144
155
|
|
|
156
|
+
if attributes.key?(:'tls_verify')
|
|
157
|
+
self.tls_verify = attributes[:'tls_verify']
|
|
158
|
+
else
|
|
159
|
+
self.tls_verify = true
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'ca_cert')
|
|
163
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
164
|
+
end
|
|
165
|
+
|
|
145
166
|
if attributes.key?(:'body')
|
|
146
167
|
self.body = attributes[:'body']
|
|
147
168
|
end
|
|
@@ -176,6 +197,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
176
197
|
invalid_properties.push('invalid value for "timeout_ms", must be greater than or equal to 1.')
|
|
177
198
|
end
|
|
178
199
|
|
|
200
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length > 65536
|
|
201
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be smaller than or equal to 65536.')
|
|
202
|
+
end
|
|
203
|
+
|
|
179
204
|
if !@body.nil? && @body.to_s.length > 1048576
|
|
180
205
|
invalid_properties.push('invalid value for "body", the character length must be smaller than or equal to 1048576.')
|
|
181
206
|
end
|
|
@@ -195,6 +220,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
195
220
|
return false if !@success_status.nil? && @success_status.to_s.length > 3
|
|
196
221
|
return false if !@timeout_ms.nil? && @timeout_ms > 30000
|
|
197
222
|
return false if !@timeout_ms.nil? && @timeout_ms < 1
|
|
223
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length > 65536
|
|
198
224
|
return false if !@body.nil? && @body.to_s.length > 1048576
|
|
199
225
|
true
|
|
200
226
|
end
|
|
@@ -255,6 +281,16 @@ module SmplkitGeneratedClient::Audit
|
|
|
255
281
|
@timeout_ms = timeout_ms
|
|
256
282
|
end
|
|
257
283
|
|
|
284
|
+
# Custom attribute writer method with validation
|
|
285
|
+
# @param [Object] ca_cert Value to be assigned
|
|
286
|
+
def ca_cert=(ca_cert)
|
|
287
|
+
if !ca_cert.nil? && ca_cert.to_s.length > 65536
|
|
288
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be smaller than or equal to 65536.'
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
@ca_cert = ca_cert
|
|
292
|
+
end
|
|
293
|
+
|
|
258
294
|
# Custom attribute writer method with validation
|
|
259
295
|
# @param [Object] body Value to be assigned
|
|
260
296
|
def body=(body)
|
|
@@ -275,6 +311,8 @@ module SmplkitGeneratedClient::Audit
|
|
|
275
311
|
headers == o.headers &&
|
|
276
312
|
success_status == o.success_status &&
|
|
277
313
|
timeout_ms == o.timeout_ms &&
|
|
314
|
+
tls_verify == o.tls_verify &&
|
|
315
|
+
ca_cert == o.ca_cert &&
|
|
278
316
|
body == o.body
|
|
279
317
|
end
|
|
280
318
|
|
|
@@ -287,7 +325,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
287
325
|
# Calculates hash code according to all attributes.
|
|
288
326
|
# @return [Integer] Hash code
|
|
289
327
|
def hash
|
|
290
|
-
[method, url, headers, success_status, timeout_ms, body].hash
|
|
328
|
+
[method, url, headers, success_status, timeout_ms, tls_verify, ca_cert, body].hash
|
|
291
329
|
end
|
|
292
330
|
|
|
293
331
|
# Builds the object from hash
|
|
@@ -55,4 +55,16 @@ describe SmplkitGeneratedClient::Audit::HttpConfiguration do
|
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
describe 'test attribute "tls_verify"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "ca_cert"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
58
70
|
end
|
|
@@ -61,6 +61,18 @@ describe SmplkitGeneratedClient::Audit::TestForwarderRequest do
|
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
+
describe 'test attribute "tls_verify"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
describe 'test attribute "ca_cert"' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
64
76
|
describe 'test attribute "body"' do
|
|
65
77
|
it 'should work' do
|
|
66
78
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|