logstash-integration-snmp 4.1.0-java → 4.2.1-java

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: ceae98771c874e51d755ba48a73edb8322ed4fcc291693b912e1c14be6e8b76b
4
- data.tar.gz: f58d275ed475825c8c71aed346a75e236cc237089e91a411cbb2dcb74d32733c
3
+ metadata.gz: cecd93452a9a34d8ad060c721c7ea1b9106dbecdeabb090c568becc03b9bec4f
4
+ data.tar.gz: 725f8aa1e8a320185ddcefbbb8958bc162af759f01336e4403850c7d7f666cc3
5
5
  SHA512:
6
- metadata.gz: 55999a85c693fc954303318f2ece9f0e695950c3b4b355689b1cc8ae40ef48dc032d2fc33bbd30087f3786c59490462497085017c166c1fe0ad7bfa36d5a4cc0
7
- data.tar.gz: 3fb4d9a34127b33b240cb5e2f31cb75c8aae6d54c5fadf4a12bae22b093282679572e51856e2ff4521911e6ad15aa4f54014dcbeba0773ef99dc897f55aef4aa
6
+ metadata.gz: de59aff428d4f345b09eb69e21b94ee00e905ab9ebddb32956e99f953aaefa5ce80c004e4824bbc511543af2cd9236cbfa799c9ea490cadb7e073fb6253a408a
7
+ data.tar.gz: 203c22dc767aefa06ed42bdaa835f5d9e64f376ed95bc7d92652d77ead2e7d0b61b1cf2eeca2efcc00544a61189b13503bca86668bae0494199717f4a181b476
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 4.2.1
2
+ - Upgrade log4j dependency [#85](https://github.com/logstash-plugins/logstash-integration-snmp/pull/85)
3
+
4
+ ## 4.2.0
5
+ - Add AES256 with 3DES extension support for `priv_protocol` [#78](https://github.com/logstash-plugins/logstash-integration-snmp/pull/78)
6
+
1
7
  ## 4.1.0
2
8
  - Add support for SNMPv3 `context engine ID` and `context name` to the `snmptrap` input [#76](https://github.com/logstash-plugins/logstash-integration-snmp/pull/76)
3
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.1.0
1
+ 4.2.1
data/docs/index.asciidoc CHANGED
@@ -148,6 +148,11 @@ $ smidump --level=1 -k -f python RFC1213-MIB > RFC1213-MIB.dic
148
148
 
149
149
  Note that the resulting file as output by `smidump` must have the `.dic` extension.
150
150
 
151
+ When `mib_paths` is configured, note that the complete set of all MIBs required must be included here. Any conflicting MIBs with defaults will
152
+ prefer the default, not the MIB configured on the `mib_paths`. The tightest control and maximal compatability can be acheived by ensuring that
153
+ `use_provided_mibs` is set to `false` and the complete set of MIBs are included in files listed in `mib_paths`. The defaults from the old implementation
154
+ can be found in the https://github.com/ruby-snmp/ruby-snmp/tree/master/data/ruby/snmp/mibs[ruby-snmp github repository].
155
+
151
156
  [id="plugins-{type}s-{plugin}-locate-mibs"]
152
157
  ===== Preventing a `failed to locate MIB module` error
153
158
 
@@ -100,7 +100,7 @@ This plugin supports the following SNMPv3 authentication options.
100
100
  | <<plugins-{type}s-{plugin}-auth_pass>> |<<password,password>>|No
101
101
  | <<plugins-{type}s-{plugin}-auth_protocol>> |<<string,string>>, one of `["md5", "sha", "sha2", "hmac128sha224", "hmac192sha256", "hmac256sha384", "hmac384sha512"]`|No
102
102
  | <<plugins-{type}s-{plugin}-priv_pass>> |<<password,password>>|No
103
- | <<plugins-{type}s-{plugin}-priv_protocol>> |<<string,string>>, one of `["des", "3des", "aes", "aes128", "aes192", "aes256"]`|No
103
+ | <<plugins-{type}s-{plugin}-priv_protocol>> |<<string,string>>, one of `["des", "3des", "aes", "aes128", "aes192", "aes256", "aes256with3desKey"]`|No
104
104
  | <<plugins-{type}s-{plugin}-security_level>> |<<string,string>>, one of `["noAuthNoPriv", "authNoPriv", "authPriv"]`|No
105
105
  | <<plugins-{type}s-{plugin}-security_name>> |<<string,string>>|No
106
106
  |=======================================================================
@@ -412,12 +412,18 @@ The `priv_pass` option specifies the SNMPv3 encryption password.
412
412
  [id="plugins-{type}s-{plugin}-priv_protocol"]
413
413
  ===== `priv_protocol`
414
414
 
415
- * Value can be any of: `des`, `3des`, `aes`, `aes128`, `aes192`, `aes256`
415
+ * Value can be any of: `des`, `3des`, `aes`, `aes128`, `aes192`, `aes256`, `aes256with3desKey`
416
416
  * Note that `aes` and `aes128` are equivalent
417
417
  * There is no default value for this setting
418
418
 
419
419
  The `priv_protocol` option specifies the SNMPv3 privacy/encryption protocol.
420
420
 
421
+ .Technical Preview
422
+ ****
423
+ The `aes256with3desKey` feature that allows using AES256 with 3DES key extension for `priv_protocol` is in Technical Preview.
424
+ Configuration option and implementation details are subject to change in minor releases without being preceded by deprecation warnings.
425
+ ****
426
+
421
427
  [id="plugins-{type}s-{plugin}-security_level"]
422
428
  ===== `security_level`
423
429
 
@@ -118,7 +118,7 @@ This plugin supports the following SNMPv3 authentication options.
118
118
  | <<plugins-{type}s-{plugin}-auth_pass>> |<<password,password>>|No
119
119
  | <<plugins-{type}s-{plugin}-auth_protocol>> |<<string,string>>, one of `["md5", "sha", "sha2", "hmac128sha224", "hmac192sha256", "hmac256sha384", "hmac384sha512"]`|No
120
120
  | <<plugins-{type}s-{plugin}-priv_pass>> |<<password,password>>|No
121
- | <<plugins-{type}s-{plugin}-priv_protocol>> |<<string,string>>, one of `["des", "3des", "aes", "aes128", "aes192", "aes256"]`|No
121
+ | <<plugins-{type}s-{plugin}-priv_protocol>> |<<string,string>>, one of `["des", "3des", "aes", "aes128", "aes192", "aes256", "aes256with3desKey"]`|No
122
122
  | <<plugins-{type}s-{plugin}-security_level>> |<<string,string>>, one of `["noAuthNoPriv", "authNoPriv", "authPriv"]`|No
123
123
  | <<plugins-{type}s-{plugin}-security_name>> |<<string,string>>|No
124
124
  |=======================================================================
@@ -343,7 +343,7 @@ The `priv_pass` option specifies the SNMPv3 encryption password.
343
343
  [id="plugins-{type}s-{plugin}-priv_protocol"]
344
344
  ===== `priv_protocol`
345
345
 
346
- * Value can be any of: `des`, `3des`, `aes`, `aes128`, `aes192`, `aes256`
346
+ * Value can be any of: `des`, `3des`, `aes`, `aes128`, `aes192`, `aes256`, `aes256with3desKey`
347
347
  * Note that `aes` and `aes128` are equivalent
348
348
  * There is no default value for this setting
349
349
 
@@ -85,7 +85,7 @@ module LogStash
85
85
  base.config :auth_pass, :validate => :password
86
86
 
87
87
  # The SNMPv3 privacy/encryption protocol
88
- base.config :priv_protocol, :validate => %w[des 3des aes aes128 aes192 aes256]
88
+ base.config :priv_protocol, :validate => %w[des 3des aes aes128 aes192 aes256 aes256with3desKey]
89
89
 
90
90
  # The SNMPv3 encryption password
91
91
  base.config :priv_pass, :validate => :password
@@ -4,4 +4,4 @@ require 'jar_dependencies'
4
4
  require_jar('org.snmp4j', 'snmp4j', '3.8.0')
5
5
  require_jar('org.snmp4j', 'snmp4j-log4j', '2.8.11')
6
6
  require_jar('org.snakeyaml', 'snakeyaml-engine', '2.7')
7
- require_jar('org.logstash.integrations', 'plugin', '4.1.0')
7
+ require_jar('org.logstash.integrations', 'plugin', '4.2.1')
@@ -73,6 +73,27 @@ describe LogStash::Inputs::Snmp, :integration => true do
73
73
 
74
74
  it_behaves_like 'snmp plugin return single get event'
75
75
  end
76
+
77
+ describe 'snmp v3 with AES256 & Triple-DES' do
78
+ let(:config) { {
79
+ 'hosts' => [{ 'host' => "udp:snmpsim/163", 'version' => '3' }],
80
+ 'security_name' => 'testuser',
81
+ 'auth_protocol' => 'sha',
82
+ 'auth_pass' => 'authp123',
83
+ 'priv_protocol' => 'aes256with3desKey',
84
+ 'priv_pass' => 'privpass123',
85
+ 'security_level' => 'authPriv',
86
+ 'get' => [
87
+ "1.3.6.1.2.1.1.1.0", # sysDescr
88
+ ]
89
+ } }
90
+
91
+ it 'fetches system description from snmpsim' do
92
+ event = run_plugin_and_get_queue(plugin).pop
93
+ expect(event).to be_a(LogStash::Event)
94
+ expect(event.get('iso.org.dod.internet.mgmt.mib-2.system.sysDescr.0')).to eq('SNMP Simulator for AES256 with 3DES Key Extension Testing')
95
+ end
96
+ end
76
97
  end
77
98
 
78
99
  describe '`walk` operation' do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-integration-snmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.1
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-08-18 00:00:00.000000000 Z
10
+ date: 2026-01-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: logstash-core-plugin-api
@@ -468,7 +468,7 @@ files:
468
468
  - spec/unit/inputs/common_spec.rb
469
469
  - spec/unit/inputs/snmp_spec.rb
470
470
  - spec/unit/inputs/snmptrap_spec.rb
471
- - vendor/jar-dependencies/org/logstash/integrations/plugin/4.1.0/plugin-4.1.0.jar
471
+ - vendor/jar-dependencies/org/logstash/integrations/plugin/4.2.1/plugin-4.2.1.jar
472
472
  - vendor/jar-dependencies/org/snakeyaml/snakeyaml-engine/2.7/snakeyaml-engine-2.7.jar
473
473
  - vendor/jar-dependencies/org/snmp4j/snmp4j-log4j/2.8.11/snmp4j-log4j-2.8.11.jar
474
474
  - vendor/jar-dependencies/org/snmp4j/snmp4j/3.8.0/snmp4j-3.8.0.jar