ubicloud/rhizome/host/lib
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
..
boot_image.rb Clean up the temp file if image download fails 2024-06-11 13:47:45 +02:00
cert_server_setup.rb Fix race with cert server leaving vm stuck in prep 2025-05-12 09:01:21 +02:00
cloud_hypervisor.rb Make CloudHypervisor 46.0 the default in rhizome on Ubuntu 24.04 hosts 2025-07-22 00:49:42 +09:00
slice_setup.rb Restore Ruby 3.2 syntax to rhizome 2025-04-26 08:34:47 +09:00
spdk_path.rb Rhizome: Use bdev_ubi-0.3. 2025-02-26 14:19:39 -08:00
spdk_rpc.rb Enable setting IO rate limits in Rhizome's storage volume 2024-11-20 13:26:27 -08:00
spdk_setup.rb Make SpdkSetup.prep idempotent in Ubuntu 24.04. 2025-06-23 11:31:46 -07:00
storage_key_encryption.rb Make StorageKeyEncryption.read_encrypted_dek backward compatible. 2025-08-21 16:02:20 -07:00
storage_key_tool.rb Add rhizome multi-device storage abstractions 2024-01-24 09:19:33 -08:00
storage_path.rb Rhizome: support Ubiblk backed storage. 2025-06-13 13:31:22 -07:00
storage_volume.rb Fix persistent_device_id for NVMe disks 2025-07-16 10:26:54 -07:00
vhost_block_backend.rb Rhizome: Support Ubiblk v0.1‑7 2025-07-10 09:36:44 -07:00
vm_path.rb Restore Ruby 3.2 syntax to rhizome 2025-04-26 08:34:47 +09:00
vm_setup.rb Reduce size of the cloud-init NoCloud disk 2025-08-18 13:02:00 -07:00