Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Clarify upgrade notes ahead of 1.4.0 release #6033

Merged
merged 33 commits into from
Sep 26, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b6913a9
wip clarifications to the 1.4 upgrade notes
neilisfragile Sep 12, 2019
275fdf4
towncrier
neilisfragile Sep 12, 2019
299f99b
fix rendering bugs
neilisfragile Sep 13, 2019
44cc8ee
Update UPGRADE.rst
neilisfragile Sep 13, 2019
df4d30e
Update UPGRADE.rst
neilisfragile Sep 13, 2019
e234785
Update UPGRADE.rst
neilisfragile Sep 13, 2019
562be3a
Update UPGRADE.rst
neilisfragile Sep 13, 2019
c146172
Update UPGRADE.rst
neilisfragile Sep 13, 2019
f48e209
Update UPGRADE.rst
neilisfragile Sep 13, 2019
b2aeffd
Update UPGRADE.rst
neilisfragile Sep 13, 2019
005b626
add reference to new email templates
neilisfragile Sep 18, 2019
8ed2a8e
For clarity
neilisfragile Sep 18, 2019
3bb7413
clarifications
neilisfragile Sep 19, 2019
830fdef
fix merge conflicts
neilisfragile Sep 19, 2019
6f173e9
Merge branch 'develop' of github.com:matrix-org/synapse into neilj/up…
neilisfragile Sep 19, 2019
9719aea
Apply suggestions from code review
neilisfragile Sep 19, 2019
12a8a93
clarity
neilisfragile Sep 19, 2019
1ce9a42
Merge branch 'neilj/upgrade_notes' of github.com:matrix-org/synapse i…
neilisfragile Sep 19, 2019
7bdf545
word wrap
neilisfragile Sep 19, 2019
1806fda
specify the cut off date for IS email delegation
neilisfragile Sep 24, 2019
7e50237
Apply suggestions from code review
neilisfragile Sep 24, 2019
03608b1
clarity
neilisfragile Sep 24, 2019
22d94a6
Merge branch 'neilj/upgrade_notes' of github.com:matrix-org/synapse i…
neilisfragile Sep 24, 2019
0548e65
Apply suggestions from code review
neilisfragile Sep 25, 2019
f94937e
clarity
neilisfragile Sep 26, 2019
b8042d6
move custom templates away from threepid delegation section
neilisfragile Sep 26, 2019
1f059b6
formatting
neilisfragile Sep 26, 2019
bfda23b
rejig custom templates to be at the top
neilisfragile Sep 26, 2019
ab77a61
Merge branch 'neilj/upgrade_notes' of github.com:matrix-org/synapse i…
neilisfragile Sep 26, 2019
77c4989
place holder blog reference
neilisfragile Sep 26, 2019
7783bc1
rearrange sections again
richvdh Sep 26, 2019
f954075
more editing tweaks
richvdh Sep 26, 2019
4d626ff
remove blog link
richvdh Sep 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 81 additions & 10 deletions UPGRADE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,62 @@ Config options
**Note: Registration by email address or phone number will not work in this release unless
some config options are changed from their defaults.**

neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
This is due to Synapse v1.4.0 now defaulting to sending registration and password reset tokens
itself. This is for security reasons as well as putting less reliance on identity servers.
However, currently Synapse only supports sending emails, and does not have support for
phone-based password reset or account registration. If Synapse is configured to handle these on
its own, phone-based password resets and registration will be disabled. For Synapse to send
emails, the ``email`` block of the config must be filled out. If not, then password resets and
registration via email will be disabled entirely.

This release also deprecates the ``email.trust_identity_server_for_password_resets`` option and
replaces it with the ``account_threepid_delegates`` dictionary. This option defines whether the
Previous versions of Synapse delegate the sending of registration emails and
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
SMS to an Identity Server by default. In most cases this server is vector.im or
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
matrix.org.

In Synapse 1.4, for security and privacy reasons, the homeserver will no longer
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
delegate email or SMS to an identity server by default and instead the admin
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
will need to explicitly decide how they would like email and SMS to be sent.

