@Override
    public String toString() {
        return "ConfigEntry(" +
                "name=" + name +
                ", value=" + (isSensitive ? "Redacted" : value) +
                ", source=" + source +
                ", isSensitive=" + isSensitive +
                ", isReadOnly=" + isReadOnly +
                ", synonyms=" + synonyms +
                ", type=" + type +
                ", documentation=" + documentation +
                ")";
    }
Override toString to redact sensitive value.
WARNING, user should be responsible to set the correct "isSensitive" field for each config entry.
clients/src/main/java/org/apache/kafka/clients/admin/ConfigEntry.java