Glossary

    API Gateway Security

    Compute & Serverless

    API Gateway Security involves protecting your APIs from unauthorized access, abuse, and attacks. Amazon API Gateway provides multiple layers of security controls.

    Authentication & Authorization

    • IAM Authorization: callers sign requests with SigV4; best for service-to-service
    • Cognito Authorizer: validate JWT tokens from Cognito user pools
    • Lambda Authorizer: custom auth logic (token-based or request-based)
    • API Keys: for usage tracking and throttling, not security (keys are not secrets)
    • Mutual TLS (mTLS): client certificate authentication for zero-trust API access

    Protection Controls

    • Throttling: rate limits per stage, per method, per API key to prevent abuse
    • WAF Integration: attach AWS WAF rules for SQL injection, XSS, bot protection
    • Resource Policies: IP whitelisting, VPC endpoint restrictions, cross-account access control
    • Request Validation: validate request body, query strings, headers before reaching backend

    Related AWS Services

    Toc Consulting: AWS Security & Cloud Architecture

    Securing your AWS estate?

    Our team helps engineering teams secure and architect AWS the right way: assessment in week one, a prioritized action plan in week two.