Skip to content

Commit

Permalink
Add sensitive annotations for Solr/RabbitMQ connector. (apache#4115)
Browse files Browse the repository at this point in the history
### Motivation

Add sensitive annotations for Solr/RabbitMQ connector.

### Modifications

Add sensitive annotations for username/passwd fields.
  • Loading branch information
murong00 authored and sijie committed Apr 26, 2019
1 parent ceaa253 commit 28fc66a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ public class RabbitMQAbstractConfig implements Serializable {
@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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ public class SolrSinkConfig implements Serializable {
@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;

Expand Down

0 comments on commit 28fc66a

Please sign in to comment.