Облачная платформаAdvanced

Creating an Encrypted EVS Disk

Эта статья полезна?
Язык статьи: Английский
Перевести

EVS enables you to encrypt data on newly created disks as required.

Disk Encryption Scenarios

  • System disk encryption

    System disks are created along with servers and cannot be created separately. So, whether a system disk is encrypted or not depends on the image you select when creating the server.

    Table 1 Relationship between images and system disk encryption

    Whether to Create Server from an Encrypted Image

    Whether System Disk Will Be Encrypted

    Description

    Yes

    Yes

    For details, see "Managing Private Images" > "Encrypting Images" in the Image Management Service User Guide.

    No

    No

    -

  • Data disk encryption

    Data disks can be created along with servers or separately. Whether data disks are encrypted or not depends on their data sources. See the following table for details.

    Table 2 Relationship between backups, snapshots, images, and data disk encryption

    Creation Scenario

    Whether Data Source Is Encrypted

    Whether Data Disk Will Be Encrypted

    Description

    No data source selected

    Empty disk

    Encrypted/Not encrypted

    When you create a disk on the EVS console or together with an ECS, you can choose whether to encrypt the disk or not. Once the disk is created, its encryption attribute cannot be changed.

    Creating from a backup

    Any

    Encrypted/Not encrypted

    • When you create a disk from a backup, you can choose whether to encrypt the disk or not. The disk's encryption attribute does not need to be the same as the backup.
    • When you create a backup for a system or data disk, the backup inherits the disk's encryption attribute.

    Creating from an image

    Encrypted

    Encrypted

    The disk inherits the source disk's encryption attribute.

    Not encrypted

    Not encrypted

    Creating from a legacy snapshot

    Not encrypted

    Not encrypted

    The disk inherits the source disk's encryption attribute.

    Encrypted

    Encrypted

Constraints

Table 3 Constraints on disk encryption

Item

Description

Disk types supporting encryption

All disk types support encryption, but the encryption attribute of an existing disk cannot be changed.

Disk encryption

  • The encryption attribute of a disk cannot be changed after the disk is created, meaning that:
    • An encrypted disk cannot be changed to a non-encrypted disk.
    • A non-encrypted disk cannot be changed to an encrypted disk.

User permissions

When a user uses encryption, the condition varies depending on whether the user is the first one ever in the current region or project to use this function.

  • If the user is the first user, the user needs to follow the prompt to create an agency, which grants EVS Administrator permissions to EVS. Then, the user can create and obtain keys to encrypt and decrypt disks.
  • If the user is not the first user, the user can use encryption directly.

Image encryption

  • Encrypted images cannot be changed to non-encrypted images.
  • Encrypted images cannot be exported.

Creating an Encrypted EVS Disk

Before you use the encryption function, KMS access permissions need to be granted to EVS. If you have the Security Administrator permissions, grant the KMS access rights to EVS directly. If you do not have this permission, contact a user with the Security Administrator permissions to grant KMS access rights to EVS and then select the encryption option to create an encrypted disk.

For details about how to create an encrypted disk, see Creating an EVS Disk.

You can use encrypted system disks immediately after they are created. You need to attach and initialize encrypted data disks after they are created.

Detaching an Encrypted EVS Disk

Before you detach a disk encrypted by a CMK, check whether the CMK is disabled or scheduled for deletion.

  • If the CMK is available, the disk can be detached and re-attached, and data on the disk will not be lost.
  • If the CMK is unavailable, the disk can still be used, but there is no guarantee for how long it will be usable. If the disk is detached, it will be impossible to re-attach it later. In this case, do not detach the disk without a working CMK.

The restoration method varies depending on the CMK status. For details, see Keys Used for EVS Encryption.

For details about how to detach an encrypted disk, see Detaching an EVS Disk.