Credential Provider - Passwords cannot be retrieved from the cache when the Vault server is down
112
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:05 PM
Symptom
Credential Provider is unable to retrieve password objects from the cache when the Vault server is down, for example, due to maintenance issues.
For example:
1) The password retrieval is performed with the obsolete "AppDescs.CredfilePath" parameter:
# /opt/CARKaim/sdk/clipasswordsdk GetPassword -p AppDescs.CredFilePath=/opt/CARKaim/bin/AIMFTPaccounts.cred -p Query="Safe=FTPAccounts;Folder=Root;Address=192.168.1.1;UserName=jdoe" -o Password
2) The "CacheLevel" is correctly configured as "Persistent":
# /opt/CARKaim/bin/appprvmgr ShowParms Operation ended successfully General Parameters: [Main] MaxConcurrentRequests=40 LogRetentionOnSizeMB=25 LogRetentionOnTimeIntervalMinutes=0 OldLogsRetention=30 OldAuditLogsRetention=90 ShutdownTimeoutSec=180 DisableExceptionHandling=Yes AutomaticParmsRefreshInterval=3600 ProviderCacheFolder=/var/opt/CARKaim/cache BacklogSize=100 ProviderHostNames= MaxProviderLogonsToTheVaultPerMinute=250 MaxRetryIntervalAfterComErrorToTheVault=25 [Cache] CacheLevel=Persistent CacheFile="/var/opt/CARKaim/cache/appprovider_cache.dat" CacheRefreshInterval=180 VaultAccessInterval=31536000 [Debug] AppProviderDebugLevels=1,2,3,4,5 CacheDebugLevels=1,2 ProtocolDebugLevels=1,2 [TCP] TcpTimeout=30 Port=18923
3) The following error is shown:
"APPAP007E Connection to the Vault has failed (Error: a previous timeout has occurred, Diagnostic Info: 7)"
Environment
10.10;11.2;11.3;11.4;12.0;12.1;12.2;12.4;12.3 PAS (any version)
Credential Provider (any version)
Cause
When the debugging mode is enabled in the Credential Provider, the "APPTrace.log" log file shows the cache refresh task has removed the accounts from the cache due to the provisioner user doesn't have enough permissions to find the account in the safe:
"APPAP241I Check validity of passwords for query [Safe=FTPAccounts;Folder=Root;Address=192.168.1.1;UserName=jdoe;] APPCH016I Retrieving object from cache. Key-79. APPAP242I Refreshing connection [78\79\ObjectFTPAccounts-UnixAccount-192.168.1.1-jdoeSafeFTPAccountsQF=1]. 0 passwords found, existing passwords found: No APPCH017I Removing object from cache. Key-80. APPAP232I No password was found in the Vault for connection [78\79\ObjectFTPAccounts-UnixAccount-192.168.1.1-jdoeSafeFTPAccountsQF=1] Running PASVC [PASVCUserSafesList] (control socket [37]) data socket [40], IP [10.0.1.10] (Vault [AppProviderVault] user [Prov_CPuser]) Done PASVC [PASVCUserSafesList] Rc = 0 (Duration=16 ms). (Vault [AppProviderVault] user [Prov_CPuser]) [Background] Checking visibility in the Vault of passwords in cache for user Prov_CPuser Searching for redundant passwords Refreshing information for password 79 Removing password (Key=79,Identifier-safe=FTPAccounts,folder=Root,name=FTPAccounts-UnixAccount-192.168.1.1-jdoe) from cache - no connections were found APPCH017I Removing object from cache. Key-79."
Resolution
Make sure the provisioner user has the following permissions in the safe where the password objects are retrieved:
- Retrieve Accounts
- List Accounts
- View Safe Members
For more details, please refer to our official documentation.