[PVWA-PTA] Security Events: The remote server returned an error: (503) Server Unavailable.
Symptom
Below error is seen in PVWAApp.log everytime Security Events page is clicked:-
2022-12-09 16:38:50,900 DEBUG [26] administrator FCC15 f57e7e99-c987-402f-a68c-1d8e692e3ad5 PTA try to logon. URL [https://ptaserver.com/api/getauthtoken], UserName [PTA_PAS_Gateway] [CyberArk.PasswordVault.PASWebServices.Utils.PTAUtils]
2022-12-09 16:38:50,900 DEBUG [26] administrator FCC15 f57e7e99-c987-402f-a68c-1d8e692e3ad5 System.Net.WebException: The remote server returned an error: (503) Server Unavailable.
--
Following checks done:-
1. tcpdump but no response coming from pvwa
2. netstat shows no ports open for pvwa
3. From PVWA server, PTA GUI loads up find. There are no certificates error(this is fixed)
4. Confirmed that port 443 and 80 is opened on PTA, #3 confirms this as well.
5. PVWA certificate errors are also fixed, with newly requested CA signed cert.
6. Tested API to logon from PVWA server to https://ptaserver.com/api/getauthtoken
works fine with PTA_PAS_Gateway object password retrieve from PrivateArk.
Environment
12.2;12.6;14.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access;PTA
Cause
There is a proxy defined in the webconfig file of the PVWA server, typically this is done for ticketing tool integration, which is not fully supported.
'Integrating with a ticketing service through HTTP proxy is not fully supported. However, you can overcome this by adding a proxy definition to the web.config file,on all PVWA servers. The file is located by default in c:\inetpub\wwwroot\PasswordVault\web.config . Be aware that this workaround defines the HTTP proxy for the entire passwordvault application and not only for ticketing system plugin.'
More details:-
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/13.0/en/Content/PASIMP/Integrating-with-Ticketing-Systems.htm#IntegrationthroughanHTTPproxy
Resolution
To bypass the proxy for specific servers like the PTA, add the below the <bypasslist>(example below) to the web.config in PVWA server :-
<defaultProxy>
<proxy>{........proxydetails............}</proxy>
<bypasslist>
<add address="{ptaFQDN}" />
</bypasslist>
</defaultProxy>
-------
More details regarding bypasslist below:
https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/network/bypasslist-element-network-settings
-