- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-01-2019 08:30 AM
We have a shell script fetching credentials from vault via AIM CP. The script is scheduled to run every 15 minutes. What we are observing is, that the AppProviderUser(Prov_HostName) fetches password from the vault and not from cache whenever the script is run i.e. every 15 minutes. Password in the vault is not changed and it's the same. CacheRefreshInterval in main_appprovider.conf.X has been set to 180 minutes. CacheLevel is set to Persistent. Any thoughts? Thank you.
04-02-2019 03:28 AM
How sure are you that password is fetched from vault and not from cache? I mean how are you verifying if the password was fetched from cache or vault.
And cache refresh interval is in seconds and if you need to refresh every 15 mins then the value has to be set to 900.
04-02-2019 08:23 AM
I can see in "activities" tab from PVWA that AppProviderUser (Prov_HostName) is retrieving the password whenever the script is run. CacheRefreshInterval is set in seconds and much higher as we know the password change frequency. I believe by default "CredentialProvider" is not configured/set to read the credentials from Cache; cache will come into play only if your vault connectivity is broken from CP machine. Not sure how to make this work.
04-02-2019 08:41 AM
By default the cache type is set to persistent. I have not tried but you could give a try
Change the ip of the vault in the vault.ini file basically disconnecting the connection to the vault (do not refresh cache manually - wait for the automated refresh to happen)and see how it works now
04-02-2019 08:45 AM
OK, the issue here is not to reading from cache when the vault is not reachable. My question is can we make CredentialProvider to read from cache even when the vault is up. I do not want CP to fetch credentials every time from the vault whenever the script is run. Cache type is set to persistent.
04-03-2019 01:13 PM
AIM requests are always done on the cache.
The provider goes to the vault every set amount to make sure the password is correct and fetch the new password if not.
04-04-2019 07:53 PM
In that case "provider" is definitely not working as expected. For every credential request it hits the main vault and not at specific interval as mentioned in CacheRefreshInterval. Have opened a case with CyberArk. Thank you.
10-29-2019 02:45 AM
@Vishwanath Babali Did you find a solution to this ? We seem to be facing the same issue currently
05-04-2021 07:27 AM
Hi, Do you have solution? Does Any one find
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

