Skip to content

Add the enable_guest_registration config option - #305

Open
devonh wants to merge 1 commit into
mainfrom
devonh/guest-registration-toggle
Open

devonh wants to merge 1 commit into
mainfrom
devonh/guest-registration-toggle

Conversation

@devonh

@devonh devonh commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

register_guest creates an account for anyone who asks, without authenticating. A deployment that doesn't want that, such as one that invites guests by email through MAS instead, can now turn it off:

modules:
  - module: synapse_guest_module.GuestModule
    config:
      enable_guest_registration: false   # default: true

When it's off, the module doesn't mount /_synapse/client/register_guest. The user reaper and the guest restrictions are unchanged.

The default stays true, so existing deployments keep today's behaviour. Element Web's restricted-guests module calls this endpoint from its "Join as guest" button, which stops working while the option is off, so only turn it off once that button is gone.

`register_guest` lets anyone create a guest account without
authenticating. A deployment that doesn't want that can now turn it off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CZdGaj9bJcn5QeeUw8YXoF
@devonh
devonh marked this pull request as ready for review October 9, 2026 20:21
@devonh
devonh requested a review from a team as a code owner October 9, 2026 20:21
@devonh
devonh requested a review from sandhose October 9, 2026 20:21
@devonh

devonh commented Oct 9, 2026

Copy link
Copy Markdown
Member Author

CI failing is due to a failure on main.
#308 fixes the issue.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant