diff --git a/console/data/docs/02-configuration.md b/console/data/docs/02-configuration.md index 025852a2..25fda2c3 100644 --- a/console/data/docs/02-configuration.md +++ b/console/data/docs/02-configuration.md @@ -389,7 +389,7 @@ The `snmp` provider accepts the following configuration keys: `user-name`, `authentication-protocol` (`none`, `MD5`, `SHA`, `SHA224`, `SHA256`, `SHA384`, and `SHA512` are accepted), `authentication-passphrase` (if the previous value was set), `privacy-protocol` (`none`, `DES`, `AES`, - `AES192`, `AES256`, `AES192C`, and `AES256C` are accepted, the later being + `AES192`, `AES256`, `AES192-C`, and `AES256-C` are accepted, the later being Cisco-variant), `privacy-passphrase` (if the previous value was set), and `context-name`. - `ports` is a map from exporter subnets to the SNMP port to use to poll diff --git a/inlet/metadata/provider/snmp/config_test.go b/inlet/metadata/provider/snmp/config_test.go index b2ee0058..8d29f33f 100644 --- a/inlet/metadata/provider/snmp/config_test.go +++ b/inlet/metadata/provider/snmp/config_test.go @@ -196,6 +196,33 @@ func TestConfigurationUnmarshallerHook(t *testing.T) { }, }), }, + }, { + Description: "SNMP security parameters with AES256C", + Initial: func() interface{} { return Configuration{} }, + Configuration: func() interface{} { + return gin.H{ + "poller-timeout": "200ms", + "security-parameters": gin.H{ + "user-name": "alfred", + "authentication-protocol": "sha", + "authentication-passphrase": "hello", + "privacy-protocol": "aes256-c", + "privacy-passphrase": "bye", + }, + } + }, + Expected: Configuration{ + PollerTimeout: 200 * time.Millisecond, + Credentials: helpers.MustNewSubnetMap(map[string]Credentials{ + "::/0": { + UserName: "alfred", + AuthenticationProtocol: AuthProtocolSHA, + AuthenticationPassphrase: "hello", + PrivacyProtocol: PrivProtocolAES256C, + PrivacyPassphrase: "bye", + }, + }), + }, }, { Description: "SNMP security parameters without privacy protocol", Initial: func() interface{} { return Configuration{} },