-
-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Reworking the SMTP uri to use smtps scheme for implicit TLS and smtp for explicit StartTLS/cleartext #1770
Conversation
cd7b8f6
to
566ae17
Compare
9d06f24
to
aac7d9a
Compare
Codecov Report
@@ Coverage Diff @@
## master #1770 +/- ##
==========================================
- Coverage 74.07% 74.03% -0.05%
==========================================
Files 260 260
Lines 12770 12773 +3
==========================================
- Hits 9460 9456 -4
- Misses 2680 2684 +4
- Partials 630 633 +3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not look too deep into the actual code change, this is only regarding documentation.
4af82ed
to
788db14
Compare
I just rebased against the latest master. |
Could you please add a breaking change note in form of a comment here that helps users upgrade their existing SMTP URLs to the new format? Thank you! Example:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This is looking good! Could you please also add documentation to this page: https://www.ory.sh/kratos/docs/concepts/email-sms/#sending-e-mails-via-smtp
Would you like me to do it only on the first commit? And should I merge the 3 into one? |
You can add it as a comment! I will squash merge them anyways :) |
… smtp for explicit StartTLS/cleartext BREAKING CHANGE: The smtps scheme used in courier config url with cleartext/StartTLS/TLS SMTP connection types is now only supporting implicit TLS. For StartTLS and cleartext SMTP, please use the smtp scheme instead. Example: - SMTP Cleartext: smtp://foo:bar@my-mailserver:1234/?disable_starttls=true - SMTP with StartTLS: smtps://foo:bar@my-mailserver:1234/ -> smtp://foo:bar@my-mailserver:1234/ - SMTP with implicit TLS: smtps://foo:bar@my-mailserver:1234/?legacy_ssl=true -> smtps://foo:bar@my-mailserver:1234/
Fixing drivers/config/.schema/config.schema.json Co-authored-by: Patrik <zepatrik@users.noreply.github.com>
4762890
to
a957605
Compare
Wow! The error in circleci is weird. Any idea? |
looks like a flake - restarting the job :) |
It passed! :) I will resolve the merge conflict and it's good to go! |
…artTLS, and cleartext SMTP (#1831) BREAKING CHANGE: The SMTPS scheme used in courier config url with cleartext/StartTLS/TLS SMTP connection types is now only supporting implicit TLS. For StartTLS and cleartext SMTP, please use the smtp scheme instead. Example: - SMTP Cleartext: `smtp://foo:bar@my-mailserver:1234/?disable_starttls=true` - SMTP with StartTLS: `smtps://foo:bar@my-mailserver:1234/` -> `smtp://foo:bar@my-mailserver:1234/` - SMTP with implicit TLS: `smtps://foo:bar@my-mailserver:1234/?legacy_ssl=true` -> `smtps://foo:bar@my-mailserver:1234/` Closes #1770 Closes #1769
This changes the previous behaviour of the smtp uri from:
smtps://server:xxx/?skip_ssl_verify=true&legacy_ssl=true
To:
smtp://server:xxx/?skip_starttls=true&skip_ssl_verify=true (for StartTLS/cleartext)
smtps://server:xxx/?skip_ssl_verify=true (for Implicit TLS)
Related issue(s)
Closes #1769
Checklist
contributing code guidelines.
vulnerability. If this pull request addresses a security. vulnerability, I
confirm that I got green light (please contact
security@ory.sh) from the maintainers to push
the changes.
works.
Further Comments
I'm just having issues with MySQL persistence tests that seem unrelated. Could you confirm?