How to fix 403 error occuring in Automation Suite while logging in to monitoring pages (https://monitoring.fqdn/metrics)?
Issue Description
In Automation Suite, while trying to access https://monitoring.fqdn/metrics URL, a 403 error occurs:
Resolution
-
First, check the pod logs using `kubectl logs -f` and `kubectl describe pod` for a pod named `auth-oauth2-proxy-xxxxx` under the `uipath-auth` namespace.
-
Look for an error message like: `callback: token exchange failed: Post "https://monitoring.as.domain.com/dex/token": x509: certificate signed by unknown authority.`
-
If the error matches, follow these steps:
-
It seems the AS certificate has been updated to a company-issued or public certificate.
-
Open the AS link in a browser, locate the root certificate, and export it to a `.crt` or `.cer` file.
-
Move the exported certificate to the AS server nodes and place it in `/etc/pki/ca-trust/source/anchors`.
-
Run `update-ca-trust` on all nodes.
-
Return to any server node and use the `kubectl` command to restart the `auth-oauth2-proxy` deployment.
-
kubectl -n uipath-auth rollout restart deploy auth-oauth2-proxy
-
-
Try logging in again using a fresh incognito window to access the monitoring pages.
-