Kong Workshop

Training for Kong API Gateway

  1. 01PrerequisitionCreate the Kong network and a compose file for the React, Hono and Next.js services of the workshop.อ่าน 2 นาที
  2. 02InstallationInstall Kong API Gateway with Docker Compose and a Postgres database.อ่าน 3 นาที
  3. 03Gateway serviceWhat a Kong gateway service is, and how to create one that points to your app.อ่าน 1 นาที
  4. 04RouteCreate a Route in Kong so that clients reach your service by path.อ่าน 1 นาที
  5. 05Coffee breakExercise: create the React and Next.js services in Kong yourself, with the answer folded below.อ่าน 2 นาที
  6. 06Kong pluginsOverview of Kong plugins and their three scopes: global, route and service.อ่าน 1 นาที
  7. 07Basic AuthProtect a route with the Basic Auth plugin.อ่าน 1 นาที
  8. 08ConsumerCreate Kong consumers, the users inside Kong.อ่าน 1 นาที
  9. 09Key AuthProtect an API with the Key Auth plugin and send the key in a header or in the query string.อ่าน 2 นาที
  10. 10JwtProtect an API with the JWT plugin: create a JWT consumer and test with a token from jwt.io.อ่าน 2 นาที
  11. 11OAuth2Kong can validate tokens from an OAuth2 server; this page is a placeholder until the Keycloak session.อ่าน 1 นาที
  12. 12Access control levelLimit access by group with the ACL plugin: Admin and User groups for the /admin, /api and / routes.อ่าน 3 นาที
  13. 13CORSEnable CORS in Kong instead of a CORS library in your framework.อ่าน 1 นาที
  14. 14Proxy CacheCache API responses in Kong with the Proxy Cache plugin.อ่าน 2 นาที
  15. 15Rate limitLimit how often an API can be called, and read the ratelimit response headers.อ่าน 1 นาที
  16. 16Response transformationChange API responses, for example remove a header, with the Response Transformer plugin.อ่าน 1 นาที
  17. 17Upstream (Load balancer)Use Kong Upstreams as a load balancer, with active and passive health checks.อ่าน 2 นาที
  18. 18ACMEGet free TLS certificates from Let's Encrypt with the ACME plugin.อ่าน 3 นาที
  19. 19Protect Kong ManagerPut Kong Manager behind Kong itself, on subdomains or on a sub-path.อ่าน 5 นาที
  20. 20SummaryTL;DR: shell aliases and the final Kong compose file.อ่าน 2 นาที