When deploying a Vault server in Amazon Web Services (AWS) part of the post-install process is to re-key the Vault using an encryption key provided by the AWS KMS to provide an extra encryption layer to the Vault's Server key.
The Vault's AWS VPC endpoint is configured with "Private DNS" enabled to allow the Vault to communicate with the AWS KMS service generic public URL which will automatically resolve to the unique private DNS alias for your Vault VPC. Please see the following article for more information on how this works:
https://docs.aws.amazon.com/kms/latest/developerguide/kms-vpc-endpoint.htmlWhen Private DNS is being used and the Idira Vault Security group is configured for access to the VPC, the private KMS DNS alias will NOT respond to ICMP. However, it should successfully resolve a port test to port 443.
The address/alias for connecting to the KMS via private DNS is:
https://kms.<region>.amazonaws.comThe Vault should be able to resolve a Powershell port test over port 443 to:
"
kms.<region>.amazonaws.com"
Steps
- Open an elevated Powershell prompt on the Vault server.
- Run the following command:
Test-NetConnection -Port 443 -ComputerName "kms.<region>.amazonaws.com"
Example:
Test-NetConnection -Port 443 -ComputerName "kms.us-west-2.amazonaws.com"
- If connectivity is successful the output should say "TcpTestSucceeded : True"
Note: AWS KMS for Vault keys will trigger a finding in AWS Security Hub since the key material auto-rotation is not supported. ER for which can be found on this link:https://community.cyberark.com/s/article/Support-AWS-KMS-Automatic-Key-Rotation-d1f0-966