<?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 Aditya Sawant on Medium]]></title>
        <description><![CDATA[Stories by Aditya Sawant on Medium]]></description>
        <link>https://medium.com/@adityasawant_56339?source=rss-9d9a86a8abc4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*l0NPB8PKQN-6Xv7r</url>
            <title>Stories by Aditya Sawant on Medium</title>
            <link>https://medium.com/@adityasawant_56339?source=rss-9d9a86a8abc4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:20:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adityasawant_56339/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[Best practices for Google Cloud Governance- Part 2]]></title>
            <link>https://medium.com/@adityasawant_56339/best-practices-for-google-cloud-governance-part-2-817bc89e51c2?source=rss-9d9a86a8abc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/817bc89e51c2</guid>
            <dc:creator><![CDATA[Aditya Sawant]]></dc:creator>
            <pubDate>Mon, 10 Apr 2023 10:47:52 GMT</pubDate>
            <atom:updated>2023-04-12T05:34:19.547Z</atom:updated>
            <content:encoded><![CDATA[<p>In the <a href="https://medium.com/@adityasawant_56339/best-practices-for-google-cloud-governance-part-1-2da9fcfa6b9e">first</a> part of this post, we covered best practices around resource hierarchy, service account management, super admin management, tags/labels and recommended organisation policies. In this blog post, we will shed some light on some more baselines to implement while governing Google Cloud Platform.</p><p><strong>7. Enable Cloud Identity Rules</strong></p><p>‘Cloud Identities’ are containers for users and groups. These accounts are therefore key to authenticating your corporate users and managing access to your Google Cloud resources. Getting notified for each and every activity pertaining to your Cloud Identities is crucial. Things like User password change, user suspended/deleted, new user added etc are some notifications that must be enabled by default.</p><p>You can follow the below table for some best practices and enable them in your GCP console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*5KNjMpDcj7kPvqF4-9tmWA.png" /></figure><p><strong>8. Setup Granular Cloud IAM Roles.</strong></p><p>IAM lets you grant granular access to specific Google Cloud resources and helps prevent access to other resources. As a best practice, adopt the security principle of <strong>least privilege</strong>, which states that nobody should have more permissions than they actually need. Once you apply those roles to Groups of Users, you can just go ahead and add more users to those groups.</p><p><strong>9. Act on ‘Active Assist’ recommendations</strong></p><p>Google Cloud Platform’s Active Assist is a portfolio of intelligent tools that helps you optimise your cloud operations with recommendations to reduce costs, increase performance, strengthen security, enhance reliability, improve manageability and even help you make more sustainable decisions. Alerts of over granted permissions, security incident investigations and non-compliance are important from the security perspective. Similarly, unused resources, recommended optimizations and network optimizations are equally critical. <strong>Headover to the “Recommendations” tab on your GCP portal every now and then to gain actionable insights on your security and hygiene recommendations which are auto-generated by Google Cloud. </strong>More on this <a href="https://cloud.google.com/recommender/docs">here</a>.</p><p><strong>10. Enable Audit Logs and Monitoring</strong></p><p><a href="https://cloud.google.com/monitoring/docs">Cloud Monitoring</a> helps you gain visibility into the performance, availability, and health of your applications and infrastructure. It’s a great practice to enable Cloud Monitoring for VPC network Changes/network route changes/firewall rule changes/project ownership assignments and IAM role changes.</p><p>Audit logging helps your organization maintain security and minimize risk and is one of the most Important practices to follow. When an organization has a complete visibility of who is doing what and when, they can have a complete understanding of what really is going on in the environment and what has happened already. Enabling Audit logs for each of your Google Resource is half the battle won. More on this <a href="https://cloud.google.com/logging/docs/audit/best-practices">here</a>.</p><p><strong>11. Setup Budgets and Alerts</strong></p><p>It’s imperative to have a complete view of your cloud spending at all times. A timely alert before they hit the monthly <a href="https://cloud.google.com/billing/docs/onboarding-checklist">Budget</a> upper limit has helped many organisations optimise and save costs. Typically, it’s a great practice to have an alert on the spend of 70%-80% of your monthly budget to multiple administrators. This can help them to plan future spend.</p><p><strong>12. Enable Security Command Center</strong></p><p><a href="https://cloud.google.com/security-command-center#section-1">Security Command Center</a> is a comprehensive tool for every organisation to gain Visibility and control over their Security posture on Google Cloud Platform. It’s an automated tool, driven by AI that can help in discovering misconfigurations, vulnerabilities, threats and maintaining compliance. Best part is, it also helps in providing real time notifications and remediation. SCC is an essential aspect of Google Cloud’s best practices and it is crucial that it protects every workload. SCC coupled with the rest of our best practices goes a long way in Security and Optimisation. It works proactively and delivers phenomenal results!</p><p><strong>13. Setup frequent Backups and Enable DR</strong></p><p>Imagine a scenario where, for some reason your workloads get hit by a Ransomware attack and there is nowhere to go. Your data is inaccessible and Business has come to a standstill. This case is common today. The only way to get out of such a situation is to have periodic Incremental backups and snapshots in place so that IT can revert to an earlier version of the data without much impact. Having a robust <a href="https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan-policy-best-practices">Backup plan</a> becomes crucial in every production environment.</p><p>Similarly, for avoiding disruptions in your running workloads, it’s recommended to have a <a href="https://cloud.google.com/architecture/dr-scenarios-planning-guide">Disaster Recovery plan</a> in place. While there are several ways of planning your DR strategy using HA or backups, Google’s resilient network and <a href="https://cloud.google.com/storage/docs/storage-classes">multi regional storage</a> options come in handy.</p><p>As a part of good governance, always have your backups with a Storage <a href="https://cloud.google.com/storage/docs/lifecycle">Lifecycle</a> policy defined to move the data into Infrequently access storage tiers. That saves quite a bit of storage costs.</p><p>Hope you found this article helpful.</p><p>Following these best practices will go a long way in ensuring a risk free cloud environment for your organization with better manageability and security. Contact <a href="/service/mailto:adityasawant@google.com">us</a> or your Google Partner of choice for more information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=817bc89e51c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best practices for Google Cloud Governance- Part 1]]></title>
            <link>https://medium.com/@adityasawant_56339/best-practices-for-google-cloud-governance-part-1-2da9fcfa6b9e?source=rss-9d9a86a8abc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2da9fcfa6b9e</guid>
            <dc:creator><![CDATA[Aditya Sawant]]></dc:creator>
            <pubDate>Mon, 10 Apr 2023 10:27:10 GMT</pubDate>
            <atom:updated>2023-04-14T04:01:42.408Z</atom:updated>
            <content:encoded><![CDATA[<p>To Everyone who reads this post, a hearty Hello!</p><p>In today’s day and age, Digital Transformation is a norm for most businesses. Every CIO strives to optimize costs and keep their environment secure. Also, it’s essential to streamline operations and maintain a healthy balance between innovation and sustenance.</p><p>While many customers are adopting Google Cloud, we as Google Cloud Practitioners encourage them to practice some fundamental hygiene practices which can make their cloud environment even more resilient, secure and manageable.</p><p>If you are running a Google Cloud environment today, this two part blog covers some best practices we have collated while working with large Google Cloud customers.</p><ol><li><strong>Implementing a Resource Hierarchy and Billing ID setup</strong></li></ol><p>The Google Cloud ‘resource hierarchy’ resembles the file system found in traditional operating systems as a way of organising and managing cloud entities hierarchically. Generally, each resource has exactly one parent. Setting up a hierarchical organisation of resources will enable you to set access control policies and configuration settings on a parent resource, and the policies and Identity and Access Management (IAM) settings are inherited by the child resources. <strong>Most essentially, having a separate billing ID attached to every ‘GCP project’ provides better cost visibility and spend control</strong>. More on this, <a href="https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shYs8Kxi_BU2JHHeyRUGqA.jpeg" /><figcaption><em>The Diagram illustrates a sample Google Cloud Hierarchy with a single Organization, Multiple Folders and Projects attached to those folders. Each Project consists of GCP resources</em></figcaption></figure><p><strong>2. Super Administrator: Best Practices</strong></p><p>To configure your Google Cloud organization resource, you need to use a Google Workspace or Cloud Identity ‘super admin account’. Super admin accounts have irrevocable administrative permissions that, as a best practice, we do not recommend using in the day-to-day administration of your organization. Also a great practice is to enforce Multi-factor Authentication on your super admin account. This ensures additional security. Here is a list of some best practices on managing super admin accounts.</p><ul><li>Enable Post-SSO verification/MFA</li><li>Super admin is equivalent to a ‘root’ account, it is recommended that at least 3 super admin users should be explicitly identified in the organisation in case one of the Super admins leaves the organisation.</li><li>Secure the Super Admins with hardware 2FA.</li><li>Removing all Super Admins’ ‘Organization Administrator’ roles in IAM</li><li>It is recommended not to use a Super Admin for daily activities</li><li>Enforce a short sign-in period for all Super Admin accounts in security &gt; Google Cloud session control</li><li>All Super Admins must have recovery information added in Cloud Identity</li><li>Give each Super admin user a separate a separate account login</li></ul><p>More details <a href="https://cloud.google.com/resource-manager/docs/super-admin-best-practices">here</a>.</p><p><strong>3. Setup Restrictive ‘Organization Policies’</strong>.</p><p>An organisation policy is a configuration of restrictions. You, as the <a href="https://cloud.google.com/resource-manager/docs/organization-policy/using-constraints#add-org-policy-admin">organisation policy administrator</a>, define an organisation policy, and you set that organisation policy on organisations, folders, and projects to enforce the restrictions on that resource and its descendants. It’s a great practice to have restrictive constraints on automatic network, service account creation by default. Also when you enforce policies like ‘Disable Public Access prevention’ to your Cloud Storage, on Organization level, the GCP environment becomes much more secure every time a new project is created.</p><p>Here is a list of some best practices:</p><ul><li>Compute Engine- Skip default network creation</li><li>Identity and Access Management- Disable service account creation</li><li>Identity and Access Management- Disable service account key creation</li><li>Identity and Access Management- Disable service account key upload</li><li>Cloud Storage- Enforce Public Access Prevention</li><li>Compute Engine- Define allowed external IPs for VM instances</li><li>Service Consumer Management- Disable Automatic IAM Grants for Default Service Accounts</li></ul><p>More details <a href="https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints">here.</a></p><p><strong>4. Ensure Effective Tagging, Labeling and Grouping of GCP resources.</strong></p><p>It’s a good idea to add tags to every resource that you create to conditionally allow or deny policies based on whether a resource has a specific tag. Labels, on the other hand, can help annotate the resources for the admin to filter out the resources depending on its contents. The table below illustrates some tags you can use to organise your resources:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qGHQIHL1cVkFxpSQlfWv_g.png" /><figcaption><em>Grace Mollison- Head Cloud Solutions Architects EMEA, Google</em> has written a wonderful article to summarise the best practices for Labels usage on GCP, linked <a href="https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources">here</a>.</figcaption></figure><p><strong>5. Control over Service Accounts usage</strong></p><p>Service accounts represent non-human users. They’re intended for scenarios where a workload, such as a custom application, needs to access resources or perform actions without end-user involvement.</p><p>You can follow the list below for best practices.</p><ul><li>Service accounts should have no more than 2 active keys</li><li>Avoid using default service accounts as they are granted primitive roles</li><li>Use serviceAccountUser on a temporary basis (don’t grant permanent access)</li><li>Keys should be rotated regularly.</li><li>Notify when service account keys are older than 180 days</li><li>Service Account keys should not be committed to your source repos ( even private ones)</li><li>separate service accounts should be used for test and production</li><li>Don’t allow keys to get too old</li><li>Per project Default Compute Engine Service Account should not be used to run VM instances in GCP.</li><li>For on-prem/remote applications to access GCP resources and services, use a custom service account instead of a user identity. In this case the service account needs to authenticate explicitly with a key which acts as a password.</li><li>Use secret manager to protect protect the user-managed service account keys</li><li>For apps/products/services running on GCP, use google-managed service account keys</li><li>Custom Service Accounts should be created for each service — VM, SCC and PubSub</li><li>Grant Custom Service Account only the required IAM permissions</li><li>Grant act as service account at the service account itself and not up in the hierarchy</li><li>Use “act as” the service account (iam.serviceAccounts.actAspermission) for user to assume service account</li><li>Do not store secrets in metadata (part of resource.get() call) instead store secrets in Cloud Storage and grant permission to the instance’s service account</li><li><strong>Use expiry times</strong> when you need temporary access to a system, especially when the system requires a service account key.</li></ul><p>More details on Service account key management <a href="https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys">here</a>.</p><p><strong>6. Controlling Service Account sprawl</strong></p><p>Service accounts represent non-human users. They’re intended for scenarios where a workload, such as a custom application, needs to access resources or perform actions without end-user involvement.As a best practice, disable Auto Service account creation on the Organization level and use only the existing pool of service accounts always. Some Best Practices are linked <a href="https://cloud.google.com/iam/docs/best-practices-service-accounts">here</a>.</p><p>Follow this <a href="https://medium.com/@adityasawant_56339/best-practices-for-google-cloud-governance-part-2-817bc89e51c2">link</a> for Part 2…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2da9fcfa6b9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Highly scalable applications using Google’s MIG]]></title>
            <link>https://medium.com/@adityasawant_56339/creating-highly-scalable-applications-using-googles-mig-79a0984c93e?source=rss-9d9a86a8abc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/79a0984c93e</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[google-cloud]]></category>
            <dc:creator><![CDATA[Aditya Sawant]]></dc:creator>
            <pubDate>Wed, 07 Dec 2022 11:23:26 GMT</pubDate>
            <atom:updated>2022-12-07T11:23:26.304Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello folks! Hope we are doing well and 2023 being just around the corner, I’m sure, is going to be full of pleasant surprises and learnings.</p><p>As a Customer Engineer at Google, I get the chance to converse with several customer personas and help them solve business problems. Recently, I came across a case where the customer has a Web application with audio and video serving backends which must horizontally scale up and down in the same region as per various metrics of Cpu, Memory, etc. The Scaling must be automatic and should need zero human intervention. I went ahead and initiated a dialogue regarding Managed Instance groups and HTTP(S) load balancing for the customer.</p><p>Setting it up for a demo and presenting the solution was a great learning experience for me and today and I would love to present my learnings to all of us through this blog.</p><p>To begin with, Google Compute Engine offers two kinds of VM instance groups, managed and unmanaged:</p><ul><li>Managed instance groups (MIGs) let us operate apps on multiple identical VMs. We can make our workloads scalable and highly accessible by taking advantage of automated MIG services, including: autoscaling, autohealing, regional (multiple zone) deployment, and automatic updating.</li><li>Unmanaged instance groups let us load balance across a fleet of VMs that we manage ourselves.</li></ul><p>In our case, we will emphasise on Managed instance groups as our Business case demands that.</p><p><strong>Managed Instance Groups</strong></p><p>By Definition, a managed instance group is a collection of identical VM instances that we control as a single entity using an instance template.</p><p>We can easily update all of the instances in the group by specifying a new template in a rolling update. Also, when new applications require additional compute resources, managed instance groups can automatically scale the number of instances in the group. Managed instance groups can work with load balancing services to distribute network traffic to all of the instances in the group. If an instance in the group stops, crashes, or is deleted by an action, other than the instance group’s commands, the managed instance group automatically recreates the instance so it can resume its processing tasks. The recreated instance uses the same name and the same instance template as the previous instance. Managed instance groups can automatically identify and recreate unhealthy instances in a group to ensure that all the instances are running optimally.</p><p><strong>The Process</strong></p><p>To create a managed instance group, we first need to create an instance template. Next, we’re going to create a managed instance group of the specified instances. The instance group manager then automatically populates the instance group based on the instance template. The instance template dialog looks and works exactly like creating an instance, except that the choices are recorded so that they can be repeated. When we create an instance group, we define the specific rules for the instance group.</p><p><strong>First</strong>, we decide if the instance group is going to be single or multi-zoned and where those locations will be.</p><p><strong>Second</strong>, we choose the port they are going to allow and load balance across.</p><p><strong>Third</strong>, we select the instance template that we want to use.</p><p><strong>Fourth</strong>, we decide if we want to autoscale and under what circumstances</p><p><strong>Fifth</strong>, we consider creating a health check to determine which instances should receive traffic. Essentially, we’re still creating virtual machines, but we’re applying more rules to that instance group.</p><p>Managed instance groups offer auto scaling capabilities that allow us to automatically add or remove instances from a managed instance group based on increases or decreases in load. Autoscaling helps our applications gracefully handle increases in traffic and reduces cost when the need for resources is lower. We just define the autoscaling policy, and the autoscaler performs automatic scaling based on the measured load. Applicable autoscaling policies include scaling based on CPU utilisation, load balancing capacity, or monitoring metrics, or by queue-based workload like Cloud Pub/Sub.</p><p><strong>Using HTTP(S) Load Balancing</strong></p><p>Now, let’s talk about HTTP(S) load balancing, which acts at Layer 7 of the OSI model. This is the application layer, which deals with the actual content of each message, allowing for routing decisions to be based on the URL.</p><p>GCP’s HTTP(S) load balancing provides global load balancing for HTTP(S) requests destined for our instances. This means that our applications are accessible to our customers at a single anycast IP address, which simplifies our DNS setup. HTTP(S) load balancing balances HTTP and HTTPS traffic across multiple backend instances and across multiple regions. HTTP requests are load balanced on port 80 or 8080, and HTTP(S) requests are load balanced on port 443. This load balancer supports both IPv4 and IPv6 clients, is scalable, requires no pre-warming, and enables content-based and cross-regional load balancing. We can configure URL maps that route some URLs to one set of instances and route another URL to other instances. Requests are generally routed to the instance group that is closest to the user. If the closest instance group does not have sufficient capacity, the request is sent to the next closest instance group that does have capacity. we will get to explore most of these benefits in the first lab of the module.</p><p><strong>A Diagrammatic Representation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*QT1RM3TDLtwzUsMK" /></figure><p>A global forwarding rule directs requests from the internet to a target HTTP proxy. The target HTTP proxy checks each request against a URL map to determine the appropriate backend service for the request. For example, we can send requests for ww.example.com/audio to one backend service, which contains instances configured to deliver audio files, and requests for ww.example.com/video to another backend service, which contains instances configured to deliver video files. The backend service, on the other hand, directs each request to an appropriate backend based on serving capacity, zone, and instance health of the attached backends. The backend service contains a health check, session affinity, a timeout setting and one or more backends.</p><p>A health check polls instances attached to the backend service at configured intervals. Instances that pass the health check are allowed to receive new requests. Unhealthy instances are not sent requests until they are healthy again.</p><p>Normally HTTP(S) load balancing uses a round-robin algorithm to distribute requests among available instances. This can be overridden with session affinity. Session affinity attempts to send all requests from the same client to the same virtual machine instance. Backend services also have a timeout setting, which is set to 30 seconds by default. This is the amount of time the backend service will wait on the backend before considering the request a failure. This is a fixed timeout, not an idle timeout. If we require longer-lived connections, set the value appropriately.</p><p>The backends themselves contain an instance group, a balancing mode, and a capacity scaler.</p><p>An instance group contains virtual machine instances. The instance groups may be a managed instance group with or without autoscaling or an unmanaged instance group. A balancing mode tells the load balancing system how to determine when the backend is at full usage. If all the backends for the backend service in a region are at full usage, new requests are automatically routed to the nearest region that can still handle requests. The balanced mode can be based on CPU utilisation or requests per second or RPS.A capacity setting is an additional control that interacts with the balancing mode setting.</p><p><strong>In Summary</strong> MIG and HTTP(S) load balancing effectively resolved the auto scaling query of our customer and helped scale the app not only in the same region but also across several regions.</p><p>By implementing this, we were able to deliver an efficient, scalable and reliable solution on Google Cloud Platform.</p><p>Reference: <a href="https://cloud.google.com/compute/docs/instance-groups">https://cloud.google.com/compute/docs/instance-groups</a></p><p>Reference: <a href="https://cloud.google.com/load-balancing/docs/https">https://cloud.google.com/load-balancing/docs/https</a></p><p>Reference and awesome learning material: <a href="https://www.coursera.org/learn/networking-gcp-defining-implementing-networks">https://www.coursera.org/learn/networking-gcp-defining-implementing-networks</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79a0984c93e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>