In the medium term the vector.im and matrix.org Identity servers will disable
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
sending email and SMS entirely, however in order to ease the transition they
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
will retain the capability to send email and SMS for a limited period. Email
will be disabled on XXX (giving 2 months notice), disabling SMS will follow
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mental note: Make sure this gets filled in.

neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
some time after that once SMS sending support resides in Synapse.
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved

Once email and SMS support has been disabled in the vector.im and matrix.org
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda feel like this is obvious enough and far enough off that it isn't worth calling out here - indeed it adds more confusion than it solves. We may as well announce it elsewhere when the time comes (if people aren't reading blogs etc, and are stuck on old versions of synapse, I don't believe that they will read these upgrade notes either).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused by what you mean here. It seems like a reasonable follow on question, 'how long do I have to act?'.

I'm worried that if we say nothing then admins will continue to delegate without realising they only have 2 months to make alternate arrangements and then be caught by surprise.

Separately I would expect a blog post and reference in the UPGRADE notes closer to the time.

identity servers, all Synapse versions that depend on those instances will be
unable to send email and SMS them through them.
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved

Email
-----

Following upgrade, to continue using email as a registration method admins can either:-

* Configure Synapse to use an alternate email server (details follow).
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
* Run their own identity server and delegate to it (which then will require details of an alternate email server).
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved

To configure an SMTP server for Synapse, modify the configuration section
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
headed ``email``, and be sure to have at least the ``smtp_host, smtp_port``
and ``notif_from`` fields filled out.

You may also need to set ``smtp_user``, ``smtp_pass``, and
``require_transport_security``.

See the `sample configuration file <https://github.com/matrix-org/synapse/blob/master/docs/sample_config.yaml>`_ for more details on these settings.

Some admins will wish to continue using email as a registration method, but
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not a registration method

will not immediately have an appropriate SMTP server to hand.
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved

To this end, we will continue to support email delegation via the vector.im and
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
matrix.org identity servers for two months, the cut off date is XXXX after
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
which time email delegation will be disabled.

The ``account_threepid_delegates`` dictionary defines whether the
homeserver should delegate an external server (typically an `identity server
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
<https://matrix.org/docs/spec/identity_service/r0.2.1>`_) to handle sending password reset or
registration messages via email and SMS.

So to delegate email sending set ``account_threepid_delegates.email`` to a base URL of
an identity server in your homeserver.yaml. Note that ``account_threepid_delegates.email``
replaces the deprecated ``email.trust_identity_server_for_password_resets``
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved

.. code:: yaml

account_threepid_delegates:
email: https://example.com # Delegate email sending to example.com

If ``email.trust_identity_server_for_password_resets`` is set to ``true``, and
``account_threepid_delegates.email`` is not set, then the first entry in
``trusted_third_party_id_servers`` will be used as the account threepid delegate for email.
Expand Down Expand Up @@ -99,6 +141,35 @@ Synapse will expect these files to exist inside the configured template director
default templates, see `synapse/res/templates
<https://github.com/matrix-org/synapse/tree/master/synapse/res/templates>`_.

SMS
---

Following upgrade, the only way to maintain the ability to register via a phone
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
number will be to continue to delegate SMS delivery via the matrix.org and
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
vector.im identity servers.

neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
The ``account_threepid_delegates`` dictionary defines whether the
homeserver should delegate an external server (typically an `identity server
<https://matrix.org/docs/spec/identity_service/r0.2.1>`_) to handle sending password reset or
registration messages via email and SMS.

So to delegate SMS sending set ``account_threepid_delegates.sms`` to a base URL of
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
an identity server in your homeserver.yaml.

.. code:: yaml

account_threepid_delegates:
sms: https://example.com # Delegate email sending to example.com
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved

Currently Synapse does not support a means to send SMS itself, and the
matrix.org and vector.im identity servers will continue to support SMS until
such time as it is possible for admins to configure their servers to send SMS
directly. More details will follow in a future release.

neilisfragile marked this conversation as resolved.
Show resolved Hide resolved

For more details on why these changes are necessary see (link to blog).
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👎

Upgrading to v1.2.0
===================

Expand Down
1 change: 1 addition & 0 deletions changelog.d/6027.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify Synapse 1.4 upgrade notes.
neilisfragile marked this conversation as resolved.
Show resolved Hide resolved