Prompt

Kong auth and rate limit setup

Technology / API Platforms1 observationLast seen Oct 6, 2026

Latest observation

Oct 6, 2026OpenAI APIWeb search: off

Here’s a practical Kong auth + rate limiting setup you can use as a starting point.

1) Typical plugin order

Common setup for a protected API:

  1. Authentication
    • key-auth, jwt, oauth2, openid-connect, etc.
  2. Rate limiting
    • rate-limiting or rate-limiting-advanced
  3. Optional: logging/monitoring plugins

Kong evaluates plugins by phase, so auth happens before rate limiting in most cases.


2) Example: Key Auth + Rate Limiting

Enable key auth on a service or route

curl -i -X POST http://localhost:8001/services/my-service/plugins \
  --data "name=key-auth"

Add rate limiting

curl -i -X POST http://localhost:8001/services/my-service/plugins \
  --data "name=rate-limiting" \
  --data "config.minute=100" \
  --data "config.policy=local"

3) Create a consumer and key

curl -i -X POST http://localhost:8001/consumers \
  --data "username=client1"
curl -i -X POST http://localhost:8001/consumers/client1/key-auth \
  --data "key=my-secret-key"

4) Call the API

curl -i http://localhost:8000/my-api \
  -H "apikey: my-secret-key"

If the key is valid, Kong forwards the request. If not, it returns 401.


5) Example with JWT auth

Enable JWT

curl -i -X POST http://localhost:8001/services/my-service/plugins \
  --data "name=jwt"

Add rate limiting

curl -i -X POST http://localhost:8001/services/my-service/plugins \
  --data "name=rate-limiting" \
  --data "config.minute=100"

Configure consumer with JWT credential

curl -i -X POST http://localhost:8001/consumers \
  --data "username=client1"
curl -i -X POST http://localhost:8001/consumers/client1/jwt \
  --data "key=client1" \
  --data "secret=my-jwt-secret"

Then send a signed JWT in the request.


6) Recommended production considerations

  • Use rate-limiting-advanced if you need better controls
  • Prefer Redis policy for distributed Kong deployments
  • Apply plugins at the route level if only some endpoints need protection
  • Add ACL plugin if you want consumer group-based access
  • If using OIDC, openid-connect is usually the cleanest option

7) Best practice example

For a public API:

  • openid-connect for auth
  • rate-limiting-advanced for quota control
  • cors if browser clients access it
  • request-size-limiting to reduce abuse

If you want, I can also give you:

  1. a Kong declarative config (kong.yaml),
  2. a Kubernetes Ingress / Kong Ingress Controller setup, or
  3. a Docker Compose demo for auth + rate limiting.

Brands

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.