Skip to content

✨ Restrict settable room access levels#1444

Open
diaxoaine wants to merge 2 commits into
suitenumerique:mainfrom
diaxoaine:feat/restrict-access-levels
Open

✨ Restrict settable room access levels#1444
diaxoaine wants to merge 2 commits into
suitenumerique:mainfrom
diaxoaine:feat/restrict-access-levels

Conversation

@diaxoaine

Copy link
Copy Markdown

Purpose

Instance operators can set the default room access level, but room owners and admins can still create or update a room with any access level, including public, so operators can't enforce an instance-wide policy such as forbidding fully public rooms.

Proposal

Add a RESOURCE_ALLOWED_ACCESS_LEVELS allow-list, defaulting to all current levels, enforced through the room API on create and update. The allow-list is exposed via the config endpoint, and the room access settings hide the options that aren't allowed.

Closes #1076

Add RESOURCE_ALLOWED_ACCESS_LEVELS so instance operators can limit which
room access levels users may set, including room owners and admins.

Enforce the allow-list through the room serializer on create and update,
and fail fast when RESOURCE_DEFAULT_ACCESS_LEVEL is outside the allowed
set to avoid invalid default-room creation.
Only show the access levels the instance allows in the room access picker,
instead of always listing all of them.
@sonarqubecloud

Copy link
Copy Markdown

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.

Ability to restrict access levels

1 participant