-
Notifications
You must be signed in to change notification settings - Fork 665
Support to config custom decryption methods for kafka configurations and fix bug kafka-reporter-plugin exception "java.lang.NoClassDefFoundError: com/google/gson/Gson"` #535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…and fix bug `kafka-reporter-plugin-8.15.0 throw exception "java.lang.NoClassDefFoundError: com/google/gson/Gson"`
CHANGES.md
Outdated
| * Support Grizzly Trace | ||
| * Fix possible IllegalStateException when using Micrometer. | ||
|
|
||
| * Support to config custom decryption methods for kafka configurations and fix bug `kafka-reporter-plugin-8.15.0 throw exception "java.lang.NoClassDefFoundError: com/google/gson/Gson"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be two features, rather than one.
| | `plugin.kafka.topic_management` | Specify which Kafka topic name for the register or heartbeat data of Service Instance to report to. | SW_PLUGIN_KAFKA_TOPIC_MANAGEMENT | `skywalking-managements` | | ||
| | `plugin.kafka.topic_logging` | Specify which Kafka topic name for the logging data to report to. | SW_PLUGIN_KAFKA_TOPIC_LOGGING | `skywalking-logging` | | ||
| | `plugin.kafka.namespace` | isolate multi OAP server when using same Kafka cluster (final topic name will append namespace before Kafka topics with `-` ). | SW_KAFKA_NAMESPACE | `` | | ||
| | `plugin.kafka.decrypt_class` | Specify which class to decrypt encrypted configuration of kafka.You can set encrypted information in `plugin.kafka.producer_config_json` or `plugin.kafka.producer_config` if you need. | SW_KAFKA_DECRYPT_CLASS | `` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doc should be updated as well, including
- Which artifact and version should the developer depend on to develop this? Which interface should be implemented?
- Where to put the packaged codes
kafka-reporter-plugin-8.15.0 throw exception "java.lang.NoClassDefFoundError: com/google/gson/Gson"| Class<?> decryptClazz = Class.forName(Kafka.DECRYPT_CLASS); | ||
| Method decryptMethod = decryptClazz.getMethod(Kafka.DECRYPT_METHOD, Map.class); | ||
| return (Map<String, String>) decryptMethod.invoke(decryptClazz.newInstance(), config); | ||
| } catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) { | ||
| // ignore | ||
| LOGGER.warn("The decrypt class {} is not exist, exception:{}.", Kafka.DECRYPT_CLASS, e); | ||
| return config; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to do in this way, please indicate in the docs, what method should be written.
You should do code style check. |
|
As this PR is not updated, GSON part is being fixed by #538 as well. |
|
[Bug] fix bug
kafka-reporter-plugin-8.15.0 throw exception "java.lang.NoClassDefFoundError: com/google/gson/Gson"Fix apache/skywalking#10848
skywalking-java support to decrypt password of kafka with SASL_SSL enabled
If this is non-trivial feature, paste the links/URLs to the design doc.
Update the documentation to include this new feature.
Tests(including UT, IT, E2E) are added to verify the new feature.
If it's UI related, attach the screenshots below.
Closes #<10848>.
Update the
CHANGESlog.