Skip to main content

Availability

To inspect the gateway’s live configuration without SSH access, you can enable configuration inspection endpoints on the Control API port.

Configuration Inspection Endpoints

Gateway offers two endpoints for configuration inspection: Both endpoints are available on the Control API port and require authentication via the X-Tyk-Authorization header. Requests without this header return HTTP 403.

Enable Configuration Inspection

By default, configuration inspection endpoints are disabled to prevent accidental exposure of sensitive information. When disabled, all configuration inspection endpoints return HTTP 404. To enable it, set enable_config_inspection to true in your tyk.conf or use the equivalent environment variable.
In production environments, we recommend keeping configuration inspection disabled.

Examples

Inspect Full Gateway Configuration

Response:

Inspect a Single Config Field

To retrieve the value of a specific configuration field, use the field query parameter with the field name:
Response:

Sensitive Field Redaction

Fields that contain secrets (for example, secret, passwords, and connection strings) are automatically shown as *REDACTED* in all responses. The obfuscated field in the response indicates whether the value has been redacted.

Inspect Environment Variables

To view all environment variable mappings:
Gateway will only return environment variables that are prefixed with TYK_GW_.
Response: