Maintenance

ZombieLoad

ZombieLoad

ZombieLoad Intel CPU Bug

Server maintenance announcement

The latest addition to critical CPU bugs, zombieload, has the ability to steal sensitive data, due to this a server maintenance is necessary.

The expected time period is estimated to 30.07.2019 8:00 - 10:00 CEST and will approximately last for up to 1 hour. All services will restart after the maintenance is finished.

If there are questions and/or suggestions please email me with the subject zombieload: $details or join the Lobby ( XMPP: Join Lobby )

Foreshadow

Foreshadow

Foreshadow CPU Bug

Server Maintenance Schedule Notice

Due to the Foreshadow bug and the resulting updates to the kernel a reboot is necessary. My host system is scheduled to reboot in the following time period:

11.09.2018 12:00 - 14:00 CEST

The downtime of the server is estimated to last approximately for 30 minutes. All services will automatically restart after the reboot. If services are not working right away I will try to fix them as quick as possible.
I hope that this early warning will help to mitigate issues with the approaching downtime.

General Data Protection Regulation

General Data Protection Regulation

General Data Protection Regulation

General Data Protection Regulation ( GDPR )

The day has finally come. The new General Data Protection Regulation (GDPR) has become reality. With this new law every user has the right to know what data a service is storing. This post tries to clear up the situation what that means and what actually changed.

privacy policy

The new privacy policy describes which user data gets processed and/or stored on my servers. In addition to that the storage duration is listed in detail.

Let's Encrypt Prosody Cert Hook

Let's Encrypt Prosody Cert Hook

Let's Encrypt Prosody Cert Hook

Prosody + Let’s Encrypt certificates

As of right now Prosody is not able to update a live certificate while running. For the complete update it is necessary to restart Prosody, which is inconvenient.
With the telnet console however, it is possible to reload the config such that a changed certificate is updated correctly. The biggest problem lies in reloading all possible locations the “old” certificate is still active in. I use the Prosody Telnet console to invoke a reload, due to the fact that prosodyctl reload is not actually reloading the modules just the config.
For this matter I hacked together a little bash script, which together with the Let’sEncrypt’s certbot and the default letsencrypt cli is used to import and update the Prosody certificate without a need to restart the instance.

Prosody Datenbank Indizes

Prosody Datenbank Indizes

Prosody Database Indizes

Prosody bietet die Möglichkeit persistente Userdaten bzw. seit 0.10 auch MAM Archive in einer MySQL Datenbank zu sichern. Prosody erstellt beim ersten Laden des Moduls alle relevanten Datenbanken sowie Indizes. Allerdings werden Indizes, die nachträglich, z.B. in aktuelleren Patches , hinzugefügt werden, nur in Datenbanken eingetragen, die neu erstellt werden. Damit fehlen in den allermeisten älteren Datenbanken die aktuellen Indizes.

Notwendigkeit von Indizes

Indizes können Datenbankabfragen enorm beschleunigen, da sie es bei einer Abfrage ermöglichen eine deutlich kleinere Anzahl an Zeilen zu vergleichen. Dadurch wird ein schnelleres, effizienteres und vor allem performanteres Ergebnis erzielt. Die MySQL Dokumentation beschreibt es wie folgt:

Prosody Housekeeping

Prosody Housekeeping

Prosody Housekeeping Skript

Grundidee

Ich habe mich in den letzten paar Tagen damit beschäftigt Dinge rund um den Prosody Server zu automatisieren. Daher möchte ich hier einfach mal meine Lösung einiger kleiner Probleme vorstellen.

Problem

Das grundsätzliche Problem, welches so ziemlich alle Server mit offener Registrierung teilen, sind Zombie Accounts. Sprich Accounts die erstellt wurden, allerdings nie verwendet werden. Oder Accounts die erstellt wurden und irgendwann von ihrem Nutzer/in nicht mehr verwendet werden. Solche Accounts verursachen eine vermeidbare Last für das System.
Die zweite größere Quelle liegt in einem Problem Prosodys Dateien oder Datenbank Einträge korrekt bzw. überhaupt zu löschen. Namentlich sind hier mod_http_upload und mod_mam zu nennen. Vor allem bei dem Modul mam bestehen Probleme, da die Einträge eines jeden Users einzeln bearbeitet werden. Daher steigt die Bearbeitungszeit bei größeren Nutzerzahlen enorm an.