Add sensitive annotations for Solr/RabbitMQ connector. (#4115)
### Motivation
Add sensitive annotations for Solr/RabbitMQ connector.
### Modifications
Add sensitive annotations for username/passwd fields.
diff --git a/pulsar-io/rabbitmq/src/main/java/org/apache/pulsar/io/rabbitmq/RabbitMQAbstractConfig.java b/pulsar-io/rabbitmq/src/main/java/org/apache/pulsar/io/rabbitmq/RabbitMQAbstractConfig.java
index 97174d0..a9386d4 100644
--- a/pulsar-io/rabbitmq/src/main/java/org/apache/pulsar/io/rabbitmq/RabbitMQAbstractConfig.java
+++ b/pulsar-io/rabbitmq/src/main/java/org/apache/pulsar/io/rabbitmq/RabbitMQAbstractConfig.java
@@ -71,12 +71,14 @@
@FieldDoc(
required = false,
defaultValue = "guest",
+ sensitive = true,
help = "The username used to authenticate to RabbitMQ")
private String username = "guest";
@FieldDoc(
required = false,
defaultValue = "guest",
+ sensitive = true,
help = "The password used to authenticate to RabbitMQ")
private String password = "guest";
diff --git a/pulsar-io/solr/src/main/java/org/apache/pulsar/io/solr/SolrSinkConfig.java b/pulsar-io/solr/src/main/java/org/apache/pulsar/io/solr/SolrSinkConfig.java
index 7176c58..ccf25f5 100644
--- a/pulsar-io/solr/src/main/java/org/apache/pulsar/io/solr/SolrSinkConfig.java
+++ b/pulsar-io/solr/src/main/java/org/apache/pulsar/io/solr/SolrSinkConfig.java
@@ -76,12 +76,14 @@
@FieldDoc(
required = false,
defaultValue = "",
+ sensitive = true,
help = "The username to use for basic authentication")
private String username;
@FieldDoc(
required = false,
defaultValue = "",
+ sensitive = true,
help = "The password to use for basic authentication")
private String password;