<?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 Prashant Pawar on Medium]]></title>
        <description><![CDATA[Stories by Prashant Pawar on Medium]]></description>
        <link>https://medium.com/@prashantpawar29?source=rss-8c2774e63034------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Prashant Pawar on Medium</title>
            <link>https://medium.com/@prashantpawar29?source=rss-8c2774e63034------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:05:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prashantpawar29/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[Securing non-Google Cloud applications using the BeyondCorp Enterprise app connector]]></title>
            <link>https://blog.searce.com/securing-non-google-cloud-applications-using-the-beyondcorp-enterprise-app-connector-f202871fa92b?source=rss-8c2774e63034------2</link>
            <guid isPermaLink="false">https://medium.com/p/f202871fa92b</guid>
            <category><![CDATA[beyondcorp-enterprise]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[context-aware-access]]></category>
            <category><![CDATA[zero-trust-security-model]]></category>
            <dc:creator><![CDATA[Prashant Pawar]]></dc:creator>
            <pubDate>Wed, 12 Apr 2023 07:35:56 GMT</pubDate>
            <atom:updated>2023-04-12T07:38:45.827Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GDQkWcM1EvxEQVxGokEwlw.png" /><figcaption>BeyondCorp Enterprise</figcaption></figure><p>Security is a critical aspect of any organization and requires a comprehensive and proactive approach to protect the organization’s assets from potential harm. Today many enterprise organizations are moving towards the Zero Trust Network Access (<strong>ZTNA</strong>) security model where nothing is assumed when verifying one’s identity.</p><p>Due to the pandemic, many organizations are in need to secure a remote workforce but network-centric solutions such as virtual private networks (VPNs) and firewalls create an attack surface that can be exploited. ZTNA takes a fundamentally different approach to providing secure remote access to the organization’s resources.</p><p>In this article, we are going to see how we can protect the applications which are hosted on other clouds or on-prem environments using <strong>BeyondCorp Enterprise App Connector.</strong> Using BeyondCorp Enterprise app connectors, you can access HTTPS applications running outside the Google Cloud with <strong>identity and context-aware access</strong>.</p><h4>What is BeyondCorp?</h4><blockquote>BeyondCorp is an implementation of the zero-trust model by Google. BeyondCorp enables secure work from virtually any location without the need for a traditional VPN. The goal is to enable users to securely work anytime, anywhere and on any device without having to use a virtual private network, or VPN, to access an organization’s resources.</blockquote><p>BeyondCorp Enterprise has an interesting backstory. When a highly sophisticated APT attack named Operation Aurora occurred in 2009, BeyondCorp was designed in response to it. This attack led Google to reconsider its security model and move it beyond the concept of an almighty perimeter (VPN). Internally, Google began reimagining how employees and devices access internal applications by reimagining their security architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zHNy8qUScHz7mRipFaC8cg.png" /><figcaption>BeyondCorp Enterprise Benefits</figcaption></figure><h4>BeyondCorp Enterprise app connector:</h4><p>BeyondCorp Enterprise’s app connector serves as a secure, authenticated interface between BeyondCorp Enterprise’s enforcement plane and applications running on the cloud and on-premises.</p><h4>Architecture of BeyondCorp App Connector:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dLEYz0pu-BIjSMmMG_sqyQ.png" /><figcaption>BeyondCorp Enterprise App Connector</figcaption></figure><h4>Pre-requisites:</h4><ul><li>A BeyondCorp Enterprise license</li><li>Owner permission on the GCP project</li></ul><h4>Enable following APIs:</h4><ul><li>Compute Engine API</li><li>BeyondCorp API</li></ul><h4>Sample application:</h4><p>The HTTPS application which we want to protect could be hosted on any one of the services like EC2 instance, Azure VM, etc. In this scenario, I have installed an Apache web server on an EC2 instance with Let’s Encrypt SSL certificate. (App Connector only supports HTTPS applications as of now.)</p><h4>App connector remote agent VM:</h4><p>You must deploy an app connector remote agent VM for every network environment that hosts an application that you want to protect with BeyondCorp Enterprise. You must have a dedicated VM, or any Bare Metal server with Docker installed, for each remote agent that you create.</p><p>Each BeyondCorp Enterprise app connector agent requires a Linux VM with Docker installed. Following Linux distributions are supported:</p><ul><li>Ubuntu 16.04 or later (Preferred)</li><li>Debian 10.7 (buster)</li><li>Red Hat Enterprise Linux Server 7.8 (Maipo) x86_64</li></ul><p>Install Docker on Agent VM &amp; Open outbound security group rule at port 443 for internet (We can use NAT gateway in this case).</p><p>In this scenario, My application is deployed on the AWS EC2 instance so my app connector remote agent instance will be in the same environment (in the same VPC network on AWS).</p><p>Run the following command on the remote agent VM:</p><pre>curl https://raw.githubusercontent.com/GoogleCloudPlatform/beyondcorp-applink/main/bash-scripts/install-beyondcorp-runtime -o ./install-beyondcorp-runtime &amp;&amp; chmod +x ./install-beyondcorp-runtime &amp;&amp; ./install-beyondcorp-runtime</pre><p>You will see similar output after you run above command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vgQWVLuvSwruCyTY" /></figure><p>To add the bce-connctl alias to your shell, run the following command:</p><pre>source ~/.bce_alias</pre><p>Set the required environment variables by running the following commands:</p><pre>PROJECT_ID=&lt;project-id&gt;<br>REGION=&lt;connector-region&gt;<br>CONNECTOR_NAME=&lt;connector-name&gt;</pre><p>Enroll the connector by running the following command in the bce-connctl CLI:</p><pre>bce-connctl init --project=$PROJECT_ID --region=$REGION --connector=$CONNECTOR_NAME</pre><p>We will get the script on the remote agent VM screen once we successfully run the above command. This is the script which we need to copy and run on Google Cloud Shell (Require <strong>owner</strong> access to run the script).</p><h4>Add new application to IAP:</h4><p>Once we successfully run the script in Google Cloud Shell, an app connector is created in our GCP project. Then we need to go to the Menu in the GCP project and select Security and then Identity-Aware Proxy.</p><p>Click on <em>Connect New Application</em> and select <em>Connect via App Connector</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETJSQ07k0eCPVcCyK3tcgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9OkqCHxoDWpUzZrpELTlw.png" /></figure><p>In the next step, we need to select the app connector which we created in the previous step and fill in the internal hostname or IP address of the application. The port should be always 443 as the app connector only supports HTTPS applications currently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vcEWs-l2LFBuX0DD1ibroQ.png" /></figure><p>After filling all the application details, we need to publish the application by clicking on the option “<em>Securely Publish Application</em>”. In the backend, Google will create HTTPS Load balancer, managed SSL certificate and attach it to GCP Load balancer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hFikcxk-mYL1ZN1Kw9BoQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AWbdVKdZnawCvfchlDJLOA.jpeg" /></figure><p>After the application is published, Update the DNS record (A record) of the application with the Load Balancer IP mentioned in step 2.</p><p>Then on the IAP home page, enable IAP for the app connector and add user principals to whom we need to provide the access to the application by clicking on <em>Add Principal</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fpKfVbh594SmMs69SWtQKg.jpeg" /></figure><p>We can apply different access level (<strong>Context Aware Access (CAA)</strong>) policies as well:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1YzuSzM_2Vqcak2tpS2FyA.jpeg" /></figure><h4>Output:</h4><p>When we browse the application URL in the browser, we get an IAP sign in page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZuCExYR9R0bI6CLHlfNRw.png" /></figure><p>Sign in with the user to whom we provided the access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yznTBlXuCOgB50Pv0vsbpA.png" /></figure><p>When we tried to sign in with other user, we get access denied as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XLmlx4Gf3yqEi2tJVYwKKw.png" /></figure><p>We can also generate troubleshooting URL by going into the setting of the connector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*305jC8Khi8vvE69KCUobRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rw06ilhP-L--HUE4PptaEQ.png" /></figure><p>This will generate a troubleshooting URL which the user can send to organization admins for troubleshooting the access level issue if there is any.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lvYtLp0C6X8sgAulvrQ7Vg.png" /></figure><p>When Admin gets this URL, he can check what is the issue and which access level is provided to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0ZPVv1whQsuyyrkVW86Qg.png" /></figure><h4>Conclusion:</h4><p>So using <strong>BeyondCorp Enterprise App Connector</strong> service in GCP, we can protect the applications whether they are on GCP, other clouds or on premises. Additionally, we can fine grain the access to applications using <strong>Context Aware Access (CAA)</strong> policies.</p><p>In case of any questions regarding this article, please feel free to comment in the comments section or contact me via <a href="https://www.linkedin.com/in/prashant-pawar-2904/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f202871fa92b" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/securing-non-google-cloud-applications-using-the-beyondcorp-enterprise-app-connector-f202871fa92b">Securing non-Google Cloud applications using the BeyondCorp Enterprise app connector</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>