Failed to Register the Primary Vault in AWS - ITATP059E Error getting random bytes from cloud vendor

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). 


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
  • 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)
  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
         
  2. Rerun the CAVaultManager PostInstall command to configure the Vault as described in the Register the Primary Vault in AWS using CyberArk AMIs
     
RESOLUTION (2)
  1. 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
Example:
AWS CLI Command


Actions
  • Print
  • Copy Link

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