When does the Vault access the keys on an HSM?

When does the Vault access the keys on an HSM?

79
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:11 PM


Question


When does the Vault access the keys on an HSM?

Environment


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;12.1

Answer


In general, any transaction that involves a decryption/encryption involves HSM communication. The server key is being stored on the HSM and never leaves it. This means that when you need to encrypt/decrypt data, you will send it to the HSM and the data will be encrypted/decrypted there. Due to this the frequency of communication is quite high.

Here is a non-exhaustive list of transactions which use will trigger a communication between the HSM and the Vault:

1. PrivateArk (SRP) authentication to decrypt SRP verifier 
2. User set password transaction, in order to encrypt SRP verifier (user changes his own password) 
3. New user is added (AddUser) with the "secret answer" option - the answers are encrypted with the server key 
• if a user is added with the SRP authentication type, his SRP verifier is encrypted with the server key so the HSM will need to be accessed 
4. On installation - when generating the Backup key (Backup.key) - it is encrypted with the server key 
5. When loading the backup key (for example when DR is applying a replication dump, it is required to decrypt it) - the backup key is encrypted with the server key 
6. When the Vault starts, in order to decrypt VaultUser.pass (it is encrypted with the server key) 
7. By the DR, to decrypt the ReplcationUser.pass replication user password 
8. On installation / CACert actions that change Vault certificate - Server.pvk (the private key part of the certificate) is encrypted with the server key 
9. When a new file is created/uploaded - the server key is used to decrypt the safe key, because the safe key is required to encrypt the file key 
10. When a file is retrieved - the server key is used to decrypt the safe key, which in turn is used to decrypt the file key (file key is sent encrypted to client via session key). 
11. When a new safe is created - the server key is used to encrypt the safe key 
12. When the "unlock" transaction runs (user unlocks himself) , if that user has the PrivateArk (SRP) authentication type, the SRP verifier is decrypted during the Unlock transaction.
13.get ticket in distributed PSM
14.partial impersonate with ticket in distributed PSM
15. When CAVaultManager CollectLogs command is run

 

Due to the frequent communication between the two, the Vault and HSM must be as close as possible to avoid any possible performance issues caused by latency due to the location of the HSM.



Actions
  • Print
  • Copy Link

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