Mercurial > prosody-modules
annotate mod_warn_legacy_tls/README.md @ 6319:04c3273cb81f
mod_auth_cyrus: Add empty 'profile' table to SASL handler objects
This is for compatibility with Prosody's built-in util.sasl objects.
A SASL profile table usually includes methods supported by the backend, which
can be used by SASL mechanism handlers to perform operations (such as testing
the password). It also optionally contains a 'cb' field with channel binding
method handlers.
The Cyrus backend doesn't support channel binding, and doesn't have the same
concept of auth backend methods (it handles all that internally, and Prosody
has no insight or control over it).
Thus, we create an empty profile which informs Prosody that the SASL handler
does not support any of the auth or channel binding methods. Some features
will not work, but they didn't work anyway. This just makes it explicit.
This fixes a traceback in mod_sasl2_fast, which expected SASL handlers to
always contain a 'profile' field.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 04 Sep 2025 10:14:46 +0100 |
| parents | b3489b046782 |
| children |
| rev | line source |
|---|---|
|
6066
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
1 --- |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
2 labels: |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
3 - Stage-Alpha |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
4 summary: Warn users of obsolete TLS Versions in clients |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
5 --- |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
6 |
| 6067 | 7 TLS 1.0 and TLS 1.1 are obsolete. This module warns clients if they are using those versions, to prepare for disabling them. (If you use the default prosody config, this module will be unnessesary in its default setting, since these protocols are not allowed anymore by any supported prosody version.) |
|
6066
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
8 |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
9 This module can be used to warn from TLS1.2 if you want to switch to modern security in the near future. |
| 3728 | 10 |
| 11 # Configuration | |
| 12 | |
|
6226
b3489b046782
mod_warn_legacy_tls: Normalize README Markdown
Kim Alvefur <zash@zash.se>
parents:
6224
diff
changeset
|
13 ``` lua |
| 3728 | 14 modules_enabled = { |
| 15 -- other modules etc | |
| 16 "warn_legacy_tls"; | |
| 17 } | |
| 18 | |
| 19 -- This is the default, you can leave it out if you don't wish to | |
| 20 -- customise or translate the message sent. | |
| 21 -- '%s' will be replaced with the TLS version in use. | |
| 22 legacy_tls_warning = [[ | |
| 23 Your connection is encrypted using the %s protocol, which has been demonstrated to be insecure and will be disabled soon. Please upgrade your client. | |
| 24 ]] | |
|
6066
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
25 |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
26 --You may want to warn about TLS1.2 these days too (This note added 2024), by default prosody will not even allow connections from TLS <1.2 |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
27 --Example: |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
28 legacy_tls_versions = { "TLSv1", "TLSv1.1", "TLSv1.2" } |
| 3728 | 29 ``` |
| 30 | |
| 31 ## Options | |
| 32 | |
| 33 `legacy_tls_warning` | |
| 34 : A string. The text of the message sent to clients that use outdated | |
| 35 TLS versions. Default as in the above example. | |
| 36 | |
| 37 `legacy_tls_versions` | |
| 38 : Set of TLS versions, defaults to | |
| 39 `{ "SSLv3", "TLSv1", "TLSv1.1" }`{.lua}, i.e. TLS \< 1.2. | |
|
6066
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
40 |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
41 # Compatibility |
|
7adab72d5ebe
mod_warn_legacy_tls: Update Examples and Introduction for current TLS versions.
Menel <menel@snikket.de>
parents:
5975
diff
changeset
|
42 |
|
6226
b3489b046782
mod_warn_legacy_tls: Normalize README Markdown
Kim Alvefur <zash@zash.se>
parents:
6224
diff
changeset
|
43 Prosody-Version Status |
|
b3489b046782
mod_warn_legacy_tls: Normalize README Markdown
Kim Alvefur <zash@zash.se>
parents:
6224
diff
changeset
|
44 ----------------- ---------------------- |
|
b3489b046782
mod_warn_legacy_tls: Normalize README Markdown
Kim Alvefur <zash@zash.se>
parents:
6224
diff
changeset
|
45 trunk Works as of 25-05-25 |
|
b3489b046782
mod_warn_legacy_tls: Normalize README Markdown
Kim Alvefur <zash@zash.se>
parents:
6224
diff
changeset
|
46 13 Works |
|
b3489b046782
mod_warn_legacy_tls: Normalize README Markdown
Kim Alvefur <zash@zash.se>
parents:
6224
diff
changeset
|
47 0.12 Works |
