Create a Cloud Storage workload

This guide shows you how to set up encryption keys in the Assured Workloads environment using Google Cloud Console and then use the keys to secure a Cloud Storage Bucket. For more information about Assured Workloads, see Assured Workloads overview.

Before you begin

  1. You must be a project owner, an org admin, or have security access to the project. For first-time users, see Get started with Assured Workloads.

  2. Choose a compliance regime and encryption strategy.

  3. Create a folder for your Assured Workloads environment.

  4. Create a project in the Assured Workloads environment that supports your compliance regime, as follows:

  5. Select the project ID for the project that contains your Assured Workloads CMEK keys. If you chose IL4 (Preview) or CJIS as a compliance regime, then, by default, this project starts with cmek-.

Create the key

To create the CMEK key, do the following:

  1. In Google Cloud Console, go to Cryptographic Keys:

    Go to Cryptographic Keys

  2. Select the Assured Workloads CMEK project. By default, this project ID starts with cmek-.

  3. Click your key ring.

  4. Click Create Key.

  5. In the What type of key do you want to create? drop-down list, select Generated key.

  6. In Key name enter the key name.

  7. In the Protection level drop-down list, select Software.

  8. In the Purpose drop-down list, select Symmetric encryption/decryption.

  9. In the Rotation period drop-down list, select 90 days.

  10. Optional: To add a label, do the following:

    1. Click Add a label.
    2. Enter a key in the Key text field.
    3. Enter a value in the Value text field.
  11. Click Create.

You see that the key was created.

Obtain your CMEK key resource ID

  1. In Google Cloud Console, in the Project Selector, select the project ID for the project that contains your CMEK keys. By default, if Assured Workloads creates this project, it prepends the project ID cmek-.
  2. In Security, go to Cryptographic Keys:

    Go to Cryptographic Keys

  3. Under Key rings, click the key ring name.

  4. In Key ring details, in the Keys tab, click the name of the key.

  5. Click the More icon to the right of the key name.

  6. Click Copy Resource Name.

    The resource string is formatted as follows:

     projects/SECURITY_PROJECT_ID/locations/LOCATION/keyRings/KEY_RING_NAME/cryptoKeys/KEY_NAME
    

Use CMEK resource ID to encrypt Cloud Storage

  1. Go to Cloud Storage.

    Go to Cloud Storage

  2. In the Project Selector, select the Assured Workloads resource project in which you want to create the Cloud Storage resource.

  3. In Browser, click Create Bucket.

  4. In Name your bucket, enter the name of your bucket.

  5. In Choose where to store your data, select your region.

  6. In Choose default storage class choose the option that best suits your needs.

  7. In Choose how to control access to objects Select the option that best suits your needs.

  8. In Advanced settings, if you opted to create a CMEK project when you set up Assured Workloads, do the following:

    1. Select Customer-managed encryption key (CMEK).
    2. In the Customer-managed encryption key drop-down list, select your CMEK Key.
    3. If you do not see your key, select Don't See Your Key? Enter Key Resource ID. The Enter key resource ID dialog appears.
    4. Follow the instructions in Obtain your CMEK key resource ID, earlier in this guide.
    5. Paste the key into the Key resource ID field.
    6. Click Grant.
    7. Click Create.
  9. If you didn't create a CMEK project when you set up Assured Workloads, select Google-managed encryption key.

  10. Click Create.

What's next