Differences between revisions 9 and 31 (spanning 22 versions)
Revision 9 as of 2021-07-05 05:33:17
Size: 16968
Editor: stroth
Comment:
Revision 31 as of 2021-09-10 09:21:06
Size: 19065
Editor: stroth
Comment: Stress importance of minimal delay between key export/import again
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
/!\ '''This article is a work in progress, don't trust it's contents, yet.'''
--------
<<BR>><<BR>><<BR>><<BR>><<BR>><<BR>><<BR>>
# #acl TrustedGroup:read,write,delete,revert,admin All:
Line 8: Line 6:
Except for the Computer Vision Lab (CVL) all D-ITET institutes and groups have to migrate away from D-ITET ISG's Matrix service to ETH ID's Matrix service. This article explains how to do this.<<BR>>
'''Read this manual completely before starting your migration.''' When you start your migration, follow to the order of the migration steps outlined here.
All D-ITET institutes and groups (except those paying for the service) have to migrate away from D-ITET ISG's Matrix service to ETH ID's Matrix service. This article explains how to do this.<<BR>>
 1. '''Read this manual completely before starting your migration'''
 1
. Afterwards '''decide which [[#Migration_cases|migration cases]]''' you want to follow
When you start your migration, '''follow the order of the migration steps''' outlined here.
Line 14: Line 14:

