logstash-plugins / logstash-input-tcp

Apache License 2.0
35 stars 75 forks source link

Feat: improve SSL error logging/unwrapping #178

Closed kares closed 3 years ago

kares commented 3 years ago

To be able to easily log full Java SSL exception details, we first move the SSL builder to Java.

otherwise this is ~ same as https://github.com/logstash-plugins/logstash-input-beats/pull/405 :

The unwrapping at the Java level is for exceptions wrapped by Netty.

Full exception details will be logged at debug level from the Java side - since we seem to prefer (manual) exception logging at the plugin level. We also make sure to log cause, if any, on the Ruby side which now catches all (expected) Java exceptions.

NOTE: we also avoid installing the bouncy-castle security provider at runtime, done previously

resolves https://github.com/logstash-plugins/logstash-input-tcp/issues/177