Failed to Register the Primary Vault in AWS - ITATP059E Error getting random bytes from cloud vendor
112
Created On 11/10/26 10:53 AM - Last Modified 11/10/26 15:50 PM
Symptom
Running the CAVaultManager PostInstall command to configure the Vault as described in the Register the Primary Vault in AWS using Idira AMIs failed with the following error in the CAVaultManager.log file:
ITATP147E Postinstall failed with errors. Reason: ITATP059E Error getting random bytes from cloud vendor. (Cloud vendor: AWS API Error message: Missing Authentication Token).
ITATP059E Error getting random bytes from cloud vendor. (Cloud vendor: AWS API Error message: Missing Authentication Token).
ITATP061E Error decrypting server key using cloud vendor wrapper. (Cloud vendor: AWS API Error message: Missing Authentication Token).
ITATP059E Error getting random bytes from cloud vendor. (Cloud vendor: AWS API Error message: Missing Authentication Token).
ITATP061E Error decrypting server key using cloud vendor wrapper. (Cloud vendor: AWS API Error message: Missing Authentication Token).
Environment
11.5;12.2;12.6 Privileged Access Manager (PAM, self-hosted) Vault Server
-
Privileged Access Manager - Self-Hosted in a cloud environment - before version 13.0
-
Vault in AWS using Idira AMIs - before version 13.0
Cause
CAUSE (1)
The EC2 Vault instance doesn't have access to create the AWS Key Management Service (KMS) key required to complete the Vault Registration.
CAUSE (2)
Instance Metadata Service version 2 (IMDSv2) is enabled on the EC2 Vault instance. Where the Vault version is below 13.0
The EC2 Vault instance doesn't have access to create the AWS Key Management Service (KMS) key required to complete the Vault Registration.
CAUSE (2)
Instance Metadata Service version 2 (IMDSv2) is enabled on the EC2 Vault instance. Where the Vault version is below 13.0
-
Note: Amazon has confirmed that the current AWS SDK version, which the Vault Registration utilizes, doesn't support the IMDSv2 and that there is no workaround for that matter; this is due to the minimum requirements for the SDK.
Resolution
RESOLUTION (1)
-
Ensure that the Vault registration prerequisites in AWS is completed for the EC2 Vault instance.
-
The EC2 Vault instance needs an IAM Role with the following policy permissions:
-
kms:CreateKey
-
kms:GenerateRandom
-
kms:Encrypt
-
kms:Decrypt
-
-
-
Rerun the CAVaultManager PostInstall command to configure the Vault as described in the Register the Primary Vault in AWS using CyberArk AMIs
RESOLUTION (2)
-
Restore the use of IMDSv1 on the EC2 Vault instance
-
AWS CLI
-
aws ec2 modify-instance-metadata-options \
--instance-id <Vault Instance ID> \
--http-tokens optional \
--http-endpoint enabled
--instance-id <Vault Instance ID> \
--http-tokens optional \
--http-endpoint enabled
Example:

Alternatively upgrade the environment to a version higher than 13.0 as this was delivered in that version:
https://docs.cyberark.com/pam-self-hosted/latest/en/content/release%20notes/rn-whatsnew13-0.htm#Enhancementrequests:~:text=Vault%20Server%20support%20IMDS%20v2%20in%20AWS
https://docs.cyberark.com/pam-self-hosted/latest/en/content/release%20notes/rn-whatsnew13-0.htm#Enhancementrequests:~:text=Vault%20Server%20support%20IMDS%20v2%20in%20AWS