Kong: plugins run in priority order, not the order you added them

Every plugin declares a static priority and Kong sorts the whole chain by it, descending. Adding a plugin after another has no bearing on which executes first - so a transformer written to run before authentication runs after it.

Full code & output

This topic is available to PRO members.

Sign in Create a free account

Run this yourself in the Online Java Compiler, spin up a live REST API in the API Sandbox, or practise with Java interview questions.

Published 2026-08-25