-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Purge old cleartext on my homeserver #2964
Comments
You can redact messages via API, though the db will still contain them. What you probably want is the purge api, which is in master, but not in 0.26. I don't have a release date for 0.27, other than that I confirm the purge api will be part of that release. Note, if the server federates, then the room data will live equally across all servers that join the room. |
FWIW 0.27.0 release candidate should be out later today |
Here is my little private maintains script with postgresql on localhost as an example:
|
@ukcb And why postgresql? Default config of matrix uses sqlite3. So how would that work? |
Postgresql gives me more options. https://github.com/matrix-org/synapse#using-postgresql Sorry, I don't use sqlite3 here. |
@ukcb But how do admins then properly purge old data... it cant be, that they are stored for ever and the server runs low on disk space? |
I hope that it will eventually work completely. Nothing is forever. :-) |
@ukcb but that doesnt make any sense. Why arent you making a proper script then, which deletes all database entries after timestamp x, doesnt that work? Didnt someone do that already, I looked for a script but couldnt find any, but yours, which just uses the nonsense API. |
@makedir The script is not that important, it should only control the API and not do any direct access to the database. I hope that at some point there will be settings in Matrix that make such scripts superfluous. At the moment, the script does a good job for me, even if it does not delete everything. |
We plan to add more administrative functionality to synapse later this year - the idea being that admins can have greater control over data storage etc. For now purge api is your best bet. If you are using using your hs for anything other than very light loads, strongly suggest migrating to postgres. |
@neilisfragile there should be some easy way an admin can access things like that, for example via riot client, if youre an admin, just go into channel settings and click "purge older than 30 days data and media" or auto purge these after 90 days in this channel or something like that. |
@neilisfragile As server admin I would like to have a central purging option for all rooms. I am concerned with avoiding data in the sense of the GDPR |
@makedir - we'd probably want to make it an admin for the server itself rather the tie into any given client. @ukcb - Nods, this is a popular feature request, though we talked in #1941 on why I don't believe it a prerequisite for GDPR. As I say, we'll definitely be working towards improved server admin tooling. If you can't wait that long, PRs always welcome! |
so is this not solved by scripting the purge api? |
In the Script in my pull request #1034 the data is really deleted (unless it it is re federated from another Homeserver) |
User story: I am a system administrator setting up a homeserver for strangers. I want to delete any cleartext messages older than 30 days, so I have limited access to user content.
Is this possible with Synapse? Dendrite?
Related: #2963
The text was updated successfully, but these errors were encountered: