exceptionfactory commented on code in PR #6479:
URL: https://github.com/apache/nifi/pull/6479#discussion_r989219851
##########
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ssh/StandardSSHConfigProvider.java:
##########
@@ -67,6 +67,13 @@ public Config getConfig(final String identifier, final
PropertyContext context)
getOptionalProperty(context,
KEY_EXCHANGE_ALGORITHMS_ALLOWED).ifPresent(property ->
config.setKeyExchangeFactories(getFilteredValues(property,
config.getKeyExchangeFactories())));
getOptionalProperty(context,
MESSAGE_AUTHENTICATION_CODES_ALLOWED).ifPresent(property ->
config.setMACFactories(getFilteredValues(property, config.getMACFactories())));
+ final String keyAlgorithmsAllowed =
context.getProperty(KEY_ALGORITHMS_ALLOWED).evaluateAttributeExpressions().getValue();
+ if (keyAlgorithmsAllowed == null) {
+ // Prioritize ssh-rsa when Key Algorithms Allowed is not specified
+ config.prioritizeSshRsaKeyAlgorithm();
Review Comment:
Thanks for the catch, that should not be happening, will remove the
unconditional call from line 76.
--
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]