commit 07f9ed4: [Minor] Distinguish vault usage

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Apr 29 13:56:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-29 14:52:50 +0100
URL: https://github.com/rspamd/rspamd/commit/07f9ed4ebf00a615b1a5c7f5ca35d99c6b07bf3f

[Minor] Distinguish vault usage

---
 lualib/lua_dkim_tools.lua | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lualib/lua_dkim_tools.lua b/lualib/lua_dkim_tools.lua
index 6220c0162..3ef2eec30 100644
--- a/lualib/lua_dkim_tools.lua
+++ b/lualib/lua_dkim_tools.lua
@@ -287,12 +287,18 @@ local function prepare_dkim_signing(N, task, settings)
                 sign_entry, key_entry, hdom)
             return false,{}
           end
-        else
+        elseif settings.use_vault then
           -- Sign table is presented, the rest is covered by vault
+          lua_util.debugm(N, task, 'check vault for %s, by sign entry %s, key entry is missing',
+              hdom, sign_entry)
           return true, {
             domain = sign_entry,
             vault = true
           }
+        else
+          logger.errx(task, 'missing key entry for sign entry %s; when signing %s domain',
+              sign_entry, hdom)
+          return false,{}
         end
       else
         logger.errx(task, 'cannot get key entry for signing entry %s, when signing %s domain',


More information about the Commits mailing list