AWS kms medium security documentation change
Summary
Updated VPC endpoint service connectivity documentation to clarify cross-account support, reorganize latency guidance, and add detailed permission requirements for same/cross-account scenarios.
Security assessment
The changes explicitly detail security-critical permission requirements for cross-account configurations, including required ARN formats for AWS KMS and external key store principals. This addresses potential misconfiguration risks in multi-account scenarios that could lead to unauthorized access. The addition of cross-account AWS KMS principal requirements (e.g., 'arn:aws:iam::111122223333:role/role_name') provides concrete security guidance.
Diff
diff --git a/kms/latest/developerguide/vpc-connectivity.md b/kms/latest/developerguide/vpc-connectivity.md index e4dd567fe..0e8aa4cb2 100644 --- a//kms/latest/developerguide/vpc-connectivity.md +++ b//kms/latest/developerguide/vpc-connectivity.md @@ -42,2 +41,0 @@ If you choose VPC endpoint service connectivity for your external key store, the -To minimize network latency, create your AWS components in the [supported AWS Region](./keystore-external.html#xks-regions) that is closest to your [external key manager](./keystore-external.html#concept-ekm). If possible, choose a Region with a network round-trip time (RTT) of 35 milliseconds or less. - @@ -61,0 +60,2 @@ The subject common name (CN) on the TLS certificate must match the private DNS n + * To minimize network latency, create your AWS components in the [supported AWS Region](./keystore-external.html#xks-regions) that is closest to your [external key manager](./keystore-external.html#concept-ekm). If possible, choose a Region with a network round-trip time (RTT) of 35 milliseconds or less. + @@ -73 +73 @@ VPC endpoint service connectivity requires an Amazon VPC that is connected to yo -To work with external key stores using VPC endpoint service connectivity, the Amazon VPC must have the following properties: +The Amazon VPC endpoint service must have the following properties to work with external key stores. @@ -75 +75 @@ To work with external key stores using VPC endpoint service connectivity, the Am - * Must be in the same AWS account and [supported Region](./keystore-external.html#xks-regions) as your external key store. + * Must be in a [supported Region](./keystore-external.html#xks-regions) as your external key store. @@ -147 +147 @@ Default action: Forward to | Choose the target group for your network load balan -Typically, you create an endpoint to a service. However, when you create a VPC endpoint service, you are the provider, and AWS KMS creates an endpoint to your service. For an external key store, create a VPC endpoint service with the network load balancer that you created in the previous step. The VPC endpoint service must must be in the same AWS account and [supported Region](./keystore-external.html#xks-regions) as your external key store. +Typically, you create an endpoint to a service. However, when you create a VPC endpoint service, you are the provider, and AWS KMS creates an endpoint to your service. For an external key store, create a VPC endpoint service with the network load balancer that you created in the previous step. The VPC endpoint service can be in the same AWS account as your external key store or a different AWS account. @@ -187 +187,17 @@ You are not required to create an A record for the private DNS domain name. When -You must add AWS KMS to the **Allow principals** list for your VPC endpoint service. This allows AWS KMS to create interface endpoints to your VPC endpoint service. If AWS KMS is not an allowed principal, attempts to create an external key store will fail with an `XksProxyVpcEndpointServiceNotFoundException` exception. +See the following procedures for managing your Amazon VPC endpoint service permissions. Each step depends on your connectivity and configuration between your external key store, VPC endpoint service, and AWS account. + +Same AWS account + + +When your VPC endpoint service is owned by the same AWS account as your external key store, you must add AWS KMS to the **Allow principals** list for your VPC endpoint service. This allows AWS KMS to create interface endpoints to your VPC endpoint service. If AWS KMS is not an allowed principal, attempts to create an external key store will fail with an `XksProxyVpcEndpointServiceNotFoundException` exception. + +Follow the instructions in the [Manage permissions](https://docs.aws.amazon.com/vpc/latest/privatelink/configure-endpoint-service.html#add-remove-permissions) topic in the _AWS PrivateLink Guide_. Use the following required value. + +Field | Value +---|--- +AWS KMS ARN | `cks.kms.`<region>`.amazonaws.com`For example, `cks.kms.us-east-1.amazonaws.com` + +Cross AWS account + + +When your VPC endpoint service is owned by another AWS account you must add both AWS KMS and your external key store to the **Allow principals** list. This allows AWS KMS and your external key store to create interface endpoints to your VPC endpoint service. If AWS KMS is not an allowed principal, attempts to create an external key store will fail with an `XksProxyVpcEndpointServiceNotFoundException` exception. You'll need to provide the AWS account ARN where the xks resides. @@ -193 +209,2 @@ Field | Value -ARN | `cks.kms.`<region>`.amazonaws.com`For example, `cks.kms.us-east-1.amazonaws.com` +AWS KMS ARN | `cks.kms.`<region>`.amazonaws.com`For example, `cks.kms.us-east-1.amazonaws.com` +AWS account ARN | `arn:aws:iam::`111122223333`:role/`role_name``For example, `arn:aws:iam::`123456789012`:role/`cks_role``