Software /
code /
prosody-modules
Diff
mod_watchuntrusted/README.md @ 6211:750d64c47ec6 draft
Merge
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Tue, 18 Mar 2025 00:31:36 +0700 |
parent | 6003:fe081789f7b5 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_watchuntrusted/README.md Tue Mar 18 00:31:36 2025 +0700 @@ -0,0 +1,42 @@ +--- +labels: +- 'Stage-Alpha' +summary: | + Warn admins about outgoing s2s connections that are refused due to + invalid or untrusted certificates +... + +Introduction +============ + +Similar to mod\_watchregistrations, this module warns admins when an s2s +connection fails due for encryption or trust reasons. + +The certificate shows the SHA1 hash, so it can easily be used together +with mod\_s2s\_auth\_fingerprint. + +Configuration +============= + + modules_enabled = { + -- other modules -- + "watchuntrusted", + + } + + untrusted_fail_watchers = { "admin@example.lit" } + untrusted_fail_notification = "Establishing a secure connection from $from_host to $to_host failed. Certificate hash: $sha1. $errors" + + Option Default Description + ------------------------------- --------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------- + untrusted\_fail\_watchers All admins The users to send the message to + untrusted\_fail\_notification "Establishing a secure connection from \$from\_host to \$to\_host failed. Certificate hash: \$sha1. \$errors" The message to send, \$from\_host, \$to\_host, \$sha1 and \$errors are replaced + untrusted\_message\_type `"chat"` Which kind of message to send. `"normal"` or `"headline"` are other sensible options + untrusted\_ignore\_domains Empty The domains that this module should not warn about + +Compatibility +============= + + ------- ------- + trunk Works + ------- -------