The ''homeserver'' is the Matrix service on which an ''account'' or ''room'' was initially created. The following four homeservers are distinguished:
||'''Homeserver''' ||'''Managed by'''||'''Available to'''||'''Type'''||
||`matrix.ee.ethz.ch` ||D-ITET ISG ||staff ||old ||
||`matrix-stud.ee.ethz.ch`||D-ITET ISG ||students        ||old ||
||`staffchat.ethz.ch` ||ETH ID ||staff ||new ||
||`studentchat.ethz.ch` ||ETH ID ||students ||new ||
 * The ''homeserver'' is the Matrix service on which an ''account'' or ''room'' was initially created. The following four homeservers are distinguished:
 ||'''Homeserver''' ||'''Managed by'''||'''Available to'''||'''Type'''||'''Web access'''||
 ||`matrix.ee.ethz.ch` ||D-ITET ISG ||staff ||old ||[[https://matrix.ee.ethz.ch/|matrix.ee.ethz.ch]]||
 ||`matrix-stud.ee.ethz.ch`||D-ITET ISG ||students, staff ||old ||[[https://matrix-stud.ee.ethz.ch/|matrix-stud.ee.ethz.ch]]||
 ||`staffchat.ethz.ch` ||ETH ID ||staff ||new ||[[https://chat.ethz.ch/staffchat|chat.ethz.ch/staffchat]]||
 ||`studentchat.ethz.ch` ||ETH ID ||students ||new ||[[https://chat.ethz.ch/studentchat|chat.ethz.ch/studentchat]]||
Line 23: Line 22:
 Make sure you know which is your old and new homeserver based on your ETH affiliation.<<BR>>  Make sure you know which is your old and new homeserver based on your ETH affiliation (staff or student).<<BR>>
Line 25: Line 24:
 * At first login on a homeserver, your account will be created. It stores your settings on the homeserver.  * At first login on a homeserver, your account is created. It stores your settings on the homeserver.
Line 27: Line 26:
 * Rooms on the old homeserver you have the role ''Admin'' in are referred to as ''Your rooms''
 * All other rooms in which your role is ''Default'' are referred to as ''rooms you joined'' or ''rooms you're a member of''
 * Rooms on the old homeserver in which you have the role ''Admin'' are referred to as ''Your rooms''
 * All other rooms in which your role is ''Default'' are referred to as ''rooms you joined'' or ''rooms you are a member of''
Line 30: Line 29:
 * 1:1 people chats are identical to rooms from a technical viewpoint and not distinguished here. All actions referring to rooms have to be applied to 1:1 people chats as well.

You mi
ght want to do a simple migration or a more complex one, depending on your personal preference. Make sure you understand the necessary preparation and decide which steps of the migration you will do and which steps you'll leave out.

=== Examples of migrations with varying complexity ===
The first step of any type of migration is to [[#Prepare_your_new_account|set up your new account]].

Afterwards you could passively wait until your new account [[#Accept_invites_with_your_new_account|gets invites]] to rooms and be done with the migration.
If you want to invest more time you can actively start to [[#Join_public_rooms_with_your_new_account|join the rooms]] your old account is a member of and [[#Ask_for_an_invite_to_a_private_room_for_your_new_account|ask for invites for your new account]].

If you want to be able to decrypt the chat history of a room which originated on the old homeserver with your new account, you'll have to [[#Enable_chat_history_decryption_for_your_new_account|transfer your E2E keys]].

If you are a room admin, you could simply [[#Establish_your_rooms_on_the_new_homeserver|set up a successor room on the new homeserver]] and let people know how to join it, provided the chat history of the original room is irrelevant.

Or if you want to retain your room's chat history you can [[#Set_up_your_new_account_as_room_admin|set up your new account as room admin]] and proactively [[#Replace_room_members_with_their_new_accounts|invite the new accounts]] of existing (old) room members
 * 1:1 people chats are identical to rooms from a technical viewpoint and not distinguished here. All actions referring to rooms have to be applied to 1:1 people chats as well. Certain actions do not have a user interface (as opposed to rooms) and need to be completed through the developer tools.

=== Migration cases ===
You might want to do a simple migration or a more complex one, depending on your personal preference. Make sure you understand the necessary preparation and decide which migration cases you will do.<<BR>><<BR>>
The first step of any migration case is to [[#Prepare_your_new_account|set up your new account]].
 * Afterwards you could passively wait until your new account [[#Accept_invites_with_your_new_account|gets invites]] to rooms and be done with the migration.
 * If you want to invest more time, you can actively start to [[#Join_public_rooms_with_your_new_account|join the rooms]] your old account is a member of and [[#Ask_for_an_invite_to_a_private_room_for_your_new_account|ask for invites for your new account]].
 * If you want to be able to decrypt the chat history of a room, which originated on the old homeserver with your new account, you will have to [[#Enable_chat_history_decryption_for_your_new_account|transfer your E2E keys]].
 * If you are a room admin, you could simply [[#Establish_your_rooms_on_the_new_homeserver|set up a successor room on the new homeserver]] and let people know how to join it, provided the chat history of the original room is irrelevant.
 * Or if you want to retain your room's chat history you can [[#Set_up_your_new_account_as_room_admin|set up your new account as room admin]] and proactively [[#Replace_room_members_with_their_new_accounts|invite the new accounts]] of existing (old) room members
Line 56: Line 49:
 1. Set up your new account as outlined in official documentation  1. Set up your new account as outlined in the official documentation
Line 59: Line 52:
As described in ETH IDs official documentation under [[https://unlimited.ethz.ch/display/itkb/Get+started#Getstarted-Self-Verification|Self-Verification]]:
Line 60: Line 54:
 * Verify any cleanup your sessions
as described in ETH IDs official documentation under [[https://unlimited.ethz.ch/display/itkb/Get+started#Getstarted-Self-Verification|Self-Verification]].
 * Verify and clean up your sessions
Line 64: Line 57:
For the following migration steps it's convenient to open a browser window logged into your old and new account each, to be able to switch back and forth between them. For the following migration steps, it is convenient to open a browser window logged into your old and new account each, to be able to switch back and forth between them.
Line 67: Line 60:
 * It might also be helpful to change the display name of your accounts for the same purpose  * It might also be helpful to change the display name of your accounts for the same purpose (See screenshots under [[#How_to_invite_an_account_to_one_of_your_rooms|How to invite an account]] for examples)
Line 71: Line 64:
 1. In the column listing your rooms, klick on the plus symbol ['''+'''] to the right of the title '''Rooms''':<<BR>>  1. In the column listing your rooms, click on the plus symbol ['''+'''] to the right of the title '''Rooms''':<<BR>>
Line 75: Line 68:
 1. Klick on the arrowhead pointing downwards ['''⋁'''] next to '''Matrix rooms [<homeserver>]''':<<BR>>  1. Click on the arrowhead pointing downwards ['''⋁'''] next to '''Matrix rooms [<homeserver>]''':<<BR>>
Line 79: Line 72:
 1. Enter the new homeserver if you're working with your old account, enter the old homeserver if you're working with your new account.<<BR>>
 The homeserver in the screenshot ''staffchat.ethz.ch'' is an example if you're a staff member and are logged into your old account. Make sure you enter the foreign homeserver you want here.<<BR>>
 1. Enter the new homeserver if you are working with your old account; enter the old homeserver if you are working with your new account.<<BR>>
 The homeserver in the screenshot ''staffchat.ethz.ch'' is an example if you are a staff member and are logged into your old account. Make sure you enter the foreign homeserver matching your ETH affiliation here.<<BR>>
Line 82: Line 75:
 1. Klick on '''Add'''
This enables to search for rooms you might only know part of the rooms name. Another way to access rooms is by [[#Join_rooms_with_your_new_account|using their name or ID]].
 1. Click on '''Add'''
This enables to search for rooms you might only know part of the room's name. Another way to access rooms is by [[#Join_rooms_with_your_new_account|using their name or ID]].
Line 86: Line 79:
In case you're not interested in any room's chat history, skip ahead to [[#Join_rooms_with_your_new_account|the next step]]. Be aware by skipping this step, previous chat history will never be available to your new account.<<BR>><<BR>> In case you are not interested in any room's chat history, skip ahead to [[#Join_rooms_with_your_new_account|the next step]]. Be aware by skipping this step, previous chat history will never be available to your new account.<<BR>><<BR>>
Line 88: Line 81:
The E2E keys of a room are rotated every 7 days or after 100 messages so this step needs to be done quickly after joining a room. The E2E keys of a room '''are rotated every 7 days or after 100 messages''' so '''this step needs to be done quickly after joining a room with your new account''' to keep the time between export and import minimal.
Line 92: Line 85:
 1. Klick on your display name in the top left area to open a popup menu containing the account settings:<<BR>>  1. Click on your display name in the top left area to open a popup menu containing the account settings:<<BR>>
Line 96: Line 89:
 1. Under '''Encryption → Secure Backup''' klick on '''Restore from Backup''' to make sure all your room keys are loaded in your session:<<BR>>  1. Under '''Encryption → Secure Backup''' click on '''Restore from Backup''' to make sure all your room keys are loaded in your session:<<BR>>
Line 98: Line 91:
 {X} Screenshot nochmals von HDMI-Auflösung hochladen (wie alle anderen)
1. Under '''Encryption → Cryptography''' klick on '''Export E2E room keys''' to save the room keys to a file: <<BR>>
 1. Under '''Encryption → Cryptography''' click on '''Export E2E room keys''' to save the room keys to a file: <<BR>>
Line 101: Line 93:
 1. Then continue by [[#Import_E2E_keys_to_your_new_account|importing the keys in your new account]] without delay
Line 105: Line 98:
 1. Klick on '''Import E2E room keys''' to load the room keys from the file you previously saved  1. Click on '''Import E2E room keys''' to load the room keys from the file you previously saved
Line 108: Line 101:
This might be as easy as [[#Accept_invites_with_your_new_account|accepting invites to rooms]]. For rooms you haven't gotten an invite, yet, you can [[#Check_uninvited_rooms.27_settings|check their settings]] and try to [[#Join_public_rooms_with_your_new_account|join them yourself]]. If rooms are private, you'll have to [[#Ask_for_an_invite_to_a_private_room_for_your_new_account|ask for an invite]]. Whenever you successfully joined a room with your new account, [[#Leave_rooms_with_your_old_account|leave it with your old account]]. This might be as simple as [[#Accept_invites_with_your_new_account|accepting invites to rooms]]. For rooms you have not gotten an invite, yet, you can [[#Check_uninvited_rooms.27_settings|check their settings]] and try to [[#Join_public_rooms_with_your_new_account|join them yourself]]. If rooms are private, you will have to [[#Ask_for_an_invite_to_a_private_room_for_your_new_account|ask for an invite]]. Whenever you successfully joined a room with your new account, [[#Leave_rooms_with_your_old_account|leave it with your old account]].
Line 117: Line 110:
With your old account, repeat the following steps for each room your new account hasn't been invited to, yet. The example room used here is called ''Showroom''. With your old account, repeat the following steps for each room your new account has not been invited to, yet. The example room used here is called ''Showroom''. The goal here is to figure out a room's privacy setting and its address or ID.
Line 119: Line 112:
 1. Klick on the triple dots ['''···'''] when they appear  1. Click on the triple dots ['''···'''] when they appear
Line 127: Line 120:
 Alternatively you can find a room's address in its settings under '''General → Room Addresses → Published Addresses → Main Address'''. Our example room's address is ''#showroom_localaddress:matrix.ee.ethz.ch'':<<BR>>  Alternatively, you can find a room's address in its settings under '''General → Room Addresses → Published Addresses → Main Address'''. Our example room's address is ''#showroom_localaddress:matrix.ee.ethz.ch'':<<BR>>
Line 129: Line 122:
 And it's ID under '''Advanced → Room information''':<<BR>>  And its ID under '''Advanced → Room information''':<<BR>>
Line 131: Line 124:
Depending on the setting, your next step is either to join a public room or ask for an invite if it's a private room. Depending on the setting, your next step is either to join a public room or ask for an invite if it is a private room.
Line 134: Line 127:
This is possible if a room is public, i.e. it's access setting is ''Anyone who knows the room's link, apart from guests'' or ''Anyone who knows the room's link, including guests'':<<BR>> This is possible if a room is public, i.e. its access setting is ''Anyone who knows the room's link, apart from guests'' or ''Anyone who knows the room's link, including guests'':<<BR>>
Line 138: Line 131:
Alternatively you can search for a public room after you [[#Add_homeservers_to_enable_room_search|added the room's homeserver]] and join it directly. Alternatively, you can search for a public room after you [[#Add_homeservers_to_enable_room_search|added the room's homeserver]] and join it directly.
Line 149: Line 142:
 1. Double-check your old account does '''not''' have the role '''Admin''' in the room.<<BR>>If it has, you ended up in the wrong part of this article. Continue with [[#Set_up_your_new_account_as_admin|Set up your new account as admin]] and do not do the next step mentioned below.
Line 153: Line 147:
You have the choice of recreating your rooms from scratch on the new homeserver and [[#How_to_invite_an_account_to_one_of_your_rooms|invite]] room members again with their new accounts or allow anyone to join by themselves. This is an easy way to clean up the chat history and memberships. If you set up such a successor room on the new homeserver, post it's address in your old room so room members are able to find it.<<BR>> You have the choice of recreating your rooms from scratch on the new homeserver and [[#How_to_invite_an_account_to_one_of_your_rooms|invite]] room members again with their new accounts or allow anyone to join by themselves. This is an easy way to clean up the chat history and memberships. If you set up such a successor room on the new homeserver, post it is address in your old room, so current room members are able to find and join it with their new accounts.<<BR>>
Line 162: Line 156:
=== Set up your new account as room admin ===
With your old account, repeat the following steps for each of your rooms:
=== Set up your new account as admin ===
Elevating an invited user to the role '''Admin''' can be done within the user interface for rooms. The steps for 1:1 people chats have to be done with the developer tools.

==== Invite your new account ====
With your old account, repeat the following steps for each of your rooms/1:1 people chats:
Line 167: Line 164:
 1. With your old account, grant your new account the role '''Admin''' by klicking on its profile picture appearing in the chat stating its joining.
==== Elevate your new account to room admin in a room ====
1. With your old account, grant your new account the role '''Admin''' by clicking on its profile picture appearing in the chat stating its joining.
Line 170: Line 169:
 1. On the appearing warning dialogue, klick '''Continue'''  1. On the appearing warning dialogue, click '''Continue'''

==== Elevate your new account to room admin in a 1:1 people chat ====
 1. Open the popup menu containing the room's settings
 1. Click on '''Advanced'''
 1. Click on '''Open Devtools'''
 1. Click on '''Explore Room State'''
 1. Click on '''m.room.power_levels'''
 1. In the appearing window, scroll down and click on '''Edit'''
 1. In the section '''"users": {...}''', put the line `"@<ETH username>:<new homeserver>":100,` between the two already listed users
 1. Click on '''Send'''
 1. Get back to the initial settings window by clicking on the '''[X]''' in the top right corner of the current window
 1. Leave the settings window

==== Verify the new role ====
Line 175: Line 188:
Depending on your rooms setting, people either need your invite to join it or can join freely. If an invite is necessary, repeat the following steps with your new account for each of your rooms. If your room has other admins than yourself, coordinate these steps with them: Depending on your room's setting, people either need your invite to join the room or can join freely. If an invite is necessary, repeat the following steps with your new account for each of your rooms. If your room has other admins than yourself, coordinate these steps with them:
Line 178: Line 191:
 The Computer Vision Lab (CVL) won't migrate to the new homeserver and its members don't need to be invited with their new accounts.
 1. Kick the corresponding old account out of your room to enable deletion of a room from the old homeserver
 The Computer Vision Lab (CVL) will not migrate to the new homeserver and its members do not need to be invited with their new accounts.
 1. After a successfully sending an invite to a new account, kick its corresponding old account out of your room to facilitate later deletion of the room from the old homeserver
Line 186: Line 199:
== Additonal how-tos == == Additional how-tos ==
Line 189: Line 202:
The example room used here is called ''Showroom'', the old account used in the example is called ''D-ITET Test User'', the new account ''ETH ID Test User''. The example room used here is called ''Showroom'', the old account used in the example is called ''D-ITET Test User'' and the new account ''ETH ID Test User''.
Line 191: Line 204:
 1. If the room has no members, yet, klick on the button '''Invite to this room''':<<BR>>  1. If the room has no members, yet, click on the button '''Invite to this room''':<<BR>>
Line 196: Line 209:
 1. While you're typing, account suggestions appear in the lower part of the window. Select the account from the suggestions:<<BR>>  1. While you are typing, account suggestions appear in the lower part of the window. Select the account from the suggestions:<<BR>>
Line 198: Line 211:
 1. Klick on '''Invite'''  1. Click on '''Invite'''

Migrate to ETH ID's Matrix service

All D-ITET institutes and groups (except those paying for the service) have to migrate away from D-ITET ISG's Matrix service to ETH ID's Matrix service. This article explains how to do this.

  1. Read this manual completely before starting your migration

  2. Afterwards decide which migration cases you want to follow

When you start your migration, follow the order of the migration steps outlined here.

Terms, abbreviations and main steps

The terms and abbreviations described in this paragraph will be used throughout the remainder of this document.

  • The homeserver is the Matrix service on which an account or room was initially created. The following four homeservers are distinguished:

    Homeserver

    Managed by

    Available to

    Type

    Web access

    matrix.ee.ethz.ch

    D-ITET ISG

    staff

    old

    matrix.ee.ethz.ch

    matrix-stud.ee.ethz.ch

    D-ITET ISG

    students, staff

    old

    matrix-stud.ee.ethz.ch

    staffchat.ethz.ch

    ETH ID

    staff

    new

    chat.ethz.ch/staffchat

    studentchat.ethz.ch

    ETH ID

    students

    new

    chat.ethz.ch/studentchat

  • The D-ITET homeserver will be referred to as the old homeserver, the ETH ID homeserver as the new homeserver.
    Make sure you know which is your old and new homeserver based on your ETH affiliation (staff or student).

  • The credentials you use to login on both old and new homeservers are always your ETH login and ETH password

  • At first login on a homeserver, your account is created. It stores your settings on the homeserver.

    Your account on the new homeserver is referred to as your new account, your account on the old homeserver as your old account.

  • Rooms on the old homeserver in which you have the role Admin are referred to as Your rooms

  • All other rooms in which your role is Default are referred to as rooms you joined or rooms you are a member of

  • Public rooms can be joined by anyone, private rooms can only be joined after receiving an invite

  • 1:1 people chats are identical to rooms from a technical viewpoint and not distinguished here. All actions referring to rooms have to be applied to 1:1 people chats as well. Certain actions do not have a user interface (as opposed to rooms) and need to be completed through the developer tools.

Migration cases

You might want to do a simple migration or a more complex one, depending on your personal preference. Make sure you understand the necessary preparation and decide which migration cases you will do.

The first step of any migration case is to set up your new account.

Preparation

For the migration to go smoothly there are mandatory steps you need to do. The optional steps are for your convenience and not strictly necessary, but helpful.

Mandatory preparation

Prepare your new account

  1. Read the official documentation of ETH ID's Matrix service

  2. Log in on your new homeserver (see next step for how to do this). This step creates your account and allows others to invite you to rooms with your new account.
  3. Read the official documentation on how to set up your new account on ETH ID's Matrix service

  4. Set up your new account as outlined in the official documentation

Verify security settings and sessions of your old account

As described in ETH IDs official documentation under Self-Verification:

  • Do the self-verification of sessions you have on different devices
  • Verify and clean up your sessions

Optional preparation

For the following migration steps, it is convenient to open a browser window logged into your old and new account each, to be able to switch back and forth between them.

Visually distinguish your old and new account

  • To be able to visually distinguish your old and new accounts, you might want to upload different profile pictures for the time of the migration
  • It might also be helpful to change the display name of your accounts for the same purpose (See screenshots under How to invite an account for examples)

A foreign homeserver can be added to an account to enable search for public rooms on the foreign homeserver. Do the listed steps for both your old and new account. Specifically, while logged into your new account, add the old homeserver. While logged into your old account, add the new homeserver.

  1. In the column listing your rooms, click on the plus symbol [+] to the right of the title Rooms:
    Plus_symbol.png

  2. From the popup menu select Explore public rooms:
    Explore_public_rooms.png

  3. Click on the arrowhead pointing downwards [] next to Matrix rooms [<homeserver>]:
    Matrix_rooms_v.png

  4. In the popup menu select Add a new server:
    Add_a_new_server.png

  5. Enter the new homeserver if you are working with your old account; enter the old homeserver if you are working with your new account.
    The homeserver in the screenshot staffchat.ethz.ch is an example if you are a staff member and are logged into your old account. Make sure you enter the foreign homeserver matching your ETH affiliation here.
    Enter_homeserver.png

  6. Click on Add

This enables to search for rooms you might only know part of the room's name. Another way to access rooms is by using their name or ID.

Enable chat history decryption for your new account

In case you are not interested in any room's chat history, skip ahead to the next step. Be aware by skipping this step, previous chat history will never be available to your new account.

For your new account to be able to read the chat history of the freshly joined rooms, the end to end (E2E) room keys have to be exported from your old account and imported with your new account.
The E2E keys of a room are rotated every 7 days or after 100 messages so this step needs to be done quickly after joining a room with your new account to keep the time between export and import minimal.

Export E2E keys from your old account

In your old account:

  1. Click on your display name in the top left area to open a popup menu containing the account settings:
    Account_settings.png

  2. Select Security & Privacy:
    Security_privacy.png

  3. Under Encryption → Secure Backup click on Restore from Backup to make sure all your room keys are loaded in your session:
    Restore_from_Backup.png

  4. Under Encryption → Cryptography click on Export E2E room keys to save the room keys to a file:
    Export_import_E2E.png

  5. Then continue by importing the keys in your new account without delay

Import E2E keys to your new account

In your new account:

  1. As with the export step before, go to Settings → Security & Privacy → Encryption → Cryptography

  2. Click on Import E2E room keys to load the room keys from the file you previously saved

Join rooms with your new account

This might be as simple as accepting invites to rooms. For rooms you have not gotten an invite, yet, you can check their settings and try to join them yourself. If rooms are private, you will have to ask for an invite. Whenever you successfully joined a room with your new account, leave it with your old account.

Accept invites with your new account

  1. Check if your new account already received invites to rooms your old account has joined:
    Received_invite.png

  2. Accept the invites for those rooms you want to join:
    Accept_invite.png

Check uninvited rooms' settings

With your old account, repeat the following steps for each room your new account has not been invited to, yet. The example room used here is called Showroom. The goal here is to figure out a room's privacy setting and its address or ID.

  1. Hover your mouse over a room's name in the room list
  2. Click on the triple dots [···] when they appear

  3. Select Settings in the popup menu:
    Leave_room.png

  4. Check the room's access settings under Security & Privacy → Who can access this room?
    Room_access.png

  5. Note the room's address or ID from the last part of the room's URL, beginning with either a hash [#] or an exclamation mark [!]:

    • #<room address>:<rooms homeserver>

    • !<room id>:<rooms homeserver>

    Alternatively, you can find a room's address in its settings under General → Room Addresses → Published Addresses → Main Address. Our example room's address is #showroom_localaddress:matrix.ee.ethz.ch:
    Room_address.png
    And its ID under Advanced → Room information:
    Room_ID.png

Depending on the setting, your next step is either to join a public room or ask for an invite if it is a private room.

Join public rooms with your new account

This is possible if a room is public, i.e. its access setting is Anyone who knows the room's link, apart from guests or Anyone who knows the room's link, including guests:
→ try to join these rooms with your new account by entering each room's URL in your browser's URL field:

  • https://<new homeserver>/_matrix/client/#/room/#<room address>:<rooms homeserver>

  • https://<new homeserver>/_matrix/client/#/room/!<room id>:<rooms homeserver>

Alternatively, you can search for a public room after you added the room's homeserver and join it directly.

Ask for an invite to a private room for your new account

This can be done in private rooms where your old account has been previously invited to, i.e. the room's access setting is Only people who have been invited:
→ With your old account enter the room you want your new account to join and ask the room admins to invite your new account:
Please invite my account @<ETH username>:<new homeserver> due to the Matrix migration from D-ITET to ETH ID.

Admins are labelled as such in the room members list. In case the list is too long, look for a room admin in the room's settings under Roles & Permissions.

Leave rooms with your old account

After successfully joining a room with your new account, leave the room with your old account. This step is important, as deletion of a room from the old homeserver is only possible when there are no more members with local accounts:

  1. Open the popup menu containing the room's settings again
  2. Double-check your old account does not have the role Admin in the room.
    If it has, you ended up in the wrong part of this article. Continue with Set up your new account as admin and do not do the next step mentioned below.

  3. Select Leave Room

Your old account can only be deleted from the old homeserver after it left all rooms, so make sure you see no more 1:1 people chats listed under People or rooms listed under Rooms.

Establish your rooms on the new homeserver

You have the choice of recreating your rooms from scratch on the new homeserver and invite room members again with their new accounts or allow anyone to join by themselves. This is an easy way to clean up the chat history and memberships. If you set up such a successor room on the new homeserver, post it is address in your old room, so current room members are able to find and join it with their new accounts.
If you want to keep the chat history of a room, follow the steps below to synchronize your rooms to the new homeserver.

Exception: Local rooms

The exception are local rooms set up to be accessible only on their homeserver. They cannot be synchronized to another homeserver. Such rooms will have to be re-created on the new homeserver, the chat history will be lost.
Rooms with such a setup show This room is not accessible by remote Matrix servers under Room Settings → Advanced → Room information:
Local_room.png
If you invite an account on the new homeserver to a local room on the old homeserver, the invite will fail.

Set up your new account as admin

Elevating an invited user to the role Admin can be done within the user interface for rooms. The steps for 1:1 people chats have to be done with the developer tools.

Invite your new account

With your old account, repeat the following steps for each of your rooms/1:1 people chats:

  1. Invite your new account with your old account

  2. Have your new account accept the invite. Verify this happened in the chat history:
    Account_joined.png

Elevate your new account to room admin in a room

  1. With your old account, grant your new account the role Admin by clicking on its profile picture appearing in the chat stating its joining.

  2. Grant your new account the role Admin:
    Grant_admin.png

  3. On the appearing warning dialogue, click Continue

Elevate your new account to room admin in a 1:1 people chat

  1. Open the popup menu containing the room's settings
  2. Click on Advanced

  3. Click on Open Devtools

  4. Click on Explore Room State

  5. Click on m.room.power_levels

  6. In the appearing window, scroll down and click on Edit

  7. In the section "users": {...}, put the line "@<ETH username>:<new homeserver>":100, between the two already listed users

  8. Click on Send

  9. Get back to the initial settings window by clicking on the [X] in the top right corner of the current window

  10. Leave the settings window

Verify the new role

  1. Verify the role change is visible in the room's chat history:
    Admin_granted.png

Replace room members with their new accounts

Depending on your room's setting, people either need your invite to join the room or can join freely. If an invite is necessary, repeat the following steps with your new account for each of your rooms. If your room has other admins than yourself, coordinate these steps with them:

  1. Invite members again with their new accounts.
    Some users might not have logged into their new account and cannot be invited yet.
    The Computer Vision Lab (CVL) will not migrate to the new homeserver and its members do not need to be invited with their new accounts.

  2. After a successfully sending an invite to a new account, kick its corresponding old account out of your room to facilitate later deletion of the room from the old homeserver

Leave your rooms with your old account

With your old account, repeat the following steps for each of your rooms:

  1. Verify your new account has the role Admin

  2. Leave the room

Additional how-tos

As inviting a new account and verifying the action is critical to the migration process, this seemingly simple task is explained here in detail.

How to invite an account to one of your rooms

The example room used here is called Showroom, the old account used in the example is called D-ITET Test User and the new account ETH ID Test User.

  1. Right click on the room in the column listing all rooms
  2. If the room has no members, yet, click on the button Invite to this room:
    Invite_button.png

  3. Otherwise open the popup menu of a room containing Settings and select Invite People

  4. Type the account you want to invite into the field left to the green button labelled Invite:
    Invite_autocomplete.png

  5. While you are typing, account suggestions appear in the lower part of the window. Select the account from the suggestions:
    Select_autocompleted.png

  6. Click on Invite

  7. Verify the invite appeared in the room's chat history:
    Invite_shown_in_chat.png

ChatMigration (last edited 2023-10-16 13:31:50 by alders)