Skip to content

Policy data for emails and registration *must* be set #4155

@turt2live

Description

@turt2live

Describe the bug
https://element-hq.github.io/matrix-authentication-service/reference/configuration.html#policy says that if emails or registration are unspecified, then the allow rules by default allow everything, but this appears to not be the case.

To Reproduce
Steps to reproduce the behavior:

  1. Create a relatively basic/standard config with:
    policy:
      data:
        client_registration:
          allow_insecure_uris: true
          allow_missing_contacts: true
        admin_users: ['admin']
        admin_clients: ['CLIENTID']
  2. Navigate to registration page
  3. Try to register

Expected behavior
Registration works. Instead, you're denied.

Adding this to the config fixed it:

policy:
  data:
    # ... fields from above go here ...
    emails:
      allowed_addresses:
        substrings: [""]
    registration:
      allowed_usernames:
        substrings: [""]

Screenshots

Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: 133

Additional context

I'm running the Docker container at #4115

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions