Diff live Kong against the declared baseline
diff_configCompares the live Kong configuration against the declared baseline to find drift. Use it to spot routes, services, or upstreams that differ from what was intended.
Instructions
Compares what Kong is actually running against the declared configuration baseline in kong/seed/baseline.json, and reports every difference.
USE WHEN: something is configured but behaving unexpectedly, and you need to know whether the live configuration matches what was intended. Especially effective for problems with no local symptom -- a route attached to the wrong service, a dropped HTTP method, a changed upstream address -- where the entity looks perfectly valid in isolation.
Pass entity to scope the comparison to one route or service. A whole-gateway diff is much
larger and usually buries the relevant line.
RETURNS: drift[], each entry naming the entity, the attribute, the baseline value, the Kong
value and the operational impact; plus inSync and driftCount.
IMPORTANT: a difference does NOT establish which side is wrong. The baseline may be out of date just as easily as the gateway may have drifted. Report the difference and what it causes; do not assert that Kong is misconfigured on the strength of this tool alone.
LIMITATIONS: the baseline covers services (host/port/protocol), routes (service, paths, methods, required plugins) and upstreams (targets). Plugin configuration VALUES are not compared -- only whether a required plugin is present and enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Which entity class to compare (default "all"). Narrow this when a full diff would be larger than you need. | |
| entity | No | Restrict the comparison to one named entity, e.g. "search-prod" or "payments-api". Strongly preferred when investigating a specific problem -- a gateway-wide diff is much larger and mostly irrelevant. |