containrrr / shoutrrr

Notification library for gophers and their furry friends.
https://containrrr.dev/shoutrrr/
MIT License
964 stars 60 forks source link

Matrix homeserver filling up with sessions #438

Open Orange-Murker opened 6 months ago

Orange-Murker commented 6 months ago

Right now creating a new Matrix sender will generate a new access token which also adds a new device to the user's account on the homeserver.

The issue is that given enough time, the homeserver will fill up with these unnecessary sessions and they are difficult to clean up because matrix clients get really slow when there are so many sessions to display and the only way would be to logout all sessions which is inconvenient.

Some potential solutions could be:

vincejv commented 3 months ago

Add a way to log in using an access token instead of the login

image

This is already possible? https://containrrr.dev/shoutrrr/v0.8/services/matrix/

green-sh commented 1 month ago

had it running for a few months and didn't notice, 60.000 sessions were created. If anybody else has the problem that you can't delete them anymore because your matrix client gets overwhelmed. You can clear out all sessions using the matrix API. I used the python-matrix-io wrapper and its client.devices() and client.delete_devices() to clear them out.