turcsanyip commented on code in PR #9824:
URL: https://github.com/apache/nifi/pull/9824#discussion_r2018710686
##########
nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/operations/SNMPTrapReceiverHandler.java:
##########
@@ -69,7 +71,12 @@ public int getListeningPort() {
}
public void createTrapReceiver(final ProcessSessionFactory
processSessionFactory, final ComponentLog logger) {
- addUsmUsers();
+ if (configuration.getVersion() == SnmpConstants.version3) {
+ removeMessageProcessingModel(MessageProcessingModel.MPv1);
+ removeMessageProcessingModel(MessageProcessingModel.MPv2c);
Review Comment:
@Lehel44 Thanks for this improvement! So unauthenticated v1 and v2 traps are
now disabled. However, it is still possible to send v3 traps with a
`noAuthNoPriv` client, even if `ListTrapSNMP` would require `authPriv`. Could
you please check this case too?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]