cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit a82af3471cb18374cd3c9c586a2fc763c9c8f22c
parent 0d8564abded58be60fd00ba139535500f59f084f
Author: MTRNord <MTRNord@users.noreply.github.com>
Date:   Sun, 29 Mar 2026 21:46:31 +0200

fixes

Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>

Diffstat:
Mapps/talos_cluster/matrix-backup/backup-script-configmap.yaml | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/apps/talos_cluster/matrix-backup/backup-script-configmap.yaml b/apps/talos_cluster/matrix-backup/backup-script-configmap.yaml @@ -392,8 +392,10 @@ data: rooms = json.loads(r.read()).get("rooms", {}) print(f" Fetched key backup: {len(rooms)} rooms") - # Decrypt with olm PK - private_key_bytes = base64.b64decode(backup_private_key_b64) + # Decrypt with olm PK. + # Matrix stores the key as unpadded base64; add padding before decoding. + padded = backup_private_key_b64 + "=" * (-len(backup_private_key_b64) % 4) + private_key_bytes = base64.b64decode(padded) try: pk_dec = PkDecryption.from_private_key(private_key_bytes) except AttributeError: