<?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 CloudDrove on Medium]]></title>
        <description><![CDATA[Stories by CloudDrove on Medium]]></description>
        <link>https://medium.com/@clouddrovetech?source=rss-1440a28d9d2a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f9jcxXpj0qQRW5PoPPjsbA.png</url>
            <title>Stories by CloudDrove on Medium</title>
            <link>https://medium.com/@clouddrovetech?source=rss-1440a28d9d2a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 19:01:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@clouddrovetech/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[“Imagine never missing a critical service outage again — even while you’re sleeping”]]></title>
            <link>https://blog.clouddrove.com/imagine-never-missing-a-critical-service-outage-again-even-while-youre-sleeping-9dd838c0b656?source=rss-1440a28d9d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dd838c0b656</guid>
            <category><![CDATA[alerting]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[the-vigil]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[slack]]></category>
            <dc:creator><![CDATA[CloudDrove]]></dc:creator>
            <pubDate>Wed, 04 Jun 2025 10:16:38 GMT</pubDate>
            <atom:updated>2025-06-04T11:26:59.585Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>“Imagine never missing a critical service outage again — even while you’re sleeping”</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2a2Iqo0In47vJx5t" /><figcaption><strong>The Vigil tool — monitors a distributed infrastructure and sends alerts (Slack, SMS, etc.)</strong></figcaption></figure><p>Ever wish for a single platform to monitor all your service endpoints and track their health in real time? Imagine getting instant alerts on your preferred messaging app during maintenance or when a microservice goes down. No more juggling multiple tools or missing critical outages. It’s time to transform how you manage your infrastructure with complete visibility and seamless notifications.</p><p><strong>The Vigil tool — monitors a distributed infrastructure and sends alerts (Slack, SMS, etc.)</strong></p><p><strong>Features:-</strong></p><p><strong>Automated Infrastructure Monitoring — </strong>Continuous surveillance of all your service endpoints without manual intervention</p><p><strong>Instant Downtime Alerts </strong>— Receive immediate notifications when services fail or recover through your preferred channel:</p><ul><li>Email notifications</li><li>SMS via Twilio</li><li>Team messaging platforms (Slack, Zulip, Telegram)</li><li>Push notifications (Pushover, Gotify)</li><li>Secure messaging protocols (XMPP, Matrix)</li><li>Enterprise solutions (Cisco Webex)</li><li>Custom integration via Webhooks</li></ul><p><strong>Dynamic Status Dashboard </strong>— Deploy a professional status page on your own domain (example: status.example.com) for complete transparency with users</p><p><strong>Communication Management — </strong>Publish and schedule maintenance announcements to keep users informed of planned service interruptions.</p><p><strong>Private and Public Hosting — </strong>The status page can be hosted privately for internal teams and can be hosted publicly for customers needs.</p><p><strong>Let’s hop into the integration of Vigil into your AKS infrastructure</strong></p><p><strong>AKS Deployment:</strong></p><p>Start with deploying AKS cluster for the integration. Use terraform modules from clouddrove `terraform-azure-aks`.</p><ul><li>Clone the below repository in your workspace</li></ul><pre>https://github.com/clouddrove/terraform-azure-aks/tree/master</pre><ul><li>Change the directory to “examples/complete”</li><li>Provide the “<strong>subscription_id</strong>” in the block.</li></ul><pre>provider &quot;azurerm&quot; {<br>  features {}<br>  subscription_id = &quot;&quot;<br>}</pre><ul><li>Do <strong>terraform init </strong>and <strong>terraform plan</strong> to check the deployment plan and terraform apply to finally deploy the aks infrastructure.</li></ul><p>Now, the deployment is done.</p><p><strong>Note: You can also deploy the AKS manually with the Azure console.</strong></p><h3>Setting up a testing environment</h3><p>Let’s deploy demo applications that we can monitor, for testing purposes, we are deploying three applications</p><ol><li>Nginx Server</li><li>Redis Cache Service</li><li>Postgres DB Server</li></ol><p><strong>Nginx server deployment</strong></p><p>Use below command to directly to create deployment</p><pre>kubectl run nginx --image=nginx:latest --port=80 --labels=&quot;app=nginx&quot;</pre><p>Create service for the nginx pod</p><pre>kubectl expose pod nginx --port=80 --target-port=80 --name=nginx-service --type=ClusterIP</pre><p>For Nginx deployment you will get a Service URL:</p><p>&lt;service-name&gt;.&lt;namespace&gt;.svc.cluster.local:port</p><pre>nginx-service.vigil.svc.cluster.local:80</pre><p><strong>Redis cache deployment</strong></p><p>Use below commands to deploy redis cache</p><pre>helm repo add bitnami https://charts.bitnami.com/bitnami</pre><pre>helm install my-redis bitnami/redis --version 20.13.4</pre><p>After helm installation, you will get service url for the redis deployment</p><pre>my-redis-master.vigil.svc.cluster.local</pre><p><strong>Postgresql Database server Deployment</strong></p><pre>helm repo add bitnami https://charts.bitnami.com/bitnami</pre><pre>helm install my-postgresql bitnami/postgresql --version 16.6.3</pre><p>After helm installation, you will get the service url for the postgresql deployment</p><pre>my-postgresql.vigil.svc.cluster.local</pre><p><strong>Now comes to Vigil deployment</strong></p><p>Please use this below link to find the vigil helmchart:</p><pre>https://github.com/clouddrove/helmchart/tree/master/charts/vigil</pre><p>For the deployment purpose, we will be using the below custom-values.yaml file.</p><p><strong>custom-values.yaml</strong></p><pre># fullnameOverride: &quot;vigil&quot;<br>ReplicaCount: 1<br>  # -- Replica count used to configure the number of replica pods that should be deployed and maintained.<br><br>image:<br>    <br>  repository: valeriansaliou/vigil<br>    # -- The image pull policy to employ. Determines when the image will be pulled in. If undefined, this will default to &#39;IfNotPresent&#39;.<br>  pullPolicy: IfNotPresent<br>      # -- Overrides the image tag whose default is the chart version.<br>  tag: &quot;v1.27.0&quot;<br>      # -- Specify digest of image. Tags can be overriden but each tag will contain different digest than previous.<br>  digest: &quot;&quot;<br><br>imagePullSecrets: [] <br><br>commands: []<br><br>service: <br>    # -- service is a map that specifies the  configuration for the Service resource that is created by the chart.<br>  enabled: true<br>    # -- Specifies whether a service should be created.        <br>  type: ClusterIP <br>    # -- The Service type,  as defined in Kubernetes. Defaults to ClusterIP.<br>  port: 80   <br>    # -- port: on which the kubernetes service is exposed<br>  containerPort: 8080<br>    # -- Port number on which the container is accepting traffic.<br>  targetPort: 8080<br><br><br>volume:<br>  enabled: true<br>  mountPath: /etc/vigil.cfg<br><br><br># secret:<br>#   enabled: true<br>#     # -- secrets is a map that specifies the Secret resources that should be exposed to the main application container.           <br>#   secrets: {}<br>#     # KEY: &quot;value&quot;<br><br>secretConfig: |-<br><br>    [server]<br><br>    log_level = &quot;debug&quot;<br>    inet = &quot;0.0.0.0:8080&quot;<br>    workers = 4<br><br>    manager_token = &quot;REPLACE_THIS_WITH_A_VERY_SECRET_KEY&quot;<br>    reporter_token = &quot;REPLACE_THIS_WITH_A_SECRET_KEY&quot;<br><br>    [assets]<br><br>    path = &quot;./res/assets/&quot;<br><br>    [branding]<br><br>    page_title = &quot;Clouddrove Status&quot;<br>    page_url = &quot;https://status.clouddrove.com&quot;<br>    company_name = &quot;Clouddrove Inc.&quot;<br>    icon_color = &quot;#1972F5&quot;<br>    icon_url = &quot;https://avatars.githubusercontent.com/u/76146656?s=200&amp;v=4&quot;<br>    logo_color = &quot;#1972F5&quot;<br>    logo_url = &quot;https://clouddrove.com/assets/images/logo.png&quot;<br>    website_url = &quot;https://clouddrove.com/&quot;<br>    support_url = &quot;mailto:support@crisp.chat&quot;<br>    custom_html = &quot;&quot;<br><br>    [metrics]<br><br>    poll_interval = 120<br>    poll_retry = 2<br><br>    poll_http_status_healthy_above = 200<br>    poll_http_status_healthy_below = 400<br><br>    poll_delay_dead = 10<br>    poll_delay_sick = 5<br><br>    poll_parallelism = 4<br><br>    push_delay_dead = 20<br><br>    push_system_cpu_sick_above = 0.90<br>    push_system_ram_sick_above = 0.90<br><br>    script_interval = 300<br><br>    script_parallelism = 2<br><br>    local_delay_dead = 40<br><br>    [notify]<br><br>    startup_notification = true<br>    reminder_interval = 300<br>    reminder_backoff_function = &quot;linear&quot;<br>    reminder_backoff_limit = 3<br><br>    [notify.slack]<br><br>    hook_url = “&lt;Slack webhook URL&gt;&quot;<br>    mention_channel = true<br><br>    [probe]<br><br>    [[probe.service]]<br>    id = &quot; Redis Service &quot;<br>    label = &quot;Redis cache&quot;<br><br>    [[probe.service.node]]<br>    id = &quot; Redis Health Endpoint &quot;<br>    label = &quot;Redis Cache&quot;<br>    mode = &quot;poll&quot;<br>    replicas = [<br>      &quot;tcp://my-redis-master.vigil.svc.cluster.local:6379&quot;<br>    ]<br><br>    [[probe.service]]<br>    id = &quot; DB &quot;<br>    label = &quot;PSQL Database&quot;<br><br>    [[probe.service.node]]<br><br>    id = &quot; DB Health Endpoint &quot;<br>    label = &quot;DB health&quot;<br>    mode = &quot;script&quot;<br>    scripts = [<br>      &#39;&#39;&#39;<br>      apk update<br>      apk --no-cache add postgresql-client<br><br>      PG_HOST=&quot;my-postgresql.vigil.svc.cluster.local&quot;<br>      PG_PORT=&quot;5432&quot;<br><br>      # Check PostgreSQL status using pg_isready (No username/password required)<br>      if pg_isready -h &quot;$PG_HOST&quot; -p &quot;$PG_PORT&quot; &gt;/dev/null 2&gt;&amp;1; then<br>          echo &#39;{&quot;status&quot;: &quot;up&quot;, &quot;message&quot;: &quot;PostgreSQL is ready&quot;}&#39;<br>          exit 0<br>      else<br>          echo &#39;{&quot;status&quot;: &quot;down&quot;, &quot;message&quot;: &quot;PostgreSQL is not responding&quot;}&#39;<br>          exit 2<br>      fi<br><br>      &#39;&#39;&#39;<br>    ] <br><br>    [[probe.service]]<br>    id = &quot; Nginx Server &quot;<br>    label = &quot;Nginx Server&quot;<br><br>    [[probe.service.node]]<br>    id = &quot; Nginx EndPoint &quot;<br>    label = &quot;Nginx Server&quot;<br>    mode = &quot;poll&quot;<br>    http_method = &quot;GET&quot;<br>    replicas = [&quot;http://nginx-service.vigil.svc.cluster.local:80&quot;]</pre><p>Apply all the manifest</p><pre>helm upgrade –install vigil vigil -f vigil/vars/custom-values.yaml -n vigil --create-namespace</pre><p>If the deployment is successful, then you can see the pod are running</p><pre>NAME                    READY  STATUS   RESTARTS   AGE<br>my-postgresql-0         1/1   Running     0        162m<br>my-redis-master-0       1/1   Running     0        54m<br>my-redis-replicas-0     1/1   Running     0        54m<br>my-redis-replicas-1     1/1   Running     0        53m<br>my-redis-replicas-2     1/1   Running     0        53m<br>nginx                   1/1   Running     0        55m<br>vigil-58f56474dd-vrdnk  1/1   Running     0        2s</pre><p>You can check the Vigil pod on a browser with port-forwarding, OR set up your own domain with vigil like <strong>status.clouddrove.com</strong></p><pre>kubectl port-forward svc/vigil 8080:80</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jNyyLDuwx2umML43" /></figure><p>As soon as you apply the deployment manifest, you will receive a slack notification of healthy status</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/0*SYJpLn8iMIOTjnRL" /></figure><p>As soon as any service goes down, you will get notifications like below</p><p>Database Goes down:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/0*Fp1ICgVr24YKOLZO" /></figure><p>Nginx Server goes down:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/0*97ey2bQNI-p289gb" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qzTrN7VZr0OTxua1" /></figure><p>This is how you can monitor the production workloads and get slack and any notifications as soon as any service gets down.</p><p>Let’s understand the <strong>config.cfg</strong> file:</p><p>You can add your branding in config, like logo, company name, and page URL and so on,</p><pre>    [branding]<br><br>    page_title = &quot;Clouddrove Status&quot;<br>    page_url = &quot;https://status.clouddrove.com&quot;<br>    company_name = &quot;Clouddrove Inc.&quot;<br>    icon_color = &quot;#1972F5&quot;<br>    icon_url = &quot;https://avatars.githubusercontent.com/u/76146656?s=200&amp;v=4&quot;<br>    logo_color = &quot;#1972F5&quot;<br>    logo_url = &quot;https://clouddrove.com/assets/images/logo.png&quot;<br>    website_url = &quot;https://clouddrove.com/&quot;<br>    support_url = &quot;support@clouddrove.com&quot;<br>    custom_html = &quot;&quot;</pre><p>You can change the settings that are used to send notifications like <strong>poll_interval </strong>and <strong>poll_retry </strong>and so on.</p><pre><br>  [metrics]<br><br>  poll_interval = 120<br>  poll_retry = 2<br><br>  poll_http_status_healthy_above = 200<br>  poll_http_status_healthy_below = 400<br><br>  poll_delay_dead = 10<br>  poll_delay_sick = 5<br><br>  poll_parallelism = 4<br><br>  push_delay_dead = 20<br><br>  push_system_cpu_sick_above = 0.90<br>  push_system_ram_sick_above = 0.90<br><br>  script_interval = 300<br><br>  script_parallelism = 2<br><br>  local_delay_dead = 40</pre><p>You can add support of Slack and email and many more messaging app.</p><pre>  [notify]<br><br>  startup_notification = true<br>  reminder_interval = 300<br>  reminder_backoff_function = &quot;linear&quot;<br>  reminder_backoff_limit = 3<br><br>  [notify.slack]<br><br>  hook_url = &quot;https://hooks.slack.com/&quot;<br>  mention_channel = true</pre><p>There are some services which doesn’t have a service url, like Azure Redis Cache Service, Azure flexible PostgreSQL database service or any other in-built service provided by cloud providers. You can use mode as scripts and write a bash script for regular monitoring the service.</p><pre>[[probe.service.node]]<br><br>  id = &quot;DB&quot;<br>  label = &quot;DB health&quot;<br>  mode = &quot;script&quot;<br>  scripts = [<br>    &#39;&#39;&#39;<br>    apk update<br>    apk --no-cache add postgresql-client<br><br>    PG_HOST=&quot;my-postgresql.vigil.svc.cluster.local&quot;<br>    PG_PORT=&quot;5432&quot;<br><br>    # Check PostgreSQL status using pg_isready (No username/password required)<br>    if pg_isready -h &quot;$PG_HOST&quot; -p &quot;$PG_PORT&quot; &gt;/dev/null 2&gt;&amp;1; then<br>        echo &#39;{&quot;status&quot;: &quot;up&quot;, &quot;message&quot;: &quot;PostgreSQL is ready&quot;}&#39;<br>        exit 0<br>    else<br>        echo &#39;{&quot;status&quot;: &quot;down&quot;, &quot;message&quot;: &quot;PostgreSQL is not responding&quot;}&#39;<br>        exit 2<br>    fi<br><br>    &#39;&#39;&#39;<br>  ]</pre><p>For more info about config.cfg, follow this link below: <a href="https://github.com/valeriansaliou/vigil/tree/master">https://github.com/valeriansaliou/vigil/tree/master</a></p><p>So here we conclude with blogs with the following line</p><p><em>“The future belongs to those who can adapt fastest. With these DevOps practices, you’re not just adapting — you’re setting the pace.”</em></p><blockquote>For hassle-free Cloud Management with DevOps at the center of the process, contact us at <a href="/service/mailto:hello@clouddrove.com">hello@clouddrove.com</a></blockquote><p><strong><em>About the author:</em></strong></p><p><a href="https://ravimalvia.medium.com/"><strong><em>Ravi Malvia</em></strong></a><em> is a passionate DevOps engineer and Cloud enthusiast who believes in the power of curiosity, continuous learning, and community-driven growth. With a solid foundation in cloud infrastructure, automation, and Kubernetes, Ravi brings a problem-solving mindset to every challenge — balancing precision with creativity.<br>He’s driven by a love for building secure, scalable systems and enjoys getting his hands dirty with tools like Terraform, ArgoCD, Prometheus, and other modern cloud-native stacks. What truly sets him apart is his willingness to go the extra mile — not just in solving technical problems, but in helping others grow by sharing insights, writing thoughtful blogs, and simplifying complex ideas for everyone.<br>For Ravi, DevOps isn’t just a job — it’s a journey of learning, experimenting, and building smarter, together.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dd838c0b656" width="1" height="1" alt=""><hr><p><a href="https://blog.clouddrove.com/imagine-never-missing-a-critical-service-outage-again-even-while-youre-sleeping-9dd838c0b656">“Imagine never missing a critical service outage again — even while you’re sleeping”</a> was originally published in <a href="https://blog.clouddrove.com/">CloudDrove</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Prowler Findings to JIRA via AWS Security Hub (Part 2: Implementation Guide)]]></title>
            <link>https://blog.clouddrove.com/automating-prowler-findings-to-jira-via-aws-security-hub-part-2-implementation-guide-c998d407a042?source=rss-1440a28d9d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c998d407a042</guid>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[jira]]></category>
            <category><![CDATA[prowler]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[hubsecurity]]></category>
            <dc:creator><![CDATA[CloudDrove]]></dc:creator>
            <pubDate>Fri, 02 May 2025 03:32:28 GMT</pubDate>
            <atom:updated>2025-05-02T09:07:51.085Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*7f3TyTL9en2mXuCoCgfMnA.png" /><figcaption>Automating AWS Security with Prowler &amp; Security Hub</figcaption></figure><h3>Overview</h3><p>Now that we understand the importance of automating security alerts and the key tools involved from our previous blog, <strong>Automating Prowler Findings to JIRA via AWS Security Hub (Part 1: Overview &amp; tools)</strong>, it’s time to implement them. <br>In this section, we’ll walk through the <strong>integration of Prowler, AWS Security Hub, AWS Lambda, and Jira</strong> to create an automated security alerting system.</p><h3>How It Works: From Findings to Fixes</h3><ul><li><strong>Prowler runs an AWS security scan</strong> and generates findings.</li><li><strong>AWS Lambda processes the findings</strong> and formats them into Jira issues.</li><li><strong>Lambda pushes the findings to Jira</strong> via the Jira API.</li><li><strong>Jira assigns tickets to the security team</strong> for remediation.</li><li><strong>Teams track, resolve, and close issues</strong> within Jira, ensuring a structured response.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*Dl7L1tqZYxwLvLs90NpBLg.png" /></figure><p><strong>Example:</strong></p><ul><li>Trigger Lambda when a new Prowler report is generated.</li><li>Parse the security findings and categorize them.</li><li>Utilize the Jira API to create issues dynamically.</li><li>Log progress in CloudWatch for monitoring.</li></ul><h3>Prerequisites:</h3><ul><li><strong>Jira API Access</strong>: You need a JIRA account, API token, and the project key where issues will be created.</li><li><strong>Terraform</strong>: For automating Lambda deployment.</li></ul><p>Before running the Lambda function, ensure you have <strong><em>Security Hub with Prowler configured</em></strong>.</p><h4>For Single account setup:</h4><p>For the single configuration, checkout the <a href="https://github.com/clouddrove/prowler-securityhub-jira-integration">GitHub repository.</a></p><h4>For multiple account setup:</h4><p>This GitHub Actions workflow automates a <strong>Prowler security assessment</strong> across multiple AWS accounts. The scan results are sent to <strong>AWS Security Hub (Security Account)</strong> for centralized visibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*FzgbP2u478PyGiJ4KPKA2Q.jpeg" /></figure><p>For multiple accounts configuration, check out the <a href="https://github.com/clouddrove/prowler-securityhub-jira-integration">GitHub repository</a>.</p><h3>Terraform Resources Overview</h3><ul><li><strong>IAM Role:</strong> Grants Lambda access to Security Hub and CloudWatch Logs.</li><li><strong>Lambda Function:</strong> Processes Prowler findings and creates Jira issues.</li><li><strong>CloudWatch Event Rule:</strong> Triggers Lambda on new security findings.</li><li><strong>Lambda Permission:</strong> Allows CloudWatch Events to invoke Lambda.</li><li>For all configurations, step by step, refer to this<a href="https://github.com/clouddrove/prowler-securityhub-jira-integration"> <strong>repository.</strong></a></li></ul><h3>Environment Variables Required for Lambda function</h3><ul><li>JIRA_URL: Jira URL (default: <a href="https://abc-team-example.atlassian.net/">https://abc-team-example.atlassian.net</a>)</li><li>JIRA_EMAIL: Jira user email</li><li>JIRA_API_TOKEN: Jira API Token for authentication</li><li>JIRA_PROJECT_KEY: Jira Project Key</li><li>FILTER_ACCOUNTS: Comma-separated list of AWS account IDs to filter findings.</li><li>FILTER_REGIONS: Comma-separated list of AWS regions to filter findings (default: us-east-1)</li><li>FILTER_SEVERITY: Comma-separated list of severity levels to filter findings.</li><li>FILTER_PRODUCT: Comma-separated list of products (ex: Prowler).</li></ul><h3>Step-by-Step Lambda Function Code Explanation</h3><p>Check out the <a href="https://github.com/clouddrove/prowler-securityhub-jira-integration/blob/master/lambda-code-explaination.pdf">PDF: Lambda code explanation</a> for a detailed lambda code explanation of how the Lambda function works.</p><h3>Final Jira Tickets look:</h3><p>After complete configuration, the JIRA issue will look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pjghYg6WgbTGr4GXOgt2Rw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*313gPrRZv67f8WxFAGRIkg.png" /></figure><h3>Further Reading &amp; Resources</h3><p>To dive deeper into Prowler, AWS Lambda automation, and Jira integration, check out these resources:</p><ul><li><a href="https://github.com/clouddrove/prowler-securityhub-jira-integration">Github Repo</a></li><li><a href="https://github.com/prowler-cloud/prowler">Prowler Official Documentation</a></li><li><a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">AWS Lambda Documentation</a></li><li><a href="https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#version">Jira REST API Guide</a></li></ul><p>By continuously improving security automation, we can enhance cloud security to be more proactive and manageable. Happy automating! 🚀</p><blockquote>For hassle-free Cloud Management with DevOps at the center of the process, contact us at <a href="/service/mailto:hello@clouddrove.com">hello@clouddrove.com</a></blockquote><p><strong><em>About the Author</em></strong><br><a href="https://medium.com/@22lavanya11"><strong><em>Lavanya Sharma</em></strong></a> is DevSecOps and Cloud enthusiast with a pleasing, youthful personality and a zest for learning and innovation. She has a strong foundation in backend development with Python and is passionate about automating secure, scalable infrastructure, with a keen interest in emerging tools and a willingness to take on challenges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c998d407a042" width="1" height="1" alt=""><hr><p><a href="https://blog.clouddrove.com/automating-prowler-findings-to-jira-via-aws-security-hub-part-2-implementation-guide-c998d407a042">Automating Prowler Findings to JIRA via AWS Security Hub (Part 2: Implementation Guide)</a> was originally published in <a href="https://blog.clouddrove.com/">CloudDrove</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Findings to Fixes — Part 1: Automating AWS Security with Prowler & Security Hub]]></title>
            <link>https://blog.clouddrove.com/from-findings-to-fixes-part-1-automating-aws-security-with-prowler-security-hub-5d386a017957?source=rss-1440a28d9d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d386a017957</guid>
            <category><![CDATA[jira]]></category>
            <category><![CDATA[aws-security]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[prowler]]></category>
            <dc:creator><![CDATA[CloudDrove]]></dc:creator>
            <pubDate>Fri, 18 Apr 2025 09:01:20 GMT</pubDate>
            <atom:updated>2025-04-18T09:12:27.226Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automating Prowler Findings to JIRA via AWS Security Hub (Part 1: Overview &amp; tools)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*NMiH2S4eqIVo7KX7B8LIYg.png" /><figcaption>Automating Prowler Findings with AWS Security Hub Using JIRA</figcaption></figure><h3>Introduction</h3><p>Automating security alerts is no longer a luxury — it’s a necessity. With <strong><em>cyber threats becoming more sophisticated</em></strong>, organizations need real-time threat detection, rapid response mechanisms, and reduced manual effort. By leveraging automation, businesses can improve security posture, ensure compliance, and stay ahead of potential breaches.</p><h3>Why Automate Security Alerts?</h3><p>In today’s digital landscape, organizations face an ever-growing number of security threats. <br>Manual security monitoring is no longer sufficient to detect and mitigate risks effectively. Automating security alerts not only enhances threat detection but also reduces response time, ensuring a more resilient security posture.</p><h4>Benefits of Automating Security Alerts:</h4><ul><li><strong>Real-Time Threat Detection — Cyberattacks occur in seconds, and manual threat monitoring often results in delayed responses</strong>. Automated security alerts provide<strong><em> instant notifications</em></strong> when <strong><em>suspicious activity</em></strong> is detected, enabling security teams to respond in real-time.</li><li><strong>Reduced Incident Response Time—<em>Organizations can streamline incident response by integrating automated alerts with Security Information and Event Management (SIEM) tools</em></strong>.</li><li><strong>Minimizing Human Error — </strong>Security teams that manage alerts manually may overlook critical warnings due to fatigue or oversight. Automation ensures that every <strong><em>threat is logged, analyzed, and addressed </em></strong>without relying on human intervention.</li><li><strong>Improved Compliance &amp; Audit Readiness — </strong>Automated security alerts help maintain compliance by ensuring <strong><em>timely detection, logging, and reporting of security incidents. </em>Scalability for Growing Businesses — </strong>As businesses grow, so do their attack surfaces. Automated security alerting systems can scale effortlessly with increasing workloads and infrastructure without additional human resources.</li></ul><h3>Understanding the Components:</h3><h3>Prowler</h3><p><strong>Prowler</strong> is an Open-Source security tool to perform AWS, Azure, Google Cloud Platform, and Kubernetes security best practices assessments, audits, incident response, continuous monitoring, hardening and forensics readiness, and also remediations! <br>We have Prowler CLI (Command Line Interface), which we call <strong><em>Prowler Open-Source,</em></strong> and a service on top of it, which we call <a href="https://prowler.com/">Prowler Cloud</a>.</p><h4>Why Use Prowler for AWS Security?</h4><ul><li><strong>Misconfiguration Detection</strong> — Identifies security gaps in AWS services such as S3, IAM, EC2, RDS, and more.</li><li><strong>Compliance Auditing</strong> — Maps AWS security best practices against various compliance frameworks.</li><li><strong>Multi-Account &amp; Multi-Region Scanning</strong> — Allows security teams to assess security across multiple AWS accounts and regions.</li><li><strong>Customizable &amp; Extensible</strong> — Supports custom checks tailored to an organization’s security requirements.</li><li><strong>Integration with SIEM &amp; Automation Tools</strong> —It can be integrated with AWS Security Hub, Splunk, and other SIEM platforms for enhanced threat visibility.</li><li><strong>Lightweight &amp; CLI-Based</strong> — Simple command-line interface for quick security scans without complex setup.</li></ul><h3>AWS Security Hub:</h3><p>AWS Security Hub is a cloud security service that provides a <strong>centralized view of security findings</strong> across an AWS environment. It <strong>aggregates, analyzes, and prioritizes security alerts</strong> from multiple AWS services, third-party security tools, and compliance frameworks, enabling organizations to maintain a robust security posture.</p><h4>Why Use AWS Security Hub?</h4><ul><li><strong>Unified Security Monitoring</strong> — Collects and consolidates security findings from AWS services like GuardDuty, Inspector, Macie, and tools like Prowler.</li><li><strong>Compliance Automation</strong> — Continuously evaluates AWS environments against security standards.</li><li><strong>Threat Prioritization &amp; Insights</strong> — Uses machine learning and automation to categorize and rank security risks based on severity.</li><li><strong>Automated Remediation with AWS Config &amp; Lambda</strong> — Enables automated security responses by integrating with AWS Config rules and Lambda functions.</li><li><strong>Cross-Account &amp; Multi-Region Visibility</strong> — Provides a <strong>single-pane-of-glass</strong> security overview for organizations managing multiple AWS accounts.</li><li><strong>Security Findings Format (AWS Security Finding Format — ASFF)</strong> — Standardizes security alerts, making it easier to integrate findings.</li></ul><h3>AWS Lambda:</h3><p>AWS Lambda is a <strong>serverless computing service</strong> that allows you to run code automatically in response to events, eliminating the need for manual triggers or provisioning infrastructure. It enables <strong>event-driven automation</strong>, improving efficiency, scalability, and cost-effectiveness.</p><h4>Why Use AWS Lambda?</h4><p>1. <strong>Automates Event-Driven Processing — </strong>AWS Lambda seamlessly integrates with AWS services.</p><ul><li><strong>Execute security automation</strong> when an AWS Security Hub finding is detected.</li></ul><p>2. <strong>Removes the Need for Manual Intervention — </strong>Lambda functions execute <strong>automatically</strong> without human involvement, reducing operational overhead. This is useful for:</p><ul><li>Automated backups &amp; data processing</li><li>Real-time security monitoring &amp; threat detection</li><li>Auto-scaling microservices</li></ul><p>3. <strong>Cost-Effective &amp; Pay-as-You-Go Model — </strong>AWS Lambda charges only for the<strong> compute time used</strong>, making it ideal for intermittent workloads. There are <strong>no costs for idle resources</strong>, unlike traditional servers.</p><p>4. <strong>Highly Scalable &amp; Serverless — </strong>Lambda <strong>automatically scales</strong> based on incoming requests or events, handling millions of executions without managing infrastructure. This makes it perfect for:</p><ul><li>API-driven applications</li><li>Log processing &amp; analytics</li><li>IoT event handling</li></ul><h3>JIRA:</h3><p>Security alerts are only valuable if they lead to action. Integrating AWS security findings with <strong>JIRA</strong> helps security teams <strong>track, prioritize, and remediate issues efficiently</strong> by converting alerts into actionable issues.</p><h4>Why Use Jira?</h4><ol><li><strong>Automatically creates a JIRA issue</strong> for each risk Prowler finding.</li><li><strong>Add priority levels</strong> based on severity (Critical, High, Medium, Low).</li><li><strong>Attach relevant details</strong> (affected resource, AWS account, compliance impact).</li></ol><h3>Conclusion &amp; Next Steps:</h3><p>Tools like <strong>Prowler, AWS Security Hub, AWS Lambda, and Jira</strong> work together to create a seamless security automation workflow, enabling teams to proactively manage risks.</p><p>Stay tuned, we will cover <strong>step-by-step implementation and configurations </strong>to ensure a robust security posture. As we dive into Part Two&#39;s <strong>technical setup and automation workflow</strong>! 🚀 .</p><blockquote>For hassle-free Cloud Management with DevOps at the center of the process, contact us at <a href="/service/mailto:hello@clouddrove.com">hello@clouddrove.com</a></blockquote><p><strong><em>About the author:<br></em></strong><a href="https://medium.com/@22lavanya11"><strong><em>Lavanya Sharma</em></strong></a><strong><em> </em></strong>is DevSecOps and Cloud enthusiast with a pleasing, youthful personality and a zest for learning and innovation. She has a strong foundation in backend development with Python and is passionate about automating secure, scalable infrastructure, with a keen interest in emerging tools and a willingness to take on challenges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d386a017957" width="1" height="1" alt=""><hr><p><a href="https://blog.clouddrove.com/from-findings-to-fixes-part-1-automating-aws-security-with-prowler-security-hub-5d386a017957">🔍From Findings to Fixes — Part 1: Automating AWS Security with Prowler &amp; Security Hub</a> was originally published in <a href="https://blog.clouddrove.com/">CloudDrove</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Case Study: Implementing WireGuard VPN for Secure Remote Access]]></title>
            <link>https://blog.clouddrove.com/case-study-implementing-wireguard-vpn-for-secure-remote-access-56a031b5a1dd?source=rss-1440a28d9d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/56a031b5a1dd</guid>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[remote-access-solutions]]></category>
            <category><![CDATA[secure]]></category>
            <category><![CDATA[wireguard]]></category>
            <dc:creator><![CDATA[CloudDrove]]></dc:creator>
            <pubDate>Mon, 14 Oct 2024 10:41:54 GMT</pubDate>
            <atom:updated>2024-11-12T13:22:18.073Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Previously on our blog:</strong> We kicked off this series by breaking down the fundamentals of WireGuard and why it’s a game-changer for VPN solutions in our post, <a href="https://medium.com/clouddrove/wiregaurd-the-split-tunnel-vpn-60a6ac6daddd"><strong>WireGuard — The Split Tunnel VPN</strong></a>. If you haven’t read it yet, it’s a great primer on what makes WireGuard stand out compared to other protocols like Pritunl and OpenVPN.</p><p><strong>In this Part,</strong> we’re taking it further with a hands-on <strong>case study</strong> that shows how to <strong>implement WireGuard for secure remote access</strong>. This real-world example will guide you through configuring and deploying WireGuard, addressing common challenges, and achieving a seamless, secure connection for remote teams.</p><p><strong>An American client with a global presence required four distinct environments: development (Dev), Production (Prod), Main, and Disaster Recovery (DR). Each environment required its own VPN setup to ensure secure and reliable connectivity. However, this approach was proving costly and complex.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/0*qN5P-Cd0wf-VjXRj" /></figure><p>Maintaining four separate VPNs meant spending approximately <strong>$200/month</strong> on licensing and maintenance. The traditional VPN solution, based on IPsec, was not only expensive but also complicated to manage. Each environment had its own VPN configuration, and the complexity was overwhelming for the IT team. Frequent connectivity issues further exacerbated the problem, consuming valuable resources and impacting overall productivity.</p><p><a href="https://clouddrove.com/"><strong>CloudDrove</strong></a><strong> </strong>assisted this client by implementing WireGuard VPN, which offered several advantages:</p><ul><li><strong>Cost Reduction:</strong> WireGuard’s lower licensing fees and simplified maintenance led to significant cost savings. The reduced need for IT resources further contributed to decreased overall expenses.</li><li><strong>Modern Encryption:</strong> WireGuard uses advanced cryptographic protocols like Curve25519 and ChaCha20, providing strong security.</li><li><strong>Simplicity:</strong> With a minimalistic design, WireGuard simplifies configuration and reduces the potential for security vulnerabilities.</li><li><strong>High Performance:</strong> WireGuard is optimized for speed, offering lower latency and better network throughput compared to older VPN technologies.</li></ul><h4><a href="https://clouddrove.com/">CloudDrove</a> created the following implementation plan, including checklists for prerequisites, server-side configuration, and client-side configuration.</h4><h3>Prerequisites</h3><ol><li>Amazon <strong>EC2</strong> instance (client was on AWS)</li><li>Allow <strong>UDP 51820</strong> in the server security group.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*Ncj7EAmizs4Tf-WC" /></figure><h3>Server Side Configurations</h3><ul><li>SSH into the Ec2 ubuntu server; after logging into the machine, check the machine IP is up to date with the following commands:</li></ul><pre>$ sudo apt-get update &amp;&amp; sudo apt-get upgrade</pre><ul><li>Now install Wireguard using the following command.</li></ul><pre>$ sudo apt-get install wireguard</pre><p><strong>Generating the public and private Keys</strong></p><ul><li>A key pair consists of a public key shared with another party for encrypting messages, ensuring they can only be decrypted with the corresponding private key. For <strong><em>bidirectional security</em></strong>, each party must possess its keypair, as each pair allows only one-way messaging.</li><li>Before generating the keypair, change the directory, <em>Switch to the root user</em><strong>,</strong> and run the following command.</li></ul><pre>$ cd /etc/wireguard/</pre><ul><li>Now, run the following command to generate the public and private keys on the server.</li></ul><pre>$ wg genkey | sudo tee /etc/wireguard/private.key | wg pubkey | sudo tee /etc/wireguard/public.key</pre><ul><li>Run the <strong><em>Cat</em></strong> command to see the content of public and private keys.</li></ul><pre>$ cat privatekey<br>$ cat publickey</pre><ul><li>We need to enable packet forwarding, and then we can connect through your Wireguard server. To do this, we need to edit this and uncomment the following field. <strong><em>Shown below image:</em></strong></li></ul><pre>$ sudo nano /etc/sysctl.conf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/0*_O8UfcQshawifM3G" /></figure><ul><li>After that, run the following command to apply, and you will get the output below.</li></ul><pre>$ sysctl -p</pre><ul><li>Run the following command to modify permission for all the files and subdirectories in the /etc/wireguard directory.</li></ul><pre>$ sudo chmod -R 600 /etc/wireguard/</pre><p><strong>Create a Server configuration file.</strong></p><ul><li>Create the config file by running the following command:</li></ul><pre>$ sudo nano /etc/wireguard/wg0.conf</pre><ul><li>You might need to check your default network interface name and replace it with the config below. Replace it in the following field shown in the image below.</li></ul><pre>$ ip route list default</pre><p><strong>Add the following directives to the configuration file:</strong></p><pre>[Interface]<br>Address = 192.168.0.1/24<br>PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o ens5 -j MASQUERADE<br>PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o ens5 -j MASQUERAD<br>ListenPort = 51820<br>PrivateKey = iBde8Q5vsYI95QppVJfgiu+t0hBQUGNrBXycGMUnd1Y= # key from /etc/wireguard/private.key</pre><pre># client that needs to be added for multiple users.<br>[peer] # User1<br>PublicKey = qKptmx1fr4Y1eBCkQZL2/8NeJO/ejhgrtyub77ookk= # Client public key need to be added for User1<br>AllowedIPs = 192.168.0.2/32 # Client IP that need to be assigned<br>[peer] # User2<br>PublicKey = qKptmx1fr4Y1eBCkQZL2/8NeJO/eoOuaf1Jnvz8cTi0= # Client public key need to be added for User2<br>AllowedIPs = 192.168.0.3/32 # Client IP that need to be assigned<br>[peer] # User3<br>PublicKey = qKptmx1fr4Y1eBCkQZL2/8NeJO/eoOuafjhhgrfdqww= # Client public key need to be added for User3<br>AllowedIPs = 192.168.0.4/32 # Client IP that need to be assigned</pre><p><strong>Note: </strong>Below is an example of private IP ranges</p><ul><li><strong>10.0.0.0/8 IP addresses:</strong> 10.0.0.0–10.255.255.255</li><li><strong>172.16.0.0/12 IP addresses: </strong>172.16.0.0–172.31.255.255</li><li><strong>192.168.0.0/16 IP addresses:</strong> 192.168.0.0–192.168.255.255</li></ul><p><em>Your VPC CIDR and server address range are different from each other</em><strong>.</strong> <strong><em>For example,</em></strong> if your VPC CIDR is <strong>10.0.0.0, </strong>So this CIDR is reserved for your VPC and is not used in the address block of the server configuration; you will use either <strong>172.16.0.0 or 192.168.0.0.</strong></p><p><strong>Interface</strong>: This section configures the properties of the WireGuard interface.</p><ul><li><strong>Address: </strong>Specifies the <strong>IP address</strong> and <strong>subnet mask</strong> for the interface. Here, it’s set to 192.168.0.1/24 with a subnet mask of 192.168.255.255 (/24).</li><li><strong>PostUp: </strong>Specifies commands to execute after the interface is brought up. In this case, it adds firewall rules to allow forwarding of traffic and perform NAT using iptables.</li><li><strong>PostDown: </strong>Specifies commands to execute before the interface is brought down. It removes the firewall rules added in the PostUp section.</li><li><strong>ListenPort: </strong>Specifies the port on which the interface listens for incoming connections. Here, it’s set to 51820.</li><li><strong>PrivateKey: </strong>Specifies the private key used for encryption and authentication.</li></ul><p><strong>Peer:</strong> This section defines a peer (client) that will connect to the WireGuard interface.</p><ul><li><strong>PublicKey:</strong> Specifies the peer&#39;s public key, which is, used for encryption and authentication.</li><li><strong>Allowed IPs: </strong>Specifies the IP address range, that this peer is allowed to communicate with. Here, it’s set to 192.168.0.2/32, indicating that only the IP address 192.168.0.2 is assigned to this peer.</li></ul><p><strong>Starting WireGuard and enabling it at boot</strong></p><pre>$ sudo systemctl start wg-quick@wg0.service # start service<br>$ sudo systemctl enable wg-quick@wg0.service # start service in boot</pre><h3>Client-side configurations</h3><p><strong>Set up the Client configuration on Ubuntu.</strong></p><ul><li>Use this command to install the WireGuard on the Client side.</li></ul><pre>$ sudo apt-get install wireguard</pre><ul><li>Generating the public and private Keys</li></ul><pre>$ wg genkey | tee privatekey | wg publickey &gt; publickey</pre><ul><li>Create the config file by running the following command:</li></ul><pre>$ sudo nano /etc/wireguard/wg0.conf</pre><ul><li>Add the following directives to the configuration file:</li></ul><pre>[Interface]<br>PrivateKey = 2IDUA9KTuQKAiQYmpbN21iTyUbvnnqOAc7k8BmWo538= # from /etc/wireguard/privatekey<br>Address = 192.168.0.3/32 # Client IP that needs to be assigned. e.g. same as peer.allowed IPs used in the wireguard server configuration for each client user.<br>[Peer]<br>PublicKey = gF4d/c+vEWrYgbudWw02Fg3j0xlJcCvWA0Uuio+FTGI= # public key of the server<br>AllowedIPs = 10.20.0.0/16<br>Endpoint = 3.215.1.124:51820<br>PersistentKeepalive = 15</pre><ul><li>To start the connection, run the following command.</li></ul><pre>$ sudo wg-quick up wg0</pre><h4>Results Achieved</h4><ol><li><strong>Reduced Complexity:</strong> Simplified VPN management reduced IT configuration and maintenance time by 40%, allowing IT staff to focus on other priorities.</li><li><strong>Scalability:</strong> The new VPN solution scaled effortlessly with the growing remote workforce, avoiding the complexities of the previous system.</li><li><strong>Cost Savings:</strong> Lower maintenance and support costs were realized, contributing to overall cost savings and a more efficient use of resources.</li></ol><p>After implementing WireGuard VPN, the organization saw a dramatic reduction in both costs and complexity. The new solution unified the VPN requirements for all <strong>four environments — Dev, Prod, Main, and DR </strong>— into a single, easy-to-manage system. The significant cost savings allowed the company to reallocate resources more effectively. The IT team could now focus on more strategic tasks, confident that their remote access was secure and efficient.</p><blockquote>For hassle-free Cloud Management with DevOps at the center of the process, contact us at <a href="/service/mailto:hello@clouddrove.com">hello@clouddrove.com</a></blockquote><p><strong><em>About the author:<br></em></strong><a href="https://medium.com/@ankit.kumar_58285/about"><strong><em>Ankit Kumar,</em></strong></a><em> is a technology enthusiast dedicated to enhancing digital experiences through automation and innovative solutions. With a background in cloud computing and DevOps, he leverages open-source tools to build scalable and efficient systems. He is passionate about continuous improvement and enjoys exploring new technologies while sharing insights to help others optimize their workflows.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56a031b5a1dd" width="1" height="1" alt=""><hr><p><a href="https://blog.clouddrove.com/case-study-implementing-wireguard-vpn-for-secure-remote-access-56a031b5a1dd">Case Study: Implementing WireGuard VPN for Secure Remote Access</a> was originally published in <a href="https://blog.clouddrove.com/">CloudDrove</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The importance of continuous monitoring & observability in DevOps: a CloudDrove perspective]]></title>
            <link>https://blog.clouddrove.com/the-importance-of-continuous-monitoring-observability-in-devops-a-clouddrove-perspective-81c9fcf2c6a5?source=rss-1440a28d9d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/81c9fcf2c6a5</guid>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[monitoring]]></category>
            <dc:creator><![CDATA[CloudDrove]]></dc:creator>
            <pubDate>Mon, 30 Sep 2024 11:41:02 GMT</pubDate>
            <atom:updated>2024-09-30T12:18:19.423Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3zhoX1AQVqFZqucz" /></figure><p>As microservices, containers, and cloud environments are becoming the new norm in the industry, traditional monitoring tools alone are falling short for complete monitoring &amp; observability. While monitoring helps track metrics, observability offers a deeper level of insight into the inner workings of your applications, infrastructure, and systems. It’s not just about seeing what’s happening; deeper interpretation is equally important. Let’s explore how CloudDrove harnessed these concepts and benefited one of the clients.</p><h4>Monitoring vs. Observability: Understanding the Difference</h4><p><strong>Monitoring</strong> has always been an important piece of the puzzle, but it only tells part of the story. It typically involves collecting and analyzing<strong><em> Key Performance Indicators (KPIs)</em></strong> such as CPU usage, memory consumption, or request rates. This is useful for identifying when something goes wrong but often lacks the depth needed to diagnose the underlying causes.</p><p><strong>Observability</strong> takes things further by providing insights into the<strong><em> “why”</em></strong> behind the metrics. It’s about exploring and understanding the internal state of your systems based on the data they produce. This deeper visibility enables teams to troubleshoot, diagnose, and resolve issues more effectively, ultimately helping maintain system performance and reliability.</p><p><strong>CloudDrove suggests three setup steps for enhancing observability for clients:</strong></p><p><strong>1. Implementing the Right Tools</strong></p><ul><li><strong>Prometheus</strong>: This open-source system is ideal for collecting and alerting on time-series data. It’s particularly effective in cloud-native environments, especially when paired with Kubernetes, allowing us to monitor and manage dynamic applications effectively.</li><li><strong>Grafana</strong>: Known for its powerful visualization capabilities, Grafana allows us to create detailed dashboards that track performance metrics and system behaviour. Combined with Prometheus, Grafana offers intuitive, actionable insights into your system’s health.</li><li><strong>ELK Stack (Elasticsearch, Logstash, Kibana)</strong>: We deploy the ELK Stack for advanced log management and analysis. This suite helps in analyzing logs from multiple services, providing deep insights and facilitating troubleshooting in complex systems.</li></ul><p><strong>2. Enabling End-to-End Tracing</strong></p><ul><li>For clients using complex microservices architectures, we use tools like <strong>Jaeger</strong> and <strong>Zipkin</strong> for end-to-end tracing. These tools help track the complete lifecycle of a request as it travels through various services, making it easier to identify performance bottlenecks and resolve issues that are difficult to diagnose otherwise.</li></ul><p><strong>3. Setting Up Alerts and Automated Response</strong></p><p>Effective observability also involves proactive monitoring and incident management. At CloudDrove, we focus on:</p><ul><li><strong>Real-Time Alerts</strong>: Configuring alerts to notify you immediately when metrics exceed thresholds or when anomalies are detected, ensuring timely awareness of potential issues.</li><li><strong>Automated Remediation</strong>: Integrating tools that automate responses to common issues to minimize downtime and maintain system stability.</li></ul><h4>Real-World Impact: How CloudDrove Transformed Client Success through Monitoring &amp; Observability</h4><p>Let us share an example of how<strong> CloudDrove </strong>assisted a Canadian client with a complex microservices architecture using Kubernetes. The client faced challenges with application performance and occasional outages. Their existing monitoring setup only provided high-level alerts and lacked the detailed insights necessary for effective troubleshooting.</p><p>We followed the steps for setting up observability for the client’s setup. This helped them gain a clearer understanding of their system’s behaviour. They quickly identified and addressed performance bottlenecks, reduced downtime, and enhanced overall service reliability. This transformation not only boosted their operational efficiency but also improved their user experience. Our tailored approach allowed the client to maintain high uptime, directly assisting their online business.</p><blockquote>For hassle-free Cloud Management with DevOps at the center of the process, contact us at <a href="/service/mailto:hello@clouddrove.com">hello@clouddrove.com</a></blockquote><p><strong><em>About the author: </em><br></strong><a href="https://medium.com/@nikhil.baghel"><strong><em>Nikhil Baghel</em></strong></a><em> is a cloud and DevOps enthusiast focused on creating efficient, scalable systems that drive operational excellence. With a strong foundation in automation and open-source tools, he is passionate about optimizing workflows and improving system reliability. He enjoys staying on top of emerging technologies and sharing actionable insights to help teams evolve and thrive in the digital space.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81c9fcf2c6a5" width="1" height="1" alt=""><hr><p><a href="https://blog.clouddrove.com/the-importance-of-continuous-monitoring-observability-in-devops-a-clouddrove-perspective-81c9fcf2c6a5">The importance of continuous monitoring &amp; observability in DevOps: a CloudDrove perspective</a> was originally published in <a href="https://blog.clouddrove.com/">CloudDrove</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WireGaurd — the split tunnel VPN]]></title>
            <link>https://blog.clouddrove.com/wiregaurd-the-split-tunnel-vpn-60a6ac6daddd?source=rss-1440a28d9d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/60a6ac6daddd</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[wireguard]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[CloudDrove]]></dc:creator>
            <pubDate>Mon, 23 Sep 2024 10:46:01 GMT</pubDate>
            <atom:updated>2024-11-12T13:24:41.233Z</atom:updated>
            <content:encoded><![CDATA[<h3>WireGaurd — the split tunnel VPN</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/0*nSIkGghy2E2WcHJN" /></figure><p>WireGuard has emerged as a leading VPN solution thanks to its efficiency, security, and ease of use. As VPN technologies evolve, WireGuard offers a modern approach with faster connections, robust security, and simplified configurations compared to traditional options.</p><h4><strong>So, what does WireGuard entail?</strong></h4><p>The innovative VPN protocol WireGuard aims to transform our understanding of virtual private networks completely. Faster connections, robust security, and an easy-to-use configuration process are just a few of its many wonderful advantages over other VPN options. To elaborate:</p><ul><li><strong>Enhanced Performance:</strong> WireGuard’s efficient design allows for faster connection speeds and lower latency compared to older VPN protocols, including OpenVPN.</li><li><strong>Increased Security:</strong> WireGuard offers superior protection against potential threats and vulnerabilities utilizing state-of-the-art cryptographic algorithms.</li><li><strong>Cross-Platform Compatibility:</strong> WireGuard is compatible with various operating systems such as Linux, Windows, macOS, Android, and iOS, facilitating widespread adoption across different devices.</li><li><strong>Simplified Setup:</strong> The protocol’s easy-to-use configuration process reduces the complexity often associated with VPN setups, making it accessible even for users with limited technical knowledge.</li><li><strong>Streamlined Setup </strong>— It has fewer setup choices and is straightforward to use. Without requiring extensive technical knowledge or skill, users may quickly and easily set it up.</li></ul><blockquote>If you’re already familiar with WireGuard and its advantages over OpenVPN and Pritunl, feel free to jump directly to our comprehensive guide on <a href="https://blog.clouddrove.com/case-study-implementing-wireguard-vpn-for-secure-remote-access-56a031b5a1dd"><strong>Case Study: Implementing WireGuard VPN for Secure Remote</strong></a><strong> </strong>to start deploying your VPN solution without delay.</blockquote><h3>Comparison with other VPN Protocols</h3><h4>OpenVPN vs. WireGuard</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l41BCr8cHaG2CA1P9a8J7w.jpeg" /></figure><p><strong>OpenVPN:</strong></p><ul><li><strong>Reputation:</strong> OpenVPN is well-regarded for its robust security and flexibility. It supports a wide range of configurations and has a strong track record in the VPN space.</li><li><strong>Complexity:</strong> However, OpenVPN can be complex to configure and manage, particularly for organizations without specialized IT resources. Its extensive options and flexibility often lead to complicated setups.</li></ul><p><strong>WireGuard:</strong></p><ul><li><strong>Performance Improvements:</strong> WireGuard’s streamlined codebase and efficient architecture result in faster connection speeds and reduced latency compared to OpenVPN. This performance enhancement is crucial for real-time applications and tasks requiring high-speed data transfer.</li><li><strong>Simplified Configuration:</strong> Unlike OpenVPN’s intricate setup process, WireGuard offers a more straightforward configuration experience. This ease of use is particularly beneficial for organizations looking to minimize administrative overhead and deployment time.</li></ul><h4>Pritunl vs. WireGuard</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*geOsq2Ad2-2elrv4CCufIg.jpeg" /></figure><p><strong>Pritunl:</strong></p><ul><li><strong>Feature-Rich but Complex:</strong> Pritunl VPN provides a broad range of advanced features designed for complex and scalable deployments. However, these features often require extensive configuration, which can be challenging for users without specialized IT knowledge. The depth of customization available can lead to a more complicated setup process.</li><li><strong>Cost Considerations:</strong> Many of Pritunl’s advanced functionalities are available only through paid subscriptions, which can become quite costly. This subscription model may be a deterrent for organizations looking for a more budget-friendly solution.</li><li><strong>Deployment and Management:</strong> While Pritunl offers a robust feature set, its complexity and cost can make it less appealing for organizations seeking a simple and cost-effective VPN solution. Advanced configuration and ongoing management can require significant IT resources.</li></ul><p><strong>WireGuard:</strong></p><ul><li><strong>Performance Improvements:</strong> WireGuard is known for its streamlined architecture and efficient codebase, leading to faster connection speeds and lower latency than Pritunl. This performance boost is particularly beneficial for real-time applications and high-speed data transfers.</li><li><strong>Simplified Configuration:</strong> One of WireGuard’s significant advantages is its straightforward setup process. Unlike Pritunl’s complex configuration, WireGuard offers an intuitive and easy-to-use configuration experience. This simplicity is especially valuable for organizations with limited technical resources, as it reduces the administrative overhead and accelerates deployment.</li><li><strong>Cost-Efficiency:</strong> WireGuard’s open-source nature means it is free to use, making it an attractive alternative for organizations concerned about costs. Unlike Pritunl, WireGuard does not require subscriptions for advanced features, providing a robust and cost-effective solution.</li></ul><p>For those interested in implementing WireGuard for their VPN needs, our detailed blog on <a href="https://blog.clouddrove.com/case-study-implementing-wireguard-vpn-for-secure-remote-access-56a031b5a1dd"><strong>Case Study: Implementing WireGuard VPN for Secure Remote Access</strong></a><strong> </strong>offers step-by-step instructions to help you get started quickly and efficiently.</p><p>See you there … 🚀😃</p><blockquote>For hassle-free Cloud Management with DevOps at the center of the process, contact us at <a href="/service/mailto:hello@clouddrove.com">hello@clouddrove.com</a></blockquote><p><strong><em>About the author:<br></em></strong><a href="https://medium.com/@ankit.kumar_58285/about"><strong><em>Ankit Kumar</em></strong></a><strong><em>,</em></strong><em> is a technology enthusiast dedicated to enhancing digital experiences through automation and innovative solutions. With a background in cloud computing and DevOps, he leverages open-source tools to build scalable and efficient systems. He is passionate about continuous improvement and enjoys exploring new technologies while sharing insights to help others optimize their workflows.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60a6ac6daddd" width="1" height="1" alt=""><hr><p><a href="https://blog.clouddrove.com/wiregaurd-the-split-tunnel-vpn-60a6ac6daddd">WireGaurd — the split tunnel VPN</a> was originally published in <a href="https://blog.clouddrove.com/">CloudDrove</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup Advance & Secure SFTP server on AWS]]></title>
            <link>https://blog.clouddrove.com/setup-advance-secure-sftp-server-on-aws-eded47155dce?source=rss-1440a28d9d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/eded47155dce</guid>
            <category><![CDATA[highly-available]]></category>
            <category><![CDATA[clouddrove]]></category>
            <category><![CDATA[securedsftp]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-network]]></category>
            <dc:creator><![CDATA[CloudDrove]]></dc:creator>
            <pubDate>Fri, 22 Mar 2024 12:29:15 GMT</pubDate>
            <atom:updated>2024-03-26T12:16:44.097Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*age7lk6SWs06aVuuD4J91Q.jpeg" /></figure><p>Hey, Tech Wizards! Let’s embark on a journey to make SFTP setup as breezy as a summer day — and yes, we’re throwing AWS S3 into the mix! Why not? Imagine your data dancing securely in the cloud while you enjoy a cup of coffee. Sounds dreamy, right? Let’s sprinkle some tech magic into this step-by-step guide!</p><h3>Overview</h3><p>Before learning how to set this up, let’s briefly understand SFTP and the reason behind choosing S3 for this example. Furthermore, learn about added security measures and the use of Route 53 for traffic management.</p><h4>What is SFTP exactly?</h4><p>At its core,<strong> SFTP </strong>stands for Secure File Transfer Protocol, and it’s essentially a fortified version of its older sibling, <strong>FTP</strong> (File Transfer Protocol).</p><p>Unlike FTP, SFTP addresses security concerns by encrypting the entire communication session <em>(preventing unauthorized access and eavesdropping)</em>; secure authentication methods and simplified port usage <em>make it an ideal choice for organizations and individuals</em> looking to safeguard sensitive information during file transmissions.</p><h4>Why choose S3 for the Backend?</h4><p>In a strategic move, by choosing S3, with two identical EC2 instances for SFTP, S3 ensures seamless storage and data consistency. As a native AWS service, S3 offers scalability, durability, and integration advantages, making it the optimal choice for our high-availability setup.</p><h4>How to manage SFTP servers and traffic</h4><p>Using Amazon Route 53, with two weighted records, each set at 50%, traffic is efficiently distributed to dual SFTP servers whenever the designated URL is accessed.</p><p>This approach optimizes performance and enhances infrastructure redundancy. Both SFTP servers, identical in content due to the mounted AWS S3 storage, provide a consistent experience, irrespective of the directed server. This intelligent traffic management system, coupled with S3’s synchronized data, guarantees a reliable and responsive file transfer environment for users accessing the SFTP services. A single user can seamlessly access both servers with the same authentication method, unaware of the intricacies happening behind the scenes. This user-centric approach ensures simplicity and uniformity, making the file transfer experience intuitive and hassle-free.</p><h4>Fortifying SFTP</h4><p>To enhance the security posture of our SFTP EC2 instances, we’re adopting a proactive approach. Instead of the default SSH port 22, we’ve opted for a randomized port (7890), to reduce vulnerability, making it less predictable for potential intruders.</p><blockquote>Port 22 is explicitly enabled only in security group and instance firewall settings, limiting access.</blockquote><p>SFTP servers reside in a dedicated VPC, isolating them from the primary network. This isolation ensures that even in a worst-case scenario, the impact is contained, safeguarding the other critical services. This combination of port diversification, access restrictions, and network isolation strengthens our SFTP infrastructure, adhering to robust security practices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*fXpTS0YA9_pZdbhQtLbEbQ.png" /><figcaption>Highly Available SFTP Infrastructure</figcaption></figure><p><strong><em>Now, let’s get the ball rolling!</em></strong></p><h3>Setup</h3><p>Let’s dive into the practical aspect of our SFTP setup. We will begin with networking setup (such as VPC, Subnets, Security groups, etc.), followed by EC2 instances.</p><h4>Networking</h4><ul><li>Create a basic network for the EC2 instance and ensure that incoming internet traffic is enabled. Create a VPC, Subnet, Security Group, and Internet Gateway and update subnet route tables to route internet traffic through the Internet Gateway.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9KxzloagLx7I9VDK" /></figure><h4>Create AWS EC2 Servers</h4><p>We will create two static Public IPs for the SFTP servers so that we can use that static public IP in the DNS part. If a static IP is used, it will not be changed, and we don’t have to worry about dynamically allocated public IPs for the SFTP servers.</p><p>Permit the EC2 instances to access the bucket for the SFTP server endpoint by creating an AWS custom Policy and AWS Role.</p><p><strong>Create an IAM Role having the below Policy permissions:</strong></p><pre>{<br> “Statement”: [<br>     {<br>         “Action”: [<br>             “s3:*”,<br>             “s3-object-lambda:*”<br>         ],<br>         “Effect”: “Allow”,<br>         “Resource”: “arn:aws:s3:::*”<br>     }<br> ],<br> “Version”: “2012–10–17”<br>}</pre><p><strong>Note:</strong> Change &lt;bucket-name&gt; with your Bucket Name to permit a specific bucket.</p><p>Now, we will create ec2 instances with the same network configurations using Terraform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3Fjh7uou4qWtbc-S" /></figure><p>We have to change the default SSH Port from 22 to 7890, for we will use user_data configuration to update the default SSH port using the below user data configuration:</p><pre>module “ec2_sftp” {<br>  source = &quot;clouddrove/ec2/aws&quot; # Visit Clouddrove Terraform Page for more custom terraform modules for all Cloud Providers.<br>  version = &quot;2.0.2&quot;<br><br>  #Instance<br>  instance_count = 2<br>  assign_eip_address = true<br>  associate_public_ip_address = true<br><br>  # Shell script to change default port<br>  user_data = file(&quot;path/of/script.sh&quot;)<br><br>  instance_profile_enabled = true<br>  iam_instance_profile = &quot;sftp-role&quot; # Change this with your actual Role Name.<br><br>  ... (More Configurations)<br><br>}<br></pre><p><strong><em>./path/of/script.sh</em></strong></p><pre>#!/bin/bash<br><br>sudo apt-get update<br>sudo cat &lt;&lt;EOT &gt;&gt; /etc/ssh/sshd_config<br>Port 1122<br>EOT<br>sudo service sshd restart</pre><blockquote><strong>Note:</strong> The above file is used to set up default port 7890 and attach it with EC2 User_data so that while spinning up the cluster, this script will run and update the default port accordingly.</blockquote><p>Now Create an S3 for SFTP Endpoint so that when the user accesses the SFTP server, all objects of the S3 bucket can be accessible as a result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BMOdhSc0Pqn4Gv_n" /></figure><p><strong>Gotcha</strong>! Your SFTP server and S3 Bucket are ready to go.</p><h4>Configuration</h4><p>CloudDrove has created an Ansible Role to quickly help in setting up SFTP, Users/Group, s3fs/s3fuse and mount directories with an S3 bucket.</p><ul><li>Use <a href="https://github.com/clouddrove/ansible-role-s3-sftp"><strong>this</strong></a> Ansible Role to Setup all Prerequisites before moving ahead with this blog.</li></ul><pre>ansible-galaxy role install clouddrove.s3-sftp</pre><p>Here is the default/main, which you can configure according to the requirements:</p><pre>---<br># Default file for ansible-role-s3-sftp<br><br># SFTP Group<br>sftp_groups:<br>  - name: sftpusers                  # A group of Users<br>    default_directory_enabled: true<br>    default_directory_path: /%u<br>    sftp_allow_passwords: false<br>    sftp_enable_logging: false<br>sftp_enable_key_based_auth: true<br><br># Create SFTP Users<br>sftp_users:<br>  - name: testuser<br>    group: sftpusers<br>    shell: /sbin/nologin                      # This will prevent ssh login for this User, only SFTP Login will be allowed<br>    extra_dir: /home/testuser/testuser        # A path where S3 bucket will be mount<br>    key: &quot;ssh-rsa &lt;your_key&gt; key-pair-name&quot;   # Create SSH key and use here or use default `~/.ssh/id_rsa.pub` Here<br><br># S3FS setup<br>s3fs:<br>  version: 1.94<br>  buckets:<br>    - bucket: clouddrove-sftp-bucket          # Name of S3 Bucket<br>      mountpoints: /home/testuser/testuser    # MountPath to mount s3 bucket that we just passed while creating user<br>      options:<br>        - endpoint=us-east-1     # Optional<br>        - nonempty               # Optional<br>        - use_cache=/tmp<br>        - mp_umask=002     # Optional<br>        - allow_other<br>        - multireq_max=5<br>        - iam_role=sftp-role-testing-role       # Update this IAM role with created IAM role to access s3 bucket from the server or provide `accessKeyId` and `secretAccessKey`.</pre><p>Explaining each argument of s3fs.buckets.bucket</p><ul><li><strong>bucket: </strong>Name of target S3 bucket.</li><li><strong>mountpoints: </strong>Specifies the local directory path where the S3 bucket will be mounted. In this case, <em>/home/testuser/testuser</em></li><li><strong>options.allow_other: </strong>Grants permission for other users to access the mounted S3 bucket</li><li><strong>options.endpoint=us-east-1: </strong>Defines the AWS region endpoint; adjust this according to your specific AWS region</li><li><strong>options.use_cache=/tmp: </strong>Specifies a local cache directory for enhancing performance</li><li><strong>options.uid=1001: </strong>Sets the user ID for the mounted S3 bucket; if you want to know the ID of user, then run this command: <em>id &lt;user_name&gt;</em> e.g. <em>id clouddrove</em>, the output will display uid and related information regarding the user.</li><li><strong>options.mp_umask=002: </strong>Applies a specific umask value to control access permissions</li><li><strong>options.multireq_max=5: </strong>Determines the maximum number of parallel requests that can be made to S3</li><li><strong>options.iam_role=”sftp-role”: </strong>Associates an AWS Identity and Access Management (IAM) role (sftp-role in this case) for secure authentication</li><li><strong>options.nonempty: </strong>Allows mounting on a non-empty directory</li></ul><p>Using these S3FS options, you establish a secure and efficient connection between your SFTP users’ home directory and the specified S3 bucket.</p><p>Follow these steps for both servers to ensure simultaneous functionality and access for users with identical configurations across both.</p><blockquote>Hurray! Your SFTP servers are now primed and synchronized. The next step involves configuring Route53 DNS Records to efficiently route all incoming requests to your EC2 Instances.</blockquote><h4>Update DNS to split traffic</h4><p>In the AWS account,</p><ul><li>Route53 needs to be configured &amp; seamlessly synced with the existing DNS provider.</li><li>With this solid foundation in place, our next step is to craft DNS records imbued with weighted policy, orchestrating traffic distribution between both SFTP instances.</li></ul><p>Within the Route53 console, we’ll create two weighted record sets, both pointing to our SFTP domain (e.g., sftp.example.com). Each record set will correspond to one of our EC2 instances, with a weight of 50 assigned to each.</p><p>This means that incoming requests to our SFTP domain will be evenly split between our EC2 instances, effectively optimizing resource utilization and enhancing overall system availability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yATLiMwo2w1enQHH" /></figure><p><em>We can identify records by their Record ID and pass value according to the Public IP of the Instance.</em></p><h3>Accessing SFTP Server</h3><p>Open your terminal and navigate to your home directory. Locate or create the .ssh directory, where your SSH configuration files reside. Within this directory, open or create a file named <strong><em>config</em></strong> using your preferred text editor.</p><p>Add the following configuration to <em>~/.ssh/config</em> file:</p><pre>Host sftp.clouddrove.ca<br> HostName sftp.clouddrove.ca<br> StrictHostKeyChecking no<br> IdentitiesOnly yes</pre><p><strong><em>Note: </em></strong><em>This configuration tells SSH to connect to sftp.clouddrove.ca and bypass strict host key checking while using only the specified identities (SSH keys). Change Host and Hostname according to your Route53 Record.</em></p><p>With the SSH configuration updated, you can now access your SFTP servers using the sftp command.</p><pre>sftp -P 7890 -i my-sftp-key.pub clouddrove@sftp.clouddrove.com</pre><p>You will see the pop-up appear like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f-K9vojeLv49OypH" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/0*2re--yhA-SCYOEgd" /></figure><p>Cheers! 🍻 That’s It; we are done…</p><blockquote>For hassle-free Cloud Management with DevOps at the center of the process, contact us at <a href="/service/mailto:hello@clouddrove.com">hello@clouddrove.com</a></blockquote><p><strong><em>About the author:<br> </em></strong><a href="https://medium.com/@nilesh.gadgi"><strong><em>Nilesh Gadgi</em></strong></a><em>, I like automating, building scalable pipelines, and improving and optimizing systems. I am a Strong Advocate for open source, Cloud computing, DevOps, Innovation and Automation.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eded47155dce" width="1" height="1" alt=""><hr><p><a href="https://blog.clouddrove.com/setup-advance-secure-sftp-server-on-aws-eded47155dce">Setup Advance &amp; Secure SFTP server on AWS</a> was originally published in <a href="https://blog.clouddrove.com/">CloudDrove</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rocket.Chat Helm Chart Deployment]]></title>
            <link>https://blog.clouddrove.com/rocket-chat-helm-chart-deployment-88bcc216f369?source=rss-1440a28d9d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/88bcc216f369</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[helm]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[rocket-chat]]></category>
            <dc:creator><![CDATA[CloudDrove]]></dc:creator>
            <pubDate>Wed, 13 Mar 2024 10:16:00 GMT</pubDate>
            <atom:updated>2024-03-26T12:16:54.500Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*vt-cApkCj1oi-GWT.png" /></figure><p>Hope, you have already gone through with our <a href="https://blog.clouddrove.com/rocket-chat-on-microservices-5d40a58c8f92">previous blog</a>, where we set up the complete infrastructure to deploy Rocketchat on the Kubernetes cluster. Our infrastructure includes AWS: VPC, Subnet, EFS, EKS, ACM, and an external MongoDB Atlas. We have also created an OIDC-IAMRole to authenticate and authorize our GitHub repository to create resources on AWS via GitHub-Action CICD.</p><p>In this part of the post, we will -</p><ul><li>Setup Rocketchat helm chart with storageClass &amp; override-values.</li><li>Setup GitHub-Action CICD to deploy helm chart on AWS EKS.</li><li>Walkthrough to Rocketchat dashboard.</li><li>Clean up the resources that have been created.</li></ul><h3>Helm Chart deployment on AWS EKS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/0*-P0-4rt_e9cXBc-l.png" /><figcaption>Helm Deployment on AWS-EKS</figcaption></figure><p>It is recommended to pull the chart in local and use it in production, as remote-charts keeps getting changed else you can use the versioned remote chart.</p><pre>helm repo add rocketchat https://rocketchat.github.io/helm-charts<br>helm pull rocketchat/rocketchat --untar</pre><p>As discussed in the <a href="https://blog.clouddrove.com/rocket-chat-on-microservices-5d40a58c8f92">previous post</a>, <strong>the directory structure</strong> we are following for GitHub-Actions and helm chart is as follows -</p><pre>rocketchat<br>├── .github<br>│     └── workflows<br>│          └── rocketchat-helmchart.yml<br>└── helmchart<br>    └── rocketchat<br>         ├──templates<br>         │    └── storageClass.yaml # -- to use EFS as PVC, storageClass does not come by default.<br>         └── config<br>              └── override-values.yaml</pre><p>The default helm chart of rocketchat does not contain a <strong><em>storageClass.yaml</em></strong> file, which we will need, to use AWS EFS as a <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#:~:text=A%20PersistentVolumeClaim%20(PVC)%20is%20a,and%20PVCs%20consume%20PV%20resources.">PersistentVolumeClaim</a> (PVC). Below is the storageClass.yaml, update AWS EFS ID in the “<strong><em>fileSystemId:”</em></strong> variable.</p><pre>kind: StorageClass<br>apiVersion: storage.k8s.io/v1<br>metadata:<br>  name: efs-rocketchat<br>provisioner: efs.csi.aws.com<br>parameters:<br>  provisioningMode: efs-ap<br>  fileSystemId: fs-a1b2c3d4x5y6z7 # (Sensitive)<br>  directoryPerms: &quot;700&quot;</pre><p>We are also overriding default <strong><em>values.yaml</em></strong> by creating a new file <strong><em>override-values.yaml</em></strong> with below content, here we are passing a <strong><em>connection-string </em></strong>and<strong><em> username-password</em></strong> to connect with our MongoDB database and <strong><em>ARN of AWS ACM</em></strong> to be used by Ingress -</p><pre>#---------------------------------------------------------------------------#<br># Using hardcoded credentials in values.yaml is not recommended.            #<br># We are using GitHub-Actions secrets for storing such details.             #<br># These details are marked as (Sensitive) below.                            #<br>#---------------------------------------------------------------------------#<br><br># -- (Optional) To schedule rocketchat pod on application-nodes.<br>affinity:<br>  nodeAffinity:<br>    requiredDuringSchedulingIgnoredDuringExecution:<br>      nodeSelectorTerms:<br>      - matchExpressions:<br>        - key: &quot;eks.amazonaws.com/nodegroup&quot;<br>          operator: In<br>          values:<br>          - &quot;application-nodes&quot;<br><br><br># -- (Required) To use external MongoDB Atlas as database for Rocket.Chat<br>externalMongodbUrl: mongodb+srv://rocketchat:a1b2c3d4@rocketchat.1x2x3x.mongodb.net/rocketchat # (Sensitive)<br>externalMongodbOplogUrl: mongodb+srv://rocketchat:a1b2c3d4@rocketchat.1x2x3x.mongodb.net/local?replicaSet=rs0&amp;authSource=admin # (Sensitive)<br><br><br># -- (Required) enabled is set to false, as we are not using a pod for database.<br># -- This section also contains database details, such as username and password<br>mongodb:<br>  enabled: false<br>  auth:<br>    rootPassword: <br>      - a1b2c3d4 # (Sensitive)<br>    passwords: <br>      - a1b2c3d4 # (Sensitive)<br>    usernames:<br>      - rocketchat<br>    databases:<br>      - rocketchat<br>  persistence:<br>    enabled: false<br>    storageClass: &quot;efs-rocketchat&quot;<br><br>##<br>persistence:<br>  enabled: true<br>  storageClass: &quot;efs-rocketchat&quot;<br><br><br># -- Using AWS Application Load Balancer to send traffic to Ingress.<br>ingress:<br>  enabled: true<br>  pathType: ImplementationSpecific<br>  annotations:     <br>    kubernetes.io/ingress.class: alb<br>    alb.ingress.kubernetes.io/group.name: ingress<br>    alb.ingress.kubernetes.io/target-type: ip<br>    alb.ingress.kubernetes.io/scheme: internet-facing<br>    alb.ingress.kubernetes.io/listen-ports: &#39;[{&quot;HTTP&quot;: 80},{&quot;HTTPS&quot;: 443}]&#39;<br>    alb.ingress.kubernetes.io/actions.ssl-redirect: &#39;{&quot;Type&quot;: &quot;redirect&quot;, &quot;RedirectConfig&quot;: { &quot;Protocol&quot;: &quot;HTTPS&quot;, &quot;Port&quot;: &quot;443&quot;, &quot;StatusCode&quot;: &quot;HTTP_301&quot;}}&#39;<br>    alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-1:ACCOUNT_ID:certificate/xxxxx-xxxx-xxxx-xxxx # (Sensitive)<br>    alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-TLS-1-2-Ext-2018-06<br>  path: /*<br>  ssl: <br>    enabled: false<br>  tls: {}<br>host: rocketchat.clouddrove.ca # -- Update this and specify website URL where you want to access rocketchat dashboard.<br><br>service:<br>  type: ClusterIP<br>  port: 3000<br><br><br># # # # # # # # # # # # # # # # #<br>#   M I C R O S E R V I C E S   #<br>#  Only available to E.E users  #<br># # # # # # # # # # # # # # # # #<br><br>## Deploy as microservices?<br># Monolithic architecture, by default<br>microservices:<br>  enabled: true</pre><p>To follow DevOps best practices, we are automating the deployment of the Rocketchat Helm chart on AWS EKS by using CloudDrove’s reusable Helm<a href="https://github.com/clouddrove/github-shared-workflows/blob/master/docs/helm.md"> GitHub Actions workflow</a>.</p><p>To setup the GitHub Action workflow, create a <strong><em>rocketchat-helmchart.ym</em></strong>l file under the <strong><em>.github/workflows/</em></strong> directory of your GitHub repository with the below content -</p><pre>name: rocketchat helm chart deployment<br>permissions: write-all<br>on:<br>  push:<br>    branches: [ master ] # -- Primary branch of github-repository.<br>  workflow_dispatch:<br>jobs:<br>  rocketchat-helmchart:<br>    uses: clouddrove/github-shared-workflows/.github/workflows/helm.yml@master<br>    with:<br>      provider:               aws<br>      eks-cluster-name:       rocketchat-eks-cluster # -- Created in part1 of this blog.<br>      aws_region:             us-east-1<br>      release-name:           rocketchat<br>      namespace:              rocket-chat<br>      helm-chart-directory:   helmchart/rocketchat/<br>      values-file-path:       helmchart/rocketchat/config/override-values.yaml<br>      timeout:                10m<br>      history-max:            4<br>    secrets:<br>      BUILD_ROLE: ${{ secrets.OIDC_IAM_ROLE }}      <br>      set-parameters: &quot;--set externalMongodbUrl=&#39;${{ secrets.EXTERNAL_MONGODB_URL }}&#39; --se</pre><p>Above helmchart workflow will be triggered when we push code to the <strong><em>master</em></strong> branch and will upgrade/install the provided helmchart on AWS EKS without any approval. We can also trigger it manually without changing/pushing code to the master branch as we are using <strong><em>workflow_dispatch</em></strong> option.</p><p>Update following variables in above helmchart workflow -</p><ul><li><strong>aws-region</strong> : AWS region code where AWS-EKS cluster is present.</li><li><strong>eks-cluster-name</strong> : Name of the AWS-EKS cluster.</li><li><strong>release-name</strong> : Helm release name for the Rocket.Chat.</li><li><strong>namespace</strong> : Name of the namespace where the helm chart will be deployed.</li><li><strong>helm-chart-directory</strong> : Path to directory where helm chart for Rocket.Chat is present.</li><li><strong>values-file-path</strong> : Path to override-values.yaml, as we are overriding default value for helmchart else provide path of default values.yaml.</li></ul><p>To follow security best practices we are saving secrets in GitHub-Actions secret instead of passing them hardcoded in override-values.yaml file of helm chart.</p><p>Add following secrets in repository secrets (refer to <a href="https://blog.clouddrove.com/rocket-chat-on-microservices-5d40a58c8f92">part1 for more details</a> about these secrets) -</p><ul><li><strong><em>EXTERNAL_MONGODB_URL</em></strong>: contains the value of externalMongodbUrl created from mongodb connection string.</li><li><strong><em>EXTERNAL_MONGODB_OPLOGURL</em></strong>: contains the value of externalMongodbOplogUrl created from mongodb connection string.</li><li><strong><em>EFS_FILESYSTEM_ID</em></strong>: contains the value of aws efs id created using terraform.</li><li><strong><em>MONGODB_ROOT_PASSWORD</em></strong>: contains the value of rocketchat mongodb user.</li><li><strong><em>MONGODB_PASSWORDS</em></strong>: contains the value of rocketchat mongodb user.</li><li><strong><em>CERTIFICATE_ARN</em></strong>: contains ARN of AWS ACM (certificate) created using terraform.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*fd87pDwhB1O3TDXI" /></figure><p>Push the code to the GitHub repository on <strong>master</strong> branch to trigger GitHub Action for helm chart deployment.</p><h3>Verify Helm Chart Deployment</h3><ol><li>List rocketchat helmchart on EKS cluster, you should be seeing STATUS as deployed.</li></ol><pre># -- Update kubeconfig to access the AWS EKS cluster<br>$ aws eks update-kubeconfig --name rocketchat-eks-cluster --region us-east-1<br><br><br>$ helm list -n rocket-chat<br>NAME         NAMESPACE    REVISION   UPDATED                                  STATUS    CHART              APP VERSION<br>rocketchat   rocket-chat  1          2024-02-26 20:10:18.261412405 +0530 IST  deployed  rocketchat-6.2.1   6.2.1</pre><p>2. List the pods, you should be seeing STATUS as Running for rocketchat pods</p><pre>$ kubectl get pods -n rocket-chat<br>NAME                                        READY   STATUS      RESTARTS    AGE <br>rocketchat-account-6b955f8f8d-2rvs5         1/1     Running     0           10m<br>rocketchat-authorization-65c46dc85d-rj79m   1/1     Running     0           10m<br>rocketchat-ddp-streamer-7c5b6d5b68-8nt8g    1/1     Running     0           10m<br>rocketchat-nats-0                           3/3     Running     0           10m<br>rocketchat-nats-box-754c4dfd87-r7tx         1/1     Running     0           10m  <br>rocketchat-presence-647458947b-8656         1/1     Running     0           10m<br>rocketchat- rocketchat-f6d94b7c4-k4f2l      1/1     Running     0           13m  <br>rocketchat-stream-hub-59c9776cb7-zg8fx      1/1     Running     0           13m</pre><p>3. Get the <strong>website URL</strong> where Rocket.Chat is running by listing ingress in rocket-chat namespace, website URL will be visible under <strong>HOST</strong> column.</p><pre>$ kubectl get ingress -n rocket-chat<br>NAME                   CLASS     HOSTS                       ADDRESS                                           PORTS   AGE<br>rocketchat-rocketchat  &lt;none&gt;    rocketchat.clouddrove.ca    k8s-ingress-1234567.us-east-1.elb.amazonaws.com   80      1m</pre><p>Visit the Rocket.Chat dashboard at “https://<strong><em>rocketchat.clouddrove.ca”</em></strong> (as shown in above command under HOSTS column) and perform SignUp to create your account. After setting up rocketchat account, your interface will something look like this -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*Ow6q7AtDCErXqEi5.gif" /></figure><h3>CLEANUP</h3><h4>Helm Chart</h4><p>Uninstall Rocket.Chat helm chart using</p><pre>helm uninstall rocketchat -n rocket-chat</pre><h4>Terraform</h4><p>To destroy AWS infrastructure created by terraform, update the GitHub-Action workflow file by specifying ‘<strong><em>true’</em></strong> in the ‘<strong><em>destroy:’</em></strong> field as shown below and trigger the terraform workflow from the GitHub-Actions webpage or push the changes on master (primary branch) of github-repository.</p><pre>on:<br>  push:<br>    branches: [ master ]<br>jobs:<br>  rocketchat-terraform:<br>    uses: clouddrove/github-shared-workflows/.github/workflows/terraform_workflow.yml@master<br>    with:<br>      destroy: true # - Set `true` for `terraform destroy`</pre><p><strong>Alternatively,</strong> you can destroy the AWS infrastructure from the local machine by assuming the OIDC IAMRole. To do so, first configure awscli by your IAMUser Security-Credentials and assume the iam-role, then run terraform destroy to delete complete infrastructure created using terraform -</p><pre>aws configure<br>export $(printf &quot;AWS_ACCESS_KEY_ID=%s AWS_SECRET_ACCESS_KEY=%s AWS_SESSION_TOKEN=%s&quot; $(aws sts assume-role - role-arn arn:aws:iam::ACCOUNT_ID:role/rocketchat-oidc - role-session-name local - query &quot;Credentials.[AccessKeyId,SecretAccessKey,SessionToken]&quot; - output text))<br>terraform -chdir=rocketchat/terraform/ destroy --auto-approve</pre><h4>MongoDB Atlas</h4><p>Terminate the Database by navigating to -</p><blockquote><em>Project0 &gt; Database &gt; three dots *** &gt; Terminate &gt; type name of database </em><strong><em>rocketchat</em></strong><em> &gt; Terminate.</em></blockquote><p><em>For hassle-free Cloud Management with DevOps at the center of the process, contact us at </em><a href="/service/mailto:hello@clouddrove.com"><em>hello@clouddrove.com</em></a></p><p><strong><em>About the author:<br> </em></strong><a href="https://medium.com/@hk10ahr"><strong><em>Himanshu Ahirwar</em></strong></a><em>, A DevOps geek in love with automation and open source.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88bcc216f369" width="1" height="1" alt=""><hr><p><a href="https://blog.clouddrove.com/rocket-chat-helm-chart-deployment-88bcc216f369">Rocket.Chat Helm Chart Deployment</a> was originally published in <a href="https://blog.clouddrove.com/">CloudDrove</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rocket.Chat on Microservices]]></title>
            <link>https://blog.clouddrove.com/rocket-chat-on-microservices-5d40a58c8f92?source=rss-1440a28d9d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d40a58c8f92</guid>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[rocket-chat]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[helm]]></category>
            <dc:creator><![CDATA[CloudDrove]]></dc:creator>
            <pubDate>Mon, 11 Mar 2024 11:19:30 GMT</pubDate>
            <atom:updated>2024-03-26T12:17:37.735Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ObhdUIfpuSyAw077nB2xHQ.png" /></figure><p>In today’s tech-savvy world, the importance of <strong>data privacy</strong> and <strong>security</strong> is ever-growing because of increased online fraud and data theft. For any enterprise, a messaging platform with an industry-standard data privacy architecture would definitely be the preferred choice to avoid financial and legal risks.</p><p><strong>Rocket.Chat</strong> offers high data protection and a real-time conversation platform across desktop, mobile, and online platforms. And guess what? You can customize even more with its open-source version, which we will deploy in this blog series.</p><p>Below, we listed some of Rocket.Chat’s key features —</p><ul><li>Encrypted messaging</li><li>Full control over data</li><li><a href="https://de.rocket.chat/blog/how-rocket-chat-collaborates-remotely#:~:text=Youtube%20%E2%80%93%20live%20streaming-,Omnichannel,-Guess%20what%3F%20With">Omnichannel</a> features</li><li>More than <a href="https://www.rocket.chat/marketplace">150 integrations</a> with other tools. (ex. MsTeams, Confluence, GitHub, GIPHY)</li><li>Advanced flexibility, customizability, and scalability options</li><li>On-premise deployment</li></ul><h3>INTRODUCTION</h3><p>In this blog series, we are setting up Production-Grade Rocket.Chat on <strong>Kubernetes</strong> with <strong>MongoDB</strong>.</p><p>We are using <strong>AWS-EKS</strong> as a managed Kubernetes service and external MongoDB Atlas as the Rocket.Chat database.</p><p>To follow DevOps best practices, we are automating all the deployments using <strong>Terraform</strong> and <strong>GitHub-Actions.</strong></p><h3>PREREQUISITES</h3><ul><li>AWS Account</li><li><a href="https://helm.sh/docs/intro/install/">Helm</a> ≥ v3.14.1</li><li><a href="https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli">Terraform</a> ≥ 1.4.6</li><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html">AWSCLI</a> ≥ 2.8.13</li><li><a href="https://kubernetes.io/docs/tasks/tools/#kubectl">Kubectl</a> ≥ v1.26.0</li></ul><h3>1. INFRASTRUCTURE DEPLOYMENT</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/0*TutSbVhl8OZ-TSNe.png" /><figcaption>Terraform AWS Infrastructure</figcaption></figure><p>To proceed with setting up the EKS cluster, we need <strong>the networking part</strong> to be set up first. To make it easy, we are using CloudDrove’s AWS Terraform modules, which are as follows: -</p><ul><li><a href="https://github.com/clouddrove/terraform-aws-acm">AWS <strong>ACM</strong></a><strong>, </strong><a href="https://github.com/clouddrove/terraform-aws-vpc">AWS <strong>VPC</strong></a><strong>, </strong><a href="https://github.com/clouddrove/terraform-aws-subnet">AWS <strong>Subnets</strong></a>, <a href="https://github.com/clouddrove/terraform-aws-security-group">AWS <strong>Security Groups</strong></a>, <a href="https://github.com/clouddrove/terraform-aws-kms">AWS <strong>KMS</strong></a>, <a href="https://github.com/clouddrove/terraform-aws-efs">AWS <strong>EFS</strong></a>, <a href="https://github.com/clouddrove/terraform-aws-eks">AWS <strong>EKS</strong></a>, <a href="https://github.com/clouddrove/terraform-aws-eks-addons">AWS <strong>EKS</strong> <strong>Addons</strong></a></li></ul><p>Deploying Terraform infrastructure on a specific AWS account requires security credentials. Instead of creating IAMUser and using its Security Credentials, we use OIDC IAMRole to follow security best practices. To learn more about OIDC IAMRole, you can refer to <a href="https://blog.clouddrove.com/github-actions-openid-connect-the-key-to-aws-authentication-dd9f66a7d31e">GitHub Action and OIDC</a>.</p><h3>IAM Identity Provider</h3><p>To allow the GitHub repository to assume this iam-role, an <strong>IAM Identity Provider</strong> of the OpenID type is required to authenticate our GitHub repository. To create IAM-Identity-Provider, login to your AWS Management Console and navigate to -</p><blockquote><em>“IAM &gt; Identity Provider &gt; Add Providers &gt; </em><strong><em>OpendID Connect</em></strong><em> &gt; Provider URL [ </em><a href="https://token.actions.githubusercontent.com/"><em>https://</em><strong><em>token.actions.githubusercontent.com</em></strong></a><em> ] &gt; Get Thumbprint &gt; Audience [ </em><strong><em>sts.amazonaws.com</em></strong><em> ] &gt; Add Provider”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*YGK0ShpaCxWlBRkg" /></figure><p>Copy the <strong>ARN</strong> of Identity-Provider created above and save it somewhere, we will need this when creating <strong>OIDC IAMRole</strong>.</p><h3>IAM Role</h3><p>To create an <strong>OIDC IAMRole,</strong> navigate to -</p><blockquote><em>“IAM &gt; Roles &gt; Create Role &gt; </em><strong><em>Custom Trust Policy</em></strong><em> (copy and paste below CTP) &gt; Next &gt; Select </em><strong><em>AdministratorAccess</em></strong><em> as Permission Policy &gt; Next &gt; Name it as </em><strong><em>rocketchat-oidc</em></strong><em> &gt; Create Role”</em></blockquote><p><strong>Custom Trust Policy</strong></p><ul><li>Insert ARN of IAM-Identity-Provider created above In the <strong><em>Principal{Federated:}</em></strong> field of <em>“</em><strong><em>Sid”:</em></strong><em> “</em><strong><em>GitHubAction.”</em></strong></li><li>Update your GitHub-organization name and GitHub-repository name In the <strong><em>Condition: {ForAnyValue:StringLike}</em></strong> field. (ref.github.com/ORG_NAME/REPO_NAME)</li></ul><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Sid&quot;: &quot;AllowIAMUser&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: {<br>                &quot;AWS&quot;: &quot;arn:aws:iam::ACCOUNT_ID:root&quot;<br>            },<br>            &quot;Action&quot;: &quot;sts:AssumeRole&quot;,<br>            &quot;Condition&quot;: {}<br>        },<br>        {<br>            &quot;Sid&quot;: &quot;GitHubAction&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: {<br>                &quot;Federated&quot;: &quot;arn:aws:iam::ACCOUNT_ID:oidc-provider/token.actions.githubusercontent.com&quot;<br>            },<br>            &quot;Action&quot;: &quot;sts:AssumeRoleWithWebIdentity&quot;,<br>            &quot;Condition&quot;: {<br>                &quot;StringEquals&quot;: {<br>                    &quot;token.actions.githubusercontent.com:aud&quot;: &quot;sts.amazonaws.com&quot;<br>                },<br>                &quot;ForAnyValue:StringLike&quot;: {<br>                    &quot;token.actions.githubusercontent.com:sub&quot;: &quot;repo:YOUR_GITHUB_ORG_OR_USERNAME/GITHUB_REPOSITRY_NAME:*&quot;<br>                }<br>            }<br>        }<br>    ]<br>}</pre><p>Copy the ARN of IAMRole and update this in GitHub-Actions secrets (make sure to update <strong><em>Maximum session duration</em></strong> to more than 1 hour in IAMRole).</p><p><strong>Add the IAMRole in GitHub-Action secrets</strong> by navigating to your GitHub repository</p><blockquote><em>Settings &gt; Secrets and Variables &gt; Actions &gt; Add repository secret &gt; Name=</em><strong><em>OIDC_AWS_ROLE</em></strong><em>, Value=ARN of IAMRole &gt; Add Secret.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*fi-43y3M-3xk6jok" /></figure><blockquote><strong><em>NOTE:</em></strong><em> If you already have your infrastructure set up, then you can move to the </em><a href="https://blog.clouddrove.com/rocket-chat-helm-chart-deployment-88bcc216f369"><strong><em>next part,</em></strong></a><strong><em> </em></strong><em>where we are deploying Rocket.Chat helm chart on the Kubernetes cluster.</em></blockquote><p><strong>For Terraform state management, </strong>we are using Amazon S3 as a storage service; please create a bucket with default settings before creating infrastructure using Terraform. In this demo, we have an S3 bucket named “rocketchat-blogpost” in the us-east-1 region and are saving the Terraform state with the name “rocketchat.tfstate.”</p><p><strong>The directory structure</strong> we are following for GitHub-actions, helmchart, and terraform is as follows -</p><pre>rocketchat<br>├── .github<br>│     └── workflows<br>│          ├── rocketchat-helmchart.yml<br>│          └── rocketchat-terraform.yml<br>├── helmchart<br>│    └── rocketchat<br>│         ├──templates<br>│         │    └── storageClass.yaml # -- to use EFS as PVC, storageClass does not come by default.<br>│         └── config<br>│              └── override-values.yaml<br>└── terraform<br>     ├── charts.tf<br>     └── main.tf</pre><p>We have divided Terraform script in the following files -</p><ul><li><strong>main.tf</strong> : This will contain all the Terraform modules of ACM, VPC, Subnets, Security-Groups, EFS, and EKS and their configurations.</li><li><strong>charts.tf</strong> : (Optional) This will contain supporting helm charts, which we are deploying using the Terraform eks-addons module. Please find more details about <a href="https://github.com/clouddrove/terraform-aws-eks-addons/tree/master/_examples">how to install eks-addons here</a>.</li></ul><p>If you want to manage the helm charts yourself, you can deploy these eks-addons on the EKS cluster using their Helm packages as well. The supporting helm charts are <em>metrics-server</em>, <em>aws-load-balancer-controller, cluster-autoscaler, and aws-efs-csi-driver.</em></p><h3>GitHub Actions CICD</h3><p><em>We are using CloudDrove’s reusable </em><a href="https://github.com/clouddrove/github-shared-workflows/blob/master/.github/workflows/terraform_workflow.yml"><em>terraform GitHub Actions workflow</em></a> to automate terraform deployment. To set-up the GitHub action workflow, create a <strong><em>rocketchat-terraform.yml</em></strong> file under the <strong><em>.github/workflows/</em></strong> directory of your GitHub repository with the below content -</p><pre>name: rocketchat terraform workflow<br>permissions: write-all<br>on:<br>  push:<br>    branches: [ master ] # -- Primary branch of github-repository.<br>  pull_request:<br>  workflow_dispatch:<br>jobs:<br>  rocketchat-terraform:<br>    uses: clouddrove/github-shared-workflows/.github/workflows/terraform_workflow.yml@master<br>    with:<br>      provider:           aws<br>      working_directory:  terraform/<br>      aws_region:         us-east-1<br>      approvers:          your-github-username<br>      timeout:            300   # -- Time to approve approve/deny step.<br>      terraform_version:  1.6.6<br>      destroy:            false # -- Set `true` for `terraform destroy`<br>    secrets:<br>      BUILD_ROLE: ${{ secrets.OIDC_IAM_ROLE }}</pre><p>The above terraform workflow will be triggered when we push code to the <strong>master</strong> branch or when a pull_request is created. By using the<strong> workflow_dispatch </strong>option, we can trigger this workflow manually without changing/pushing any code to the master branch.</p><p><strong>Update the following variables in the above terraform workflow -</strong></p><ul><li><strong>working_directory</strong>: Path to the directory where terraform scripts are present.</li><li><strong>aws_region</strong>: AWS region code where terraform will deploy infrastructure.</li><li><strong>approvers</strong>: The username of GitHub users is separated by a “comma” which will give approval for Terraform to apply</li><li><strong>timeout:</strong> This will skip the Terraform apply if the workflow doesn’t get approved within the specified timeout (300 seconds). The time can be changed as per the requirement.</li><li><strong>BUILD_ROLE</strong> — ARN of aws OIDC IAMRole that we have created above, we are using GitHub actions-secret to pass the arn of IAMRole. Add the secret to repository-secrets if you haven’t already done so.</li></ul><p>This workflow generates a <strong>GitHub issue</strong> before the apply or destroy step with a required plan. In the GitHub issue, if we comment, approve, or lgtm, the workflow will proceed to the next step. However, if we comment deny, the workflow will be cancelled. The GitHub issue will be closed automatically in either action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*O0hQB8Tw8FWG3V_c" /></figure><h3>MongoDB Atlas</h3><p>We are using external mongoDB database, to create one follow below steps-</p><ol><li>Login to mongoAtlas Account from<a href="https://account.mongodb.com/account/login"> <strong>here</strong></a>.</li><li>After login, create a project. Usually mongoAtlas creates a default project named <strong>Project 0</strong> for you.</li><li>Click and go inside of <strong>Project 0</strong></li><li>Navigate to <strong>Database</strong> from the left hand sidebar</li><li>Click on <strong>Build a Database</strong></li><li>Selecting <strong>M0 FREE</strong> database for demonstration, but choose as per your requirement.</li><li>Select the <strong>region</strong> as <strong>N. Virginia (us-east-1) </strong>where EKS is present.</li><li>Name the cluster as <strong>rocketchat</strong></li><li>Click on <strong>Create</strong> button to create your external MongoDB cluster.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*LtM7JNVjf9KmTZ7N" /></figure><ol><li><strong>In “Security QuickStart” section choose “Username and Password”.</strong></li><li>Update the password of the existing database user ‘<em>rocketchat’</em> by clicking on ‘<em>Edit’</em> and providing a new <em>password: a1b2c3d4</em> (use a better password for security).</li><li>(<strong>Optional</strong>) Create a new user with ‘<em>username=dev’</em> and ‘<em>password=dev1x2y3z4’</em> (use a different password for security) so that this can be used by users other than root.</li><li>Now click on ‘<em>Create user’</em><strong><em>.</em></strong></li><li><strong>In the “Networking” part, select “Cloud Environment”.</strong></li><li>The ‘<em>IP Access Lists’</em> are a list of IPs allowed to access the Rocketchat MongoDB database. If your EKS nodes are in the Public subnet, add InternetGateway’s PublicIP, and if they are in the Private subnet, add NAT Gateway’s PublicIP.</li><li>Generally, MongoDB adds your IP address to the IP Access List, but if it does not, then you must <strong>add your Public IPv4 address in the IP Access List</strong>, so that you can access the database as well.</li><li>After assigning IPs, click on ‘<em>Finish and Close’.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*wL1CmbBy-Kf6tsuL.gif" /></figure><ol><li>After creation of Database, click on “<strong><em>Browse Collections”</em></strong> and then click on “<strong><em>Collections”</em></strong> tab (it may be selected by default)</li><li>After selecting Collection tab, click on “<strong><em>Add My Own Data”</em></strong></li><li><strong>Database Name</strong> = rocketchat</li><li><strong>Collection Name</strong> = rocketchat</li><li><strong>Additional Preferences</strong> = Let it be default</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*t5T4iwXc0Oh_id-D" /></figure><p>Now go back to the Database page and click on “<strong><em>Connect,”</em></strong> then select “<strong><em>Shell” </em></strong>and copy the <strong><em>connection string</em></strong>, your connection string will look something like <em>“mongodb+srv://rocketchat.1x2x3x.mongodb.net/”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*-ygLrXqHquRDPx8J" /></figure><p>From the above connection string create ‘<strong><em>externalMongodbUrl</em></strong><em>’</em> &amp; ‘<strong><em>externalMongodbOplogUrl</em></strong><em>’</em> as specified below (this will be required in values.yaml when installing HelmChart).</p><pre># mongodb+srv://USERNAME:PASSWORD@rocketchat.1x2x3x.mongodb.net/<br>externalMongodbUrl: mongodb+srv://rocketchat:a1b2c3d4@rocketchat.1x2x3x.mongodb.net/rocketchat<br>externalMongodbOplogUrl: mongodb+srv://rocketchat:a1b2c3d4@rocketchat.1x2x3x.mongodb.net/local?replicaSet=rs0&amp;authSource=admin</pre><p><strong>Finally, we are done with most of our work, i.e., Infrastructure Setup for Rocket.Chat.</strong></p><p>To conclude, we have created an<strong> EKS</strong> inside <strong>AWS-VPC</strong> and <strong>AWS-ACM</strong> to secure our traffic and an external <strong>MongoDB Atlas</strong> to use as a database for Rocket.Chat. In the <a href="https://blog.clouddrove.com/rocket-chat-helm-chart-deployment-88bcc216f369">next part</a>, we will wrap this up with the <a href="https://blog.clouddrove.com/rocket-chat-helm-chart-deployment-88bcc216f369">Rocket.Chat HelmChart deployment</a> and a small walkthrough of the Chat Dashboard.</p><p>See you there … 🚀😃</p><blockquote>For hassle-free Cloud Management with DevOps at the center of the process, contact us at <a href="/service/mailto:hello@clouddrove.com">hello@clouddrove.com</a></blockquote><p><strong><em>About the author:<br></em></strong><a href="https://medium.com/@hk10ahr"><strong><em>Himanshu Ahirwar</em></strong></a><em>, A DevOps geek in love with automation and open source.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d40a58c8f92" width="1" height="1" alt=""><hr><p><a href="https://blog.clouddrove.com/rocket-chat-on-microservices-5d40a58c8f92">Rocket.Chat on Microservices</a> was originally published in <a href="https://blog.clouddrove.com/">CloudDrove</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitHub Actions + OpenID Connect: The Key to AWS Authentication]]></title>
            <link>https://blog.clouddrove.com/github-actions-openid-connect-the-key-to-aws-authentication-dd9f66a7d31e?source=rss-1440a28d9d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd9f66a7d31e</guid>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[oidc]]></category>
            <dc:creator><![CDATA[CloudDrove]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 12:25:58 GMT</pubDate>
            <atom:updated>2024-03-26T12:18:44.777Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog, you will learn how to connect your GitHub Actions to AWS using OpenID Connect rather than storing your AWS Secret and Access Keys in GitHub Actions secrets. You will also learn why this is required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UPVWPct5aWWeI6muOlxPKQ.png" /></figure><h3>Let’s start with the problem.</h3><p>Few of you would be doing this, where you store all your <em>AWS Access Key ID</em>, <em>AWS Secret Access Key</em> and <em>AWS Session Token</em> into the GitHub-Action secrets like this;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/0*4uT92TqFZpYW3CJb" /></figure><p>In case your account information gets leaked on the net, for XYZ reason, the hacker can really exploit the associated AWS account resources even if they get access for an hour; ballooning the $ amount. That is where <strong>OpenID Connect</strong> for authentication comes into play. So let’s start from the basics.</p><h3>Overview</h3><h4>What is OIDC (OpenID Connect)?</h4><ul><li>On top of the Oauth 2.0 framework, OpenID Connect (OIDC) is an open authentication protocol. OIDC, which is geared towards consumers, enables users to access third-party websites using single sign-on (SSO) by using OpenID providers (ops), like an email service or social network, to validate their identities.</li><li>OpenID Connect (OIDC) allows your GitHub Actions workflows to access resources in your cloud provider without having to store any credentials as long-lived GitHub-Action secrets.</li></ul><h4>How does it work?</h4><p>The following diagram gives an overview of how GitHub’s OIDC provider integrates with your workflows and cloud provider:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s9Z8s50-6glJkK07NaRpzw.png" /><figcaption>GitHub’s OIDC</figcaption></figure><ul><li>In your cloud provider, create an OIDC trust between your cloud role and your GitHub workflow(s) that need access to the cloud</li></ul><p><em>Each time your job executes, GitHub’s OIDC Provider automatically generates an OIDC token, which includes a range of claims designed to establish a robust and verifiable identity for the authenticating workflow.</em></p><ul><li>When the cloud provider successfully checks the claims made in the token, it issues a temporary cloud access token that is only valid for the duration of the job.</li></ul><h4>Uses of OIDC</h4><p>Deployment becomes extremely easy with all popular clouds (like AWS, Azure, GCP, and HashiCorp) by adding OIDC support to their official login action.</p><h4>Benefits of Using OpenID Connect</h4><ol><li>Minimizes the password security risks</li><li>Speeds up the sign-up process</li><li>Seamless transition</li><li>Providing access across different technologies</li><li>It gives better control over your online identity</li><li>Allows smooth integration with other apps</li></ol><h3>Let’s start</h3><h4>Step 1: Create Identity Provider</h4><p>Login to AWS console → go to <em>IAM</em> → <em>Identity Provider</em> → <em>Create identity</em> →<em>Add provider</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/0*6IBysDqjWjw_Cyin" /></figure><ul><li>For the <em>provider URL</em>, use<a href="https://token.actions.githubusercontent.com/"> https://token.actions.githubusercontent.com</a></li><li>Click on <em>Get thumbprint</em><strong> </strong>(for adding a provider that does not already exist in the account)</li><li>For the<strong> </strong><em>Audience</em>, use<a href="http://sts.amazonaws.com/"> sts.amazonaws.com</a></li><li>Click on Add Provider.</li></ul><p>Here, we successfully created an Identity provider!</p><h4>Step 2: Add IAM role with Policy for Identity Provider</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zA07yKqMdRtFI1G9" /></figure><p>Click on <em>Assign role</em> → go to <em>IAM</em> → <em>Roles</em> → Create a <em>new role</em> → <em>Web Identity.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DSDoAzlH8ZLEEj5u" /></figure><p>Click on <em>Next</em> → Add Administrator access → Add role name → Click <em>Create role</em></p><p><em>Instead of Administrator access, you may assign specific resource permissions for the OIDC user, as per requirement.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BUl_3waSOchmlDJz" /></figure><p>Under the <em>Trust relationship</em>, you will see the policies added to this role, as seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eeQTQsAgLajSiQfO" /></figure><p>Replace Trust Relationship policy conditions for GithubAccount &amp; GithubRepo and save it. This will build a connection between the OIDC user role and the GitHub account. Refer below</p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>          {<br>                 &quot;Effect&quot;: &quot;Allow&quot;,<br>                 &quot;Principal&quot;: {<br>                        &quot;Federated&quot;: <br>&quot;arn:aws:iam::92xxxxxxxx:oidc-provider/token.actions.githubusercontent.com&quot;<br>                    },<br>                    &quot;Action&quot;: &quot;sts:AssumeRoleWithWebIdentity&quot;,<br>                    &quot;Condition&quot;: {<br>                          &quot;StringEquals&quot;: {<br>                                 &quot;token.actions.githubusercontent.com:aud&quot;: <br>&quot;sts.amazonaws.com&quot;<br>                          },<br>                          &quot;ForAnyValue:StringLike&quot;: {<br>                                &quot;token.actions.githubusercontent.com:sub&quot;: <br>&quot;repo:GithubUserName/repoName:*&quot;<br>                         }<br>                   }<br>              }<br>       ]<br>}</pre><p>Scenario: When the GitHub repo has a branch, the following condition needs to be added as well</p><p><strong>Example: Condition for adding GitHub repo with branch:</strong></p><pre>&quot;Condition&quot;: {<br>    &quot;StringEquals&quot;: {<br>       &quot;token.actions.githubusercontent.com:aud&quot;: &quot;sts.amazonaws.com&quot;,<br>       &quot;token.actions.githubusercontent.com:sub&quot;: <br>&quot;repo:GithubUserName/repoName:ref:refs/heads/branchName&quot;<br>  }<br>}</pre><p><strong>Can we use the same OIDC for several projects?</strong><br>Scenario: You can use the same OIDC for several projects by using the Trust Relationship policy conditions for your project repo. Check out the below example:</p><pre>{<br>   “Version”: “2012–10–17”,<br>   “Statement”: [<br>     {  <br>        “Effect”: “Allow”,<br>        “Principal”: {<br>           “Federated”: <br>“arn:aws:iam::xxxxxxxxxx:oidc-provider/token.actions.githubusercontent.com”<br>      },<br>      “Action”: [<br>        “sts:AssumeRoleWithWebIdentity”<br>      ],<br>      “Condition”: {<br>        “StringEquals”: {<br>           “token.actions.githubusercontent.com:aud”: “sts.amazonaws.com”<br>        },<br>        “ForAnyValue:StringLike”: {<br>          “token.actions.githubusercontent.com:sub”: [<br>            “repo:GithubUserName/repoName:*”,<br>            “repo:GithubUserName/repoName:*”<br>          ] <br>        }   <br>      } <br>    } <br>  ] <br>} </pre><h4>Step 3: YAML file for GitHub</h4><p>Before creating the YAML file, let’s quickly check how you would have added secret keys when not using OIDC:</p><pre>aws-access-key-id: ‘${{ secrets.AWS_ACCESS_KEY_ID }}’<br>aws-secret-access-key: ‘${{ secrets.AWS_SECRET_ACCESS_KEY }}’</pre><p>With OIDC, it would look something like this:</p><pre>role-to-assume: arn:aws:iam::92XXXXXXXXXX:role/OIDC — blog</pre><p>Now, let’s create the YAML GitHub Action Workflow caller file, and understand the complete setup</p><pre>name: AWS OIDC GITHUB<br>permissions:<br>  id-token: write<br>  contents: read<br>on:<br>  workflow_dispatch:<br><br>jobs:<br>  OIDC:<br>   runs-on: ubuntu-latest<br>   steps:<br><br>    — name: Git checkout repository<br>      uses: actions/checkout@v3<br> <br>    — name: configure aws credentials<br>      uses: aws-actions/configure-aws-credentials@v2<br>      with:<br>       role-to-assume: arn:aws:iam::xxxxxxxxxxx:role/OIDC — blog<br>       role-session-name: blog-role<br>       aws-region: us-east-1<br> <br>    — name: Print Assumed Role<br>      run: aws sts get-caller-identity<br> <br>    — name: Print s3 buckets<br>      run: aws s3 ls</pre><p>You will notice, in the YAML file, we have added role-to-assume</p><pre>role-to-assume: arn:aws:iam::92XXXXXXXXXX:role/OIDC — blog</pre><p>To request OIDC JWT ID tokens, you mustadd write &amp; read under the <em>permissions</em> section.</p><pre>permissions:<br> id-token: write<br> contents: read</pre><h4>Step 4: All Done! Let’s run the final deployment workflow file.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pm0NwsbRBoU8g3XJ" /></figure><p>Everything will be working just fine, and you will be able to see the output as expected.</p><h3>Simplifying GitHub OIDC Role Creation with CloudDrove’s Terraform Module</h3><p>In the ever-evolving landscape of cloud infrastructure, automation tools play a pivotal role in streamlining workflows and enhancing efficiency. CloudDrove, a leading provider of Terraform modules, introduces a powerful solution for creating GitHub OpenID Connect (OIDC) roles within AWS environments. This module simplifies the process of setting up roles for GitHub Actions, ensuring a secure and seamless integration with your AWS resources.</p><h4>Meet the aws_oidc_role Module</h4><p>The <em>aws_oidc_role</em> <em>module</em> is designed to facilitate the creation of OIDC roles tailored specifically for GitHub repositories. Whether you’re deploying applications or managing CI/CD pipelines, this Terraform module provides a clean and modularized configuration for a hassle-free experience.</p><h4>Module Configuration Made Simple</h4><p>To integrate the aws_oidc_role module into your Terraform configuration, incorporate the following block:</p><pre>module &quot;aws_oidc_role&quot; {<br> source = &quot;clouddrove/iam-role/aws//modules/aws_github_oidc_role&quot; <br> # Module input variables<br> provider_url = “https://token.actions.githubusercontent.com&quot;<br> oidc_github_repos = [“username/reponame”]<br> role_name = “GitHub-Deploy-Role”<br> oidc_provider_exists = false<br> name = “app” # For tags<br> repository = “repository-name” # For tags<br> environment = “control-tower” # Environment for tags<br> managedby = “hello@clouddrove.com”<br> custom_assume_role_policy = “” # If you have your own policy, add this variable<br>}</pre><h4>Key Input Variables</h4><ul><li><strong>provider_url:</strong> The URL for the GitHub token provider.</li><li><strong>oidc_github_repos: </strong>A list of GitHub repositories in the format [“username/reponame”].</li><li><strong>role_name:</strong> The name of the IAM role to be created.</li><li><strong>oidc_provider_exists:</strong> Set to false if the OIDC provider doesn’t exist.</li><li><strong>name, repository, environment: </strong>Tagging variables for improved resource management.</li><li><strong>managedby:</strong> Email address for identifying the entity responsible for managing the resources.</li><li><strong>custom_assume_role_policy: </strong>Add your custom assume role policy if needed.</li></ul><h4>Explore the Source Code</h4><p>The heart of this solution lies in its meticulously crafted source code, available on <a href="https://registry.terraform.io/modules/clouddrove/iam-role/aws/latest/submodules/aws_github_oidc_role">Terraform Registry</a>.</p><p>Dive into the codebase to gain a deeper understanding, contribute to its development, or report any issues you may encounter.</p><blockquote>For hassle-free Cloud Management with DevOps at the center of the process, contact us at <a href="/service/mailto:hello@clouddrove.com">hello@clouddrove.com</a></blockquote><p><strong><em>About the author:<br> </em></strong><a href="https://medium.com/@ertanveer143"><strong><em>Shaikh Tanveer</em></strong></a><strong><em>, </em></strong><em>As a DevOps Engineer, I immerse myself in the dynamic landscape of emerging technologies. I’m on a mission to channel my expertise towards ensuring organizations excel in delivering high-quality software products.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd9f66a7d31e" width="1" height="1" alt=""><hr><p><a href="https://blog.clouddrove.com/github-actions-openid-connect-the-key-to-aws-authentication-dd9f66a7d31e">GitHub Actions + OpenID Connect: The Key to AWS Authentication</a> was originally published in <a href="https://blog.clouddrove.com/">CloudDrove</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>