<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gaurav Singh on Medium]]></title>
        <description><![CDATA[Stories by Gaurav Singh on Medium]]></description>
        <link>https://medium.com/@gauravsingh437?source=rss-a5a6640c77ee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gp-Lyz3XeR4ask4S.jpg</url>
            <title>Stories by Gaurav Singh on Medium</title>
            <link>https://medium.com/@gauravsingh437?source=rss-a5a6640c77ee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:04:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gauravsingh437/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[To Secure AWS API Gateway]]></title>
            <link>https://medium.com/@gauravsingh437/to-secure-aws-api-gateway-2c43df0bd88e?source=rss-a5a6640c77ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c43df0bd88e</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[aws-cognito]]></category>
            <dc:creator><![CDATA[Gaurav Singh]]></dc:creator>
            <pubDate>Thu, 05 Dec 2024 17:33:23 GMT</pubDate>
            <atom:updated>2024-12-05T17:33:23.633Z</atom:updated>
            <content:encoded><![CDATA[<p>Stated below is the example of user accessing the application endpoint.<br>Once user hits the URL, after passing through Route 53 it redirects to AWS Cognito to initiate the access token, Cognito passes the access token to the user.</p><p>After which, invoke API with access token which is validated with Cognito.</p><p>Next, token validity details has passed to API gateway. Then, with this valid access token it process the request with Lambda which will perform CRUD operations in DynamoDB as per the use case. Successful response gives the data to user.<br>In case, the token is invalid it send a exception error to user stated 403 invalid token requested.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*noDsftHSD2hY0JNh3_Se8A.png" /></figure><h3>Steps for Secure Control access to your API</h3><ol><li>Use Resource Policy to an API to restrict access to a specific Amazon VPC or VPC endpoint.</li><li>By useing Cross-origin resource sharing (CORS) lets you to control how your REST API responds to cross-domain resource requests.</li><li>Use SSL/TLS 1.2 certificates to encrypt HTTP requests/messages between client and server communication.</li><li>Use AWS WAF to protect your API Gateway API from common web exploits.</li><li>Configure API Gateway with AWS CloudTrail to give you a full auditable history (create, modify, delete, or deploy REST APIs)of the changes to your REST APIs.</li><li>Create a own aws signature version or lambda authorizes to support your own bearer token stategy.</li><li>Use API Gateway throttling settings for each method or route in your APIs for rate limit and a burst for limit per second for each method in your REST APIs and each route in WebSocket APIs.</li></ol><p>For example, API owners can set a rate limit of 1,000 requests per second for a specific method in their REST APIs, and also configure Amazon API Gateway to handle a burst of 2,000 requests per second for a few seconds</p><p>8. Use Usage Plans to provide API keys to your customers and then set throttling limits for individual API keys.</p><ul><li>Throttling ensures that API traffic is controlled to help your backend services maintain performance and availability.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c43df0bd88e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>