-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows to choose SSL context for SMTP connection (#33070)
This change add two options to choose from when SSL SMTP connection is created: * default - for balance between compatibility and security * none - in case compatibility with existing infrastructure is preferred (cherry picked from commit 120efc1)
- Loading branch information
1 parent
0e513d8
commit 3bd8f02
Showing
4 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
In case of SMTP SSL connection, the default context now uses "default" context | ||
|
||
The "default" context is Python's ``default_ssl_contest`` instead of previously used "none". The | ||
``default_ssl_context`` provides a balance between security and compatibility but in some cases, | ||
when certificates are old, self-signed or misconfigured, it might not work. This can be configured | ||
by setting "ssl_context" in "email" configuration of Airflow. Setting it to "none" brings back | ||
the "none" setting that was used in Airflow 2.6 and before, but it is not recommended due to security | ||
reasons ad this setting disables validation of certificates and allows MITM attacks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters