Shared Services - Secure tunnel installation fails after changing to custom URL
Symptom
After the customer adds a custom URL to the Identity tenant and makes it the default, the secure tunnel installation fails with a 500 error. Similar entries to this may appear in the secure tunnel installation logs:-
2022-08-07 10:57:30 info [configFlow.js]: Explicit proxy is not configured. skipping.
2022-08-07 10:57:30 info [configService.js]: calling GET (corrId=xxxxxxx-14c9-19xd-b69d-xxxxe1d7e6c9): https://console.privilegecloud.cyberark.cloud/connectorConfig/v1?customerId=<tenant id>
2022-08-07 10:57:30 info [configFlow.js]: Authenticating customer with id: <tenant id>
2022-08-07 10:57:31 info [configFlow.js]: Returned environment configuration for customer: <tenant id>, fqdn: customurl.privilegecloud.cyberark.cloud, identityUMEnabled: true
2022-08-07 10:57:31 info [authService.js]: calling url: https://console.privilegecloud.cyberark.cloud/secureTunnelInstallerLogin/login/v1, body = {"customerId":"<tenant id>"}
2022-08-07 10:57:31 info [configFlow.js]: Trying login to identity
2022-08-07 10:57:31 error [configFlow.js]: Failed to login secure tunnel installer with user and password: Error: Request failed with status code 500
2022-08-07 10:57:31 error [main.js]: Authentication to Privilege Cloud failed. Try again.
Environment
N/A Privilege Cloud Secure Tunnel Client
Shared Services
Identity Tenant
Secure Tunnel Client Installation
Cause
This is because the customer set a custom URL and it is the default. The authentication through the secure tunnel is trying a handshake to the new default URL instead of the original one and this doesn't work
Resolution
The workaround for this is as follows:-
- Remove the custom URL
- Ensure that the original URL is the default
- Retry the secure tunnel installation
- When installation is successful, re-add the custom URL
- Verify that the custom URL is the default
Please note that when re-adding the custom URL the change has to propagate back and so it will be unavailable for a few minutes.