Files
ubicloud/rhizome/host
Hadi Moshayedi 4c6f74738b Make StorageKeyEncryption.read_encrypted_dek backward compatible.
Previously, wrapped DEKs written to `data_encryption_key.json` were
encoded using `Base64.encode64`, which inserted a newline every 60
characters and always appended a trailing newline. Later, this was
changed to `Base64.strict_encode64`, which produces a single
uninterrupted string.

While `Base64.decode64` can handle both formats,
`Base64.strict_decode64` fails if newlines are present.

Since `StorageKeyEncryption.read_encrypted_dek` is called when starting
old VMs after a server reboot, it must remain backward compatible.

This change updates `StorageKeyEncryption.read_encrypted_dek` to use
`Base64.decode64`.
2025-08-21 16:02:20 -07:00
..
2025-06-25 10:59:23 +02:00
2025-02-21 14:20:13 -08:00
2025-04-29 16:45:24 -07:00