]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: Improve secret hiding
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 14 Aug 2018 12:25:40 +0000 (15:25 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 21 Aug 2018 09:16:40 +0000 (12:16 +0300)
Hide with more wide filtering.

src/config/doveconf.c

index 228ccf97670942106fb83d3e0515e973f0f16101..4a831680e7a95749bb8f4c7510be7da6c8c007c1 100644 (file)
@@ -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;