Skip to content

Commit

Permalink
doveconf: Improve secret hiding
Browse files Browse the repository at this point in the history
Hide with more wide filtering.
  • Loading branch information
cmouse committed Aug 21, 2018
1 parent b338b75 commit 0b1ee35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/doveconf.c
Expand Up @@ -255,8 +255,8 @@ hide_secrets_from_value(struct ostream *output, const char *key,
const char *ptr, *optr, *secret;
if (*value != '\0' &&
(key_ends_with(key, value, "_password") ||
key_ends_with(key, value, "_api_key") ||
str_begins(key, "ssl_key") ||
key_ends_with(key, value, "_key") ||
key_ends_with(key, value, "_nonce") ||
str_begins(key, "ssl_dh"))) {
o_stream_nsend_str(output, "# hidden, use -P to show it");
return TRUE;
Expand Down

0 comments on commit 0b1ee35

Please sign in to comment.