Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deactivate guest users after a configured expiration time #14

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

dhenneke
Copy link
Contributor

This PR adds the "User Reaper" functionality to the module. This will deactivate all users with the configured guest prefix after a timeout of (by default) 24 hours. The module will run a check every minute and the expiration will be calculated for each user individually.

The module registers a custom admin user in Synapse to do this (called @guest-reaper) and then calls the Admin API to deactivate the user(s).

✔️ Checklist

  • A changeset describing the change and affected packages (more info).
  • Added or updated documentation.
  • Tests for new functionality and regression tests for bug fixes.
  • Screenshots or videos attached (for UI changes).
  • All your commits have a Signed-off-by line in the message (more info).

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
@dhenneke dhenneke marked this pull request as ready for review September 15, 2023 10:21
@dhenneke dhenneke requested a review from a team as a code owner September 15, 2023 10:21
@dhenneke dhenneke merged commit 4bc60c1 into main Sep 15, 2023
5 checks passed
@dhenneke dhenneke deleted the nic/feat/add-guest-reaper branch September 15, 2023 12:00
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.

2 participants