From bd91ae59afbfcf1fb8b7ffec6fe71f5e7178bee7 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 14 Aug 2018 15:25:40 +0300 Subject: [PATCH] doveconf: Improve secret hiding Hide with more wide filtering. --- src/config/doveconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/doveconf.c b/src/config/doveconf.c index 13eb492592..709a53188f 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -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; -- 2.47.3