Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
1 change: 1 addition & 0 deletions changelog.d/17121.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve error message for cross signing reset with MSC3861 enabled.
4 changes: 3 additions & 1 deletion synapse/rest/client/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,11 @@ async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
# The auth service has to explicitly mark the master key as replaceable
# without UIA to reset the device signing key with MSC3861.
if is_cross_signing_setup and not master_key_updatable_without_uia:
url = self.hs.config.experimental.msc3861.account_management_url
raise SynapseError(
HTTPStatus.NOT_IMPLEMENTED,
"Resetting cross signing keys is not yet supported with MSC3861",
"Resetting cross signing keys with MSC3861 requires manual "
f"approval at {url}?action=org.matrix.cross_signing_reset",
Codes.UNRECOGNIZED,
)
# But first-time setup is fine
Expand Down