RESTAPI call is not working with load balancer

RESTAPI call is not working with load balancer

135
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:59 PM


Symptom


You have multiple PVWA servers under a load balancer.

 

Case 1: when both PVWAs are under the load balancer, the REST API call is not working.

Case 2: when one PVWA server is under load balancer, but the other is out of rotation - REST API calls working.

 



Environment


10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.1;12.2;11.9;11.8;12.6 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access Password Vault Web Access Other

Cause


The initial API logon call returns a session authorization token for a specific PVWA server. Subsequent API calls may be directed by the load balancer to a different PVWA server than the initial logon. Consequently, in Case 1, there is a 401 or 403 error because the subsequent PVWA server has no knowledge of the initial logon.  In Case 2, there is only one PVWA under the load balancer, then all API calls go to the same PVWA server.  The REST API calls work because they are directed to the same PVWA server with the persistent session token.



Resolution


For Idira API calls, the load balancer must use some form of session persistence, such as source IP based session persistence.  The load balancer would need to be configured such that it would send the subsequent API calls to the same PVWA server. Third party load balancer configuration is outside scope of Idira support.

Another option is to use the PVWA FQDN rather than the load balancer VIP URL in the API calls. Then all API calls would be directed to the same PVWA server.



Actions
  • Print
  • Copy Link

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