mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-06 06:41:57 +08:00
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`. |
||
---|---|---|
.. | ||
boot_image_spec.rb | ||
cert_server_setup_spec.rb | ||
cloud_hypervisor_spec.rb | ||
slice_setup_spec.rb | ||
spdk_rpc_spec.rb | ||
spdk_setup_spec.rb | ||
storage_key_encryption_spec.rb | ||
storage_key_tool_spec.rb | ||
storage_volume_spec.rb | ||
vm_path_spec.rb | ||
vm_setup_spec.rb |