In environments where multiple teams or pipelines interact with Kong Gateway, it is vital to trace configuration changes, especially for objects like Routes. Kong Gateway provides two audit log endpoints:
-
/audit/requests: captures who did what, including HTTP method, user, and payload. -
/audit/objects: captures which data entity was created/updated, with full snapshots.
The script below was built to:
- Help customers identify the RBAC user who made a Route change.
- Pinpoint changes to a specific Route.
- Enable SRE or Platform teams to perform accountable debugging based on audit trails.