api-gateway-backend-security-and-rate-limiting
Configures API key and JWT authentication, locks down Cloud Run backends behind a dedicated gateway service account, and sets per-project rate limits for Google Cloud API Gateway deployments.
What it does
Secures and rate limits backend services behind Google Cloud API Gateway across OpenAPI 2.0 and OpenAPI 3.0.x API configurations, including MCP-enabled gateways. Use when configuring API key or JWT authentication, locking down Cloud Run or Cloud Run functions backends with a gateway service account, reading authenticated claims from X-Apigateway-Api-Userinfo, setting per-project request quotas, or diagnosing HTTP 429 and HTTP 500 Service Control Quota errors. Do not use for Apigee, GKE Gateway API, Cloud Load Balancing custom domain setup, or LLM model routing.
Quality judgment
Exceptionally thorough coverage of API key/JWT auth, backend lockdown ordering, quota metric validation with a dedicated script, and MCP edge cases, with explicit rationale for critical warnings. Inline command examples are solid though most detailed templates live in referenced files; triggers and scope exclusions are precise.