Okta Access Gateway Monitoring Endpoint Returns 403 Forbidden
Last Updated:
Overview
The Okta Access Gateway (OAG) Monitoring REST API endpoint returns a 403 Forbidden error when the allowed IP list lacks the client IP address. Resolve this error by adding the client IP address or the IP address from the X-Forwarded-For header to the allowed IP list in the OAG admin node. The OAG Monitoring REST API endpoint (/basic_status) returns the following HTTP error response:
403 Forbidden
Applies To
- Okta Access Gateway (OAG)
- REST API Monitoring
- Okta Identity Engine (OIE)
- Okta Classic Engine
Cause
The allowed IP list lacks the client IP address or the IP address from the X-Forwarded-For header. When a load balancer passes an IP address in an X-Forwarded-For header, OAG considers the originating IP address the real IP and requires it in the allowed list. The load balancer IP address does not require inclusion in the allowed list.
Solution
What steps resolve the 403 Forbidden error?
Verify the load balancer configuration and add the client IP address to the allowed IP list in the OAG admin node.
- If a load balancer exists in front of OAG, check the configuration to see if it passes the client IP address in an
X-Forwarded-Forheader. - Ensure the IP address is included in the allowed IP list.
- Secure Shell (SSH) to the OAG admin node.
- Select 4 - Monitoring.
- Select 5 - Configure REST APIs.
- Select 3 - Manage allowed IPs.
- If necessary, add the client IP address or the IP address passed in the
X-Forwarded-Forheader.
