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 returnHTTP 404.
To enable it, set enable_config_inspection to true in your tyk.conf or use the equivalent environment variable.
- Configuration File
- Environment Variable
Examples
Inspect Full Gateway Configuration
Inspect a Single Config Field
To retrieve the value of a specific configuration field, use thefield query parameter with the field name:
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_.