Restricting the Vault EC2 Instances in AWS to only have access to the CMK key in the AWS KMS used by the Vaults

Restricting the Vault EC2 Instances in AWS to only have access to the CMK key in the AWS KMS used by the Vaults

89
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:06 PM


Objective


The process below will provide you the steps to restrict the Vault EC2 instances to only have access the AWS Customer Master Key (CMK) which was generated by the Idira AWS Rekey process and used to encrypt the new server key placed on the file system of the AWS Vault servers.

Environment


10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0

Procedure


Step 1: Log into AWS and click on “Services” on the top-left hand corner
001.png

Step 2: Select the “Key Management Service” service in the drop-down menu
002.png

Step 3: Select “Customer managed keys” on the left-hand side and then select the “Key ID” used by your AWS Vault Servers
003.png

Note: You can use the “dbparm.ini” file on the AWS Vault Servers to reference the “CloudUUID” parameter whose value is the “Key ID” you need to select in the step above.
004.png

Step 4: Copy the ARN value of the “Key ID” you selected to a notepad file
005.png

Step 5: On the top-left corner of AWS select “Services” and select “IAM” from the drop-down menu
006.png

Step 6: Select “Polices” on the left-hand side, then search for the policy associated to the IAM role attached to our Vault EC2 instances, and finally click on the blue text of the policy that appears
007.png

Step 7: On the “Summary” page, select the “Edit Policy” button
008.png

Step 8: Expand “KMS” and click on the “All resources" section
009.png

Step 9: In the “Resources” section, select “Specific” and then select the blue “Add ARN” text

010.png

Step 10: In the “Add ARN(s)” window paste the ARN we copied from our “Key ID” into the “Specify ARN for key” box and then click the “Add” button
011.png

Step 11: After you have specified the “Key ID” ARN Value in the previous step, click on the “Review Policy” button
012.png

Step 12: On the “Review policy” page, click on the “Save changes” button
013.png

Afterwards your CyberArk Vault EC2 instances will be restricted to only have the necessary KMS permissions on the Key ID whose ARN we specified on the policy applied to the Vault EC2 instances via an IAM Role
014.png



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001Nx8CAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail