What are CacheRefreshInterval and VaultAccessInterval and how should they be configured?

What are CacheRefreshInterval and VaultAccessInterval and how should they be configured?

103
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 13:03 PM


Question


What are CacheRefreshInterval and VaultAccessInterval, what is the difference between them and how should they be configured?


Environment


9.10;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Credential Provider;Central Credential Provider

Answer


The application password provider refreshes the cache every "CacheRefreshInterval". This means that if "CacheRefreshInterva=180" then every 3 minutes (180 seconds), the application password provider connects to the Vault and checks if any of the passwords in the cache were changed. If an application is requesting a password, then the provider checks how long ago was the password verified with the Vault.

Verification is when the provider accessed the Vault and verified/updated the password in the cache. If the last verification was less than the "VaultAccessInterval" then the provider will NOT connect to the Vault and simply provide the password stored in the cache.
If the last verification occurred more than what's defined in the "VaultAccessInterval", then the provider will attempt to connect to the Vault to retrieve the password. If it fails to retrieve the password, the provider will provide the password in the cache (although it is "old").

Note:
It is recommended that "VaultAccessInterval" will be larger than "CacheRefreshInterval" so the provider will not connect to the Vault upon request for a password that is stored in the cache. Recommended values for these parameters are:
  • CacheRefreshInterval=1500
  • VaultAccessInterval=31536000
  • windows providers: C:\Program Files\CyberArk\ApplicationPasswordProvider\Env\main_appprovider.conf
  • linux providers: /var/opt/CARKaim/


Additional Information


Details

Q:
What are CacheRefreshInterval and VaultAccessInterval, what is the difference between them and how should they be configured?

A:
The application password provider refreshes the cach every "CacheRefreshInterval". This means that if "CacheRefreshInterva=180" then every 3 minutes (180 seconds), the application password provider connects to the Vault and checks if any of the passwords in the cache were changed.
If an application is requesting a password, then the provider checks how long ago was the password verified with the Vault. Verification is when the provider accessed the Vault and verified / updated the password in the cache. If the last verification was less than the "VaultAccessInterval" then the provider will NOT connect to the Vault and simply provide the password stored in the cache. If the last verification occurred more than what's defined in the "VaultAccessInterval", then the provider will attempt to connect to the Vault to retrieve the password. If it fails to retrieve the password, the provider will provide the password in the cache (although it is "old").
It is recommended that "VaultAccessInterval" will be larger than "CacheRefreshInterval" so the provider will not connect to the Vault upon request for a password that is stored in the cache.
Recommended values values for these parameters are:

CacheRefreshInterval=1500

VaultAccessInterval=31536000

 

windows providers: C:\Program Files\CyberArk\ApplicationPasswordProvider\Env\main_appprovider.conf 

 

linux providers: /var/opt/CARKaim/

 


 


Actions
  • Print
  • Copy Link

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