API Gateway Routing and Policy Drift Failures
The API behaves differently per environment because the gateway routes to an outdated backend or applies inconsistent auth and rate-limit policies.
Failure explanation
The gateway is part of the externally observable API path, but its routes and policies differ from the backend contract or drift across environments. It may route a path to an old service, strip headers, transform payloads, enforce different authentication, or apply inconsistent timeouts and limits. Testing the backend directly can miss the behavior consumers actually experience.
Example
Staging routes /v2/orders to service version 2, while production still routes it to version 1. The same request returns different response schemas depending on environment.
How to test
- Send the same contract suite through each public gateway environment.
- Validate route-to-backend mapping, auth policy, transformations, timeouts, and rate limits.
- Compare gateway configuration artifacts and detect unapproved differences.
- Verify headers and body are preserved or transformed as documented.
Expected behavior
The effective API contract is consistent across environments except for explicit, reviewed differences. Gateway configuration is versioned and validated as part of release testing.
Runnable examples
Each example includes a broken server, a fixed server, an OpenAPI spec, and a clrsig scenario that detects the failure.