]> 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, 14 Aug 2018 12:26:57 +0000 (15:26 +0300)
Hide with more wide filtering.

src/config/doveconf.c

index 13eb492592b356636665596d5f357a4e5522db3e..709a53188f66516fcb6c941e801ed572aace8b22 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;