Skip to content

Commit 8c3166b

Browse files
committed
Release Keila 0.14.3
Another attempt to fix STARTTLS issues: Only support TLSv1.2 since OTP isn't fully compliant with 1.3 yet
1 parent b2eeb4e commit 8c3166b

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## Unreleased
44

5+
## Version 0.14.3
6+
7+
## Fixed
8+
- Only support TLSv1.2 for STARTTLS SMTP Senders to avoid issues with
9+
non-compliant TLSv1.3 implementation in OTP
10+
511
## Version 0.14.2
612

713
## Improved

Diff for: config/runtime.exs

+4-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ if config_env() == :prod do
104104
if starttls? do
105105
config
106106
|> Keyword.put(:tls, :always)
107-
|> Keyword.put(:tls_options, :tls_certificate_check.options(host))
107+
|> Keyword.put(
108+
:tls_options,
109+
:tls_certificate_check.options(host) ++ [versions: [:"tlsv1.2"]]
110+
)
108111
else
109112
config
110113
end

Diff for: lib/keila/mailings/sender_adapters/smtp.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ defmodule Keila.Mailings.SenderAdapters.SMTP do
4848
opts
4949
|> Keyword.put(:tls, :always)
5050
|> Keyword.put(:tls_options, :tls_certificate_check.options(config.smtp_relay))
51-
|> put_in([:tls_options, :versions], [:"tlsv1.2", :"tlsv1.3"])
51+
|> put_in([:tls_options, :versions], [:"tlsv1.2"])
5252

5353
true ->
5454
opts

Diff for: mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Keila.MixProject do
44
def project do
55
[
66
app: :keila,
7-
version: "0.14.2",
7+
version: "0.14.3",
88
elixir: "~> 1.15",
99
elixirc_paths: elixirc_paths(Mix.env()),
1010
compilers: [:phoenix] ++ Mix.compilers(),

0 commit comments

Comments
 (0)