PTA - PTA Risk Score is not shown in PVWA monitoring tab
Symptom
PTA and PSM integration is enabled, any PTA incident/event detected within the PSM session would be updated with a corresponding risk score allocation shown below.
PVWA -> Privileged Sessions Monitoring
Environment
11.5;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) PTA PTA Monitoring
Cause
The risk score of a PTA incident would be empty/missing when there was issue with PTA updating the PSM session risk score via PVWA API. The following HTTP 401 error would be observed in PTA diamond.log
------------------
ERROR | {aid=ptaservices} | {sid=} | {rid=} | {tid=DefaultMessageListenerContainer-1} | com.cyberark.diamond.rest.Rest.exchange(Rest.java:89) - GNL0161E :: Unexpected exception during rest service to 'https://PVWA_url:443/PasswordVault/api/Sessions'. reason: '401 Unauthorized: [no body]'
org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized: [no body]
-------------------
Resolution
Issue related to PVWA server session persistency in which the first REST api call from PTA to the PVWA loadbalancer url succeeded fine and the http 401 authorization error was incurred on the subsequent REST API call after initial authentication to another PVWA server within the loadbalancer cluster. Engage your loadbalancer team to review how to maintain the session affinity/persistency of the PVWA servers via client source IP (20 mins) instead of round robin routing.
Alternatively, configure your PTA server to a specific PVWA server (epv_host in systemparm.properties) bypassing the loadbalancer will allow the risk score to appear correctly in the Session monitoring module.