<?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 Manoj Kanduri on Medium]]></title>
        <description><![CDATA[Stories by Manoj Kanduri on Medium]]></description>
        <link>https://medium.com/@knowme?source=rss-dc84f9142796------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*okBhi0b_WGcuT2aJulP-6Q.jpeg</url>
            <title>Stories by Manoj Kanduri on Medium</title>
            <link>https://medium.com/@knowme?source=rss-dc84f9142796------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:32:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@knowme/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[Private S3 access over VPN]]></title>
            <link>https://knowme.medium.com/private-s3-access-over-vpn-e8e0e3b6769f?source=rss-dc84f9142796------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8e0e3b6769f</guid>
            <category><![CDATA[s3-bucket]]></category>
            <category><![CDATA[aws-client-vpn]]></category>
            <category><![CDATA[idp]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[aws-privatelink]]></category>
            <dc:creator><![CDATA[Manoj Kanduri]]></dc:creator>
            <pubDate>Fri, 04 Dec 2020 23:13:08 GMT</pubDate>
            <atom:updated>2020-12-04T23:13:08.933Z</atom:updated>
            <content:encoded><![CDATA[<p>Uploading data from personal device to S3 over VPN using private link.</p><h3>Problem Statement</h3><p>Employees using their company issued laptops or personal devices need to upload or download data to/from S3 bucket over a secure channel with appropriate AuthN / AuthZ configured. Roaming devices with variable network bandwidth have challenges accessing cloud data while using corporate VPN that traditionally tend to route requests through office locations or data centers.</p><h3>AWS Solution architecture</h3><p>Some key AWS services used for the solution here include #AWS Client VPN #VPC Endpoint #Privatelink #S3 #Glacier</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sb4MFIc4WfYMVZiJG9MSjg.jpeg" /><figcaption>Private S3 access</figcaption></figure><p><strong>AWS Client VPN </strong>Configure AWS Client VPN to VPC by associating dedicated subnets to route traffic internally in AWS. Disable split tunnel access so all traffic is routed through AWS. To test configuration refer to steps for certificate based MTLS configuration documented below.</p><p><a href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-getting-started.html">https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-getting-started.html</a></p><p>Establish IDP integration with this AWS client VPN to enable proper AuthN of the employees, in above picture shown Okta for example.</p><p><strong>Private S3 bucket </strong>Configure a VPC endpoint (VPCE) associated with your VPC. Create a new S3 bucket with private link established to VPCE and edit bucket policy to Deny all PUT requests unless the requests are coming over VPCE.</p><h4>Test verify below results</h4><blockquote>Not connected to AWS Client VPN<br>aws s3 ls s3://mybucket → SUCCESS<br>aws s3 cp text.txt s3://mybucket → FAIL</blockquote><blockquote>Connect to AWS Client VPN<br>aws s3 ls s3://mybucket → SUCCESS<br>aws s3 cp text.txt s3://mybucket → SUCCESS</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8e0e3b6769f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS — SQS Access Using IAM Assume Roles]]></title>
            <link>https://knowme.medium.com/aws-sqs-access-using-iam-assume-roles-c4a993b62602?source=rss-dc84f9142796------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4a993b62602</guid>
            <category><![CDATA[assume-role]]></category>
            <category><![CDATA[sts-token]]></category>
            <category><![CDATA[sqs]]></category>
            <category><![CDATA[aws-iam]]></category>
            <dc:creator><![CDATA[Manoj Kanduri]]></dc:creator>
            <pubDate>Wed, 06 Mar 2019 17:29:05 GMT</pubDate>
            <atom:updated>2019-03-06T17:29:05.037Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS — SQS Access Using IAM Assume Roles</h3><p>Limiting SQS access using assumed role by an EC2 instance hosted in specific subnet with CIDR.</p><h3>AWS Console</h3><blockquote><em>Step 1: AWS → IAM → Create Instance Role “fom-instance-role” for EC2</em></blockquote><ul><li>Spin on EC2 instance with “fom-instance-role” assigned.</li><li>EC2 instance is provisioned in subnet with CIDR range 10.88.12.0/22</li></ul><blockquote><em>Step 2: Create User Policy “fom-svc-policy”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*097r3mG9tYybdAi3Z1bcZQ.png" /></figure><blockquote><em>Step 3: Create User “fom-svc”</em></blockquote><ul><li>Generate Credentials and download it.</li></ul><blockquote><em>Step 4: Edit Instance Role “fom-instance-role”</em></blockquote><ul><li>Add Permissions “fom-svc-policy” as existing policy</li><li>Add Trust Relationships</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*wcN-BT64x70jjAmhnHg48A.png" /></figure><blockquote><em>Step 5: Create SQS Queue</em></blockquote><ul><li>SQS queue arn:aws:iam::012345678901:role/fom-queue</li><li>Add Permissions for fom-instance-role hosted in CIDR 10.88.12.0/22<br>- Permission to Read/Send/Delete message.</li><li>SQS → Permission → Edit Policy</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*6R6ksjQE8Ghz66-DmtiL8g.png" /></figure><h3>AWS EC2</h3><blockquote>Step 1: AWS Configure</blockquote><ul><li>ssh to EC2 instance</li><li>Configure AWS CLI with credentials of “fom-svc”</li></ul><blockquote>Step 2: Setup Proxy (Optional)</blockquote><p>export HTTPS_PROXY=https://my.proxy.server:port/<br>export HTTP_PROXY=http://my.proxy.server:port/</p><blockquote>Step 3: Assume Role</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OoAoZEx2uV-AzVPs_ZwOOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zelVQJBVrVOfDvTRtFIIwQ.png" /></figure><blockquote>Step 4: Configure STS token</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*0Ovw8Rs80hIrSyjE5vXlqA.png" /></figure><blockquote>Step 5: Send Message to Q</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aY6qsRn1JRGGOgLFhtWMxw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4a993b62602" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Signing SQS Request while accessing over HTTP]]></title>
            <link>https://knowme.medium.com/signing-sqs-request-while-accessing-over-http-9c39836e969?source=rss-dc84f9142796------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c39836e969</guid>
            <category><![CDATA[signature-version-2]]></category>
            <category><![CDATA[aws-sqs]]></category>
            <category><![CDATA[hmacsha256]]></category>
            <category><![CDATA[signature]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[Manoj Kanduri]]></dc:creator>
            <pubDate>Wed, 06 Mar 2019 17:20:40 GMT</pubDate>
            <atom:updated>2019-03-06T17:20:40.234Z</atom:updated>
            <content:encoded><![CDATA[<p>SQS is a managed service from AWS, to access service AWS provides multiple options: SDK, CLI, Console and RESTful. In this story i’m primarily focusing on RESTful approach and various components involved to enable the request.</p><p>Majority of details are explained by AWS at this documentation, <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-making-api-requests.html">Making Query API Request</a>. It becomes difficult to interpret when you you start seeing errors like,</p><blockquote>The request must contain the parameter MessageGroupId.</blockquote><blockquote>The request has expired.</blockquote><blockquote>Request signature mismatch.</blockquote><ol><li><strong>Create SQS queue</strong> in your account with following configuration:<br>- AccessKeyId /Shared Secret to publish and consume from queue<br>- Content deduplication enabled.<br>- FIFO queue.</li><li><strong>Format Query Request</strong></li></ol><blockquote>Query Method GET is formatted as</blockquote><pre>GET\n</pre><blockquote>SQS is US-WEST-2</blockquote><pre>sqs.us-west-2.amazonaws.com\n</pre><blockquote>Queue Path — As shared on console after creation.</blockquote><pre>/007007007/com-test-queue-for-rest-access.fifo\n</pre><blockquote>Query String Components</blockquote><pre>AWSAccessKeyId=ACCESSKEYID007<br>Version=2012-11-05<br>Timestamp=2019-02-24T15%3A19%3A30-08%3A00<br>MessageBody=test_message<br>Action=SendMessage<br>MessageGroupId=abc<br>SignatureMethod=HmacSHA256<br>SignatureVersion=2</pre><p>Timestamp should be sometime in future when you are going to make request, format shown above is URL encoded form of <em>2019–02–24T15:19:30–08:00</em></p><p>Signing the request is mandated by AWS to ensure integrity of the payload in transit to AWS for processing. Payload will be signed by SecretKey that is generated for AWSAccessKey. Query string components needs to be reorganized to support AWS sorts that case sensitive byte ordering. Reorganized query string looks like below.</p><pre>AWSAccessKeyId=ACCESSKEYID007&amp;<br>Action=SendMessage&amp;<br>MessageBody=test_message&amp;<br>MessageGroupId=abc&amp;<br>SignatureMethod=HmacSHA256&amp;<br>SignatureVersion=2&amp;<br>Timestamp=2019-02-24T15%3A19%3A30-08%3A00&amp;<br>Version=2012-11-05</pre><p>3. <strong>Putting it All together</strong></p><pre>GET\nsqs.us-west-2.amazonaws.com\n/007007007/com-test-queue-for-rest-access.fifo\nAWSAccessKeyId=ACCESSKEYID007&amp;Action=SendMessage&amp;MessageBody=test_message&amp;MessageGroupId=abc&amp;SignatureMethod=HmacSHA256&amp;SignatureVersion=2&amp;Timestamp=2019-02-24T15%3A19%3A30-08%3A00&amp;Version=2012-11-05</pre><p>4. <strong>Signing Request</strong></p><p>Signing request with HmacSHA256 method using secret key that is generated for AccessKeyId ACCESSKEYID007. Use this javascript template to generate Version 2 signature for the request.</p><blockquote>&lt;script src=”<a href="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.min.js">https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.min.js</a>&quot;&gt;&lt;/script&gt;<br>&lt;script src=”<a href="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/hmac-sha256.min.js">https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/hmac-sha256.min.js</a>&quot;&gt;&lt;/script&gt;<br>&lt;script src=”<a href="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/enc-base64.min.js">https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/enc-base64.min.js</a>&quot;&gt;&lt;/script&gt;</blockquote><blockquote>&lt;script&gt;<br> var hash = CryptoJS.HmacSHA256(“<strong>&lt;REQUEST TO BE SIGNED&gt;</strong>”, “&lt;<strong>SECRET KEY FOR ACCESS KEY ID&gt;</strong>”);<br> var hashInBase64 = CryptoJS.enc.Base64.stringify(hash);<br> document.write(hashInBase64);<br>&lt;/script&gt;</blockquote><p>Save above script as .html after replacing highlighted variables appropriately. Use request from Step 3 and secret key in variables and save html, when launched in browser you will get HmacSHA256 text something like below.</p><pre>00RMnjGEoRfLanlr//lJxgnQXI07G2LTbkPJirglbs=</pre><p>5. <strong>Build RestFUL request</strong></p><p>Query URL is appended by query string from Step 3.</p><pre><a href="https://sqs.us-west-2.amazonaws.com/007007007/com-test-queue-for-rest-access.fifo?AWSAccessKeyId=ACCESSKEYID007&amp;Action=SendMessage&amp;MessageBody=test_message&amp;MessageGroupId=abc&amp;SignatureMethod=HmacSHA256&amp;SignatureVersion=2&amp;Timestamp=2019-02-24T15%3A19%3A30-08%3A00&amp;Version=2012-11-05">https://sqs.us-west-2.amazonaws.com/007007007/com-test-queue-for-rest-access.fifo?AWSAccessKeyId=ACCESSKEYID007&amp;Action=SendMessage&amp;MessageBody=test_message&amp;MessageGroupId=abc&amp;SignatureMethod=HmacSHA256&amp;SignatureVersion=2&amp;Timestamp=2019-02-24T15%3A19%3A30-08%3A00&amp;Version=2012-11-05</a></pre><p>Append generated signature from Step 4 to above query</p><pre><a href="https://sqs.us-west-2.amazonaws.com/007007007/com-test-queue-for-rest-access.fifo?AWSAccessKeyId=ACCESSKEYID007&amp;Action=SendMessage&amp;MessageBody=test_message&amp;MessageGroupId=abc&amp;SignatureMethod=HmacSHA256&amp;SignatureVersion=2&amp;Timestamp=2019-02-24T15%3A19%3A30-08%3A00&amp;Version=2012-11-05">https://sqs.us-west-2.amazonaws.com/007007007/com-test-queue-for-rest-access.fifo?AWSAccessKeyId=ACCESSKEYID007&amp;Action=SendMessage&amp;MessageBody=test_message&amp;MessageGroupId=abc&amp;SignatureMethod=HmacSHA256&amp;SignatureVersion=2&amp;Timestamp=2019-02-24T15%3A19%3A30-08%3A00&amp;Version=2012-11-05</a>&amp;Signature=00RMnjGEoRfLanlr//lJxgnQXI07G2LTbkPJirglbs=</pre><p>Use above query within Postman or with Curl to test verify.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c39836e969" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Be Cloud First not ‘Cloud Only’]]></title>
            <link>https://knowme.medium.com/be-cloud-first-not-cloud-only-f1a575fc410d?source=rss-dc84f9142796------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1a575fc410d</guid>
            <category><![CDATA[esxi]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Manoj Kanduri]]></dc:creator>
            <pubDate>Wed, 05 Sep 2018 22:28:21 GMT</pubDate>
            <atom:updated>2018-09-12T16:20:58.730Z</atom:updated>
            <content:encoded><![CDATA[<p>Cloud Providers offer un-questionable promising freedom to organizations and engineers to quickly instrument on ideas. Adoption and Monetization from the offered ideas are key success factors for organizations. Cloud Services provide the platform to achieve those goals efficiently and help organizations stay competitive in business. We are all in agreement so far, <em>but problem starts right after this!</em> Cloud got its share of applause and evangelist wears the winners cap, but we forget the fact that this left system, data and accesses exposed to public cloud.</p><p>Facebook and Cambridge Analytica is a good example of how SaaS platforms can get exploited by rogue intentions. Adoption and Monetization should follow investment on migrating the systems back to secure established infrastructure and limit public cloud usage as HA stack. Counter argument to this would be that same risk is involved with hosting in data center, that is correct but there is a difference between hosting a data and compute in multi-tenant SaaS Cloud Provider environment and dedicated data center environment. Using Storage and Compute of Cloud providers is a smart move but relying on managed services with no backup in-house solution is like putting your business to risk.</p><p>It is just waiting for one disaster when organizations would regret there cloud adoptions with <em>“Cloud First”</em> initiatives hosting various systems in cloud, failed to follow up on implementing parallel data center stack making it <em>“Cloud Only”.</em> Responsible and thoughtful Cloud providers are those who have foresight and are working towards tooling infrastructure enabling easy migration of tenants to dedicated environment’s as requested.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1a575fc410d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS & HAProxy]]></title>
            <link>https://knowme.medium.com/why-do-i-need-haproxy-in-aws-stack-fbe12c2348d2?source=rss-dc84f9142796------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbe12c2348d2</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[haproxy]]></category>
            <dc:creator><![CDATA[Manoj Kanduri]]></dc:creator>
            <pubDate>Wed, 05 Sep 2018 04:53:00 GMT</pubDate>
            <atom:updated>2018-09-05T04:55:38.462Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://knowmg.blogspot.com/2017/11/why-do-i-need-haproxy-in-aws-stack.html">Why do I need HAProxy in AWS stack?</a></h3><p>Some interesting development’s while conducting a successful hack week. I take an account of some charms from AWS world. Task at hand was to develop a Mobile app that will consume secure public API’s hosted in AWS environment. Here are the series of events and evolving integration design in brief — <em>Picture worth a thousand words.</em></p><p><strong>Day 1:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*8uZPpDh9QGHxvpIN.png" /></figure><p>Team had some humiliation in stock to handle at this stage, few questions asked</p><p>- Microservices in public subnet?????</p><p>- ELB in public??? Where is trust?</p><p><strong><em>You bet!!!</em></strong></p><p>- <strong><em>Here is Multi Region setup with ACL’s separating subnets.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*5ZEz7TsbsJ20PYpz.png" /></figure><p>While microservices development were in full swing, few more questions followed</p><p>- — How do you trust user accessing the Api Gateway?</p><p>- — Service ELB endpoint published in Route 53 is still vulnerable for exploits.</p><p><strong>Day 2:</strong></p><p><em>Secured User and user access to app through IDP integration. Access token exchanged over API are validated using AWS lambda implementation of API Gateway-Authorizer. Sanitized traffic at service layer by looking for custom header access_token.</em></p><p>Much Better, but this was not enough.</p><p>- Services in Public subnet is unbounded and can be exploited by DDoS.</p><p>- Ingress at public subnet should only trust API Gateway.</p><p>- Authorizer validation is adding to latency of chatty mobile apps while validating every ingress event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*ZYFsh8rmxpKumEZN.png" /></figure><p><strong>Day 3:</strong></p><p><em>API Gateway is a AWS managed service with unbounded ingress or egress traffic and no affinity to VPC. It was not possible to configure public services ELB to trust certs generated by API Gateway, so it was time for some reverse Proxy to terminate ingress event and trust incoming traffic limiting to API Gateway as source. HA Proxy was configured to trust API Gateway upstream and ingress ACL’s on service ELB had limited access only to HA Proxy downstream. Authorizer’s cache configuration resolved latency issue.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*xTJgRlHkF2FmW1S1.png" /></figure><p><strong>Day 4:</strong></p><p>Noph!!! still not good, and reviewers pointed out open ended API Gateway. Where is firewall?</p><p><em>No Problem, WAF was enabled on Cloudfront distribution of API Gateway for /api.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*RXB4y55jpDMAX3_o.png" /></figure><p><strong>Day 5:</strong></p><p><em>Much better day, team just had to seed specific WAF rules addressing security concerns.</em></p><p>How is access token disabled?</p><p><em>Everybody settled with 5mins of user access configured on Authorizer as long as service api’s rejects traffic.</em></p><p><strong>Final Thoughts</strong></p><p>AWS has its own limitations and naturally there were roadblocks in above hack week journey, but these roadblocks are miniscule when compared to rich features and services provided by AWS. Cloud Services are matured to a state that beginners and first time users of various new services of AWS can learn, grasp and deliver in a short span.</p><p>Is it time for 100% cloud? I still have mixed thoughts about it, but it’s time for open platforms to enforce standards and portability of infrastructures.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbe12c2348d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>