<?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 Balamurugan R on Medium]]></title>
        <description><![CDATA[Stories by Balamurugan R on Medium]]></description>
        <link>https://medium.com/@balamurugan.r_98507?source=rss-5d232c5ec58c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-FRVIT6cHq_dXqzf9Ec-Mw.jpeg</url>
            <title>Stories by Balamurugan R on Medium</title>
            <link>https://medium.com/@balamurugan.r_98507?source=rss-5d232c5ec58c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:35:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@balamurugan.r_98507/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[Microservices Authorization via Open Policy Agent]]></title>
            <link>https://medium.com/nirman-tech-blog/microservices-authorization-via-open-policy-agent-463e62da43e0?source=rss-5d232c5ec58c------2</link>
            <guid isPermaLink="false">https://medium.com/p/463e62da43e0</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[agent-policies]]></category>
            <category><![CDATA[policy-engine]]></category>
            <category><![CDATA[opas]]></category>
            <category><![CDATA[authorization]]></category>
            <dc:creator><![CDATA[Balamurugan R]]></dc:creator>
            <pubDate>Thu, 30 Jul 2020 06:44:08 GMT</pubDate>
            <atom:updated>2020-07-30T06:44:08.621Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s see how microservices authorization can be achieved by Open Policy Agent with a simple example.</p><h3>What is Authorization?</h3><p>General Definition of Authorization is the function of specifying access rights/privileges to resources.</p><h3>What is an Open Policy Agent?</h3><p>Here is the quote from OPA.</p><blockquote>The Open Policy Agent (OPA, pronounced “oh-pa”) is an open-source, general-purpose policy engine that unifies policy enforcement across the stack. OPA provides a high-level declarative language that lets you specify policy as code and simple APIs to offload policy decision-making from your software. You can use OPA to enforce policies in microservices, Kubernetes, CI/CD pipelines, API gateways, and more.</blockquote><h3>How does OPA Policy Enforcement work?</h3><p>OPA decouples policy decision-making from policy enforcement. When your software needs to make policy decisions it <strong>queries</strong> OPA and supplies structured data (e.g., JSON) as input. OPA accepts arbitrary structured data as input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*J2F388r95sR3RTnvGnVLlA.png" /><figcaption>Policy Decoupling</figcaption></figure><p>OPA generates policy decisions by evaluating the query input and against policies and data.</p><p>Policies are defined in the language called <a href="https://www.openpolicyagent.org/docs/latest/policy-language">Rego</a>.</p><h3>Let&#39;s see an example,</h3><p>This example explains How the Group Management microservices deal authorization using OPA.</p><p>Here are the considerations for Group Management,</p><ol><li>Groups can be either public or private.</li><li>Public users can view the Public Group but can’t manage public groups.</li><li>Private Groups can be viewed by Both Group Members and Group Admins and Super Admins.</li><li>Private Groups can be managed by only Group Admins and Super Admins.</li></ol><p>Here is the <a href="https://github.com/balastan/Policy-Engine">Github Repository</a> which has all the files required for the above-mentioned example. Please check the <a href="https://github.com/balastan/Policy-Engine/blob/master/README.md">README</a> file for the local setup.</p><p>Please refer to <a href="https://www.openpolicyagent.org/docs/latest/">https://www.openpolicyagent.org/docs/latest/</a> for more details.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=463e62da43e0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nirman-tech-blog/microservices-authorization-via-open-policy-agent-463e62da43e0">Microservices Authorization via Open Policy Agent</a> was originally published in <a href="https://medium.com/nirman-tech-blog">Nggawe Nirman Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide to Upgrade Ruby On Rails]]></title>
            <link>https://medium.com/nirman-tech-blog/ruby-on-rails-upgradation-guide-472aa9809542?source=rss-5d232c5ec58c------2</link>
            <guid isPermaLink="false">https://medium.com/p/472aa9809542</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[rails-upgrade]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[gem-audit]]></category>
            <dc:creator><![CDATA[Balamurugan R]]></dc:creator>
            <pubDate>Fri, 29 May 2020 07:38:54 GMT</pubDate>
            <atom:updated>2020-05-29T08:03:02.349Z</atom:updated>
            <content:encoded><![CDATA[<h3>Guide to Upgrade Ruby on Rails</h3><p>This article gives you the general ideas and challenges faced while upgrading the application to the newer version of Ruby On Rails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*2GgeS0QRid9AaBaIXB5YEQ.jpeg" /></figure><h4>Things to consider before we start the upgrade</h4><ul><li>As Rails guide suggests, it’s good to have test automation before we start the Ruby On Rails upgrade.</li><li>Developers handy with the product can upgrade pretty much faster than a newbie.</li><li>Upgrade one minor version at a time to make good use of the deprecation warnings. Rails version numbers are in the form Major. Minor.Patch</li><li>Do a Gem audit before you start the upgrade.</li><li>Check all the major gems that provide support for the targeted version of Rails. If not find the alternate gem.</li><li>Check the gems that are well maintained.</li><li>Updating one gem at a time worked for us.</li><li>Here is an idea for a gem audit table. Columns are <em>Gem Name, Gem Description, Current version of Gem, Current Rails Version, Target Rails Version, Supports Target Rails Version(yes/no), Target Gem version, Any alternative Gems.</em></li><li>Benchmarking application performance metrics is important. These help you compare the results before and after the migration and help us identify with any post-production performance issues</li></ul><blockquote>“Target Rails Version” column should consider security vulnerabilities aspects also NOT only functional compatibility</blockquote><h4>Ruby Versions</h4><p>Rails generally stays close to the latest released Ruby version when it’s released.</p><ul><li>Rails 6 requires Ruby 2.5.0 or newer.</li><li>Rails 5 requires Ruby 2.2.2 or newer.</li><li>Rails 4 prefers Ruby 2.0 and requires 1.9.3 or newer.</li><li>Rails 3.2.x is the last branch to support Ruby 1.8.7.</li><li>Rails 3 and above require Ruby 1.8.7 or higher. Support for all of the previous Ruby versions has been dropped officially. You should upgrade as early as possible.</li></ul><h4>Let&#39;s go through the upgrade process</h4><p>The idea here is to upgrade to the nearest compatible version fix the issue and then again move to the next available version.</p><ul><li>Update the Ruby version in .ruby-version file and reload the directory.</li><li>Update the Rails gem version in gemfile and run bundle update rails.</li><li>Update task, Rails provides the app:update command (rake rails:update on 4.2 and earlier). After updating the Rails version in the Gemfile, run this command. This will help you to create new files and change old files in an interactive session.</li><li>Then upgrade other gems used in the application. If you have issues with upgrading the gem, then go to the Gem documentation and find the upgrade process if it exists.</li><li>Move to the latest patch version after your current version.</li><li>Fix tests and deprecated features. Will explain this briefly below.</li><li>Move to the latest patch version of the next minor version.</li></ul><blockquote>Repeat this process until you reach your target Rails version. Each time you move versions, you will need to change the Rails version number in the Gemfile (and possibly other gem versions) and run bundle update. Then run the Update task mentioned in the 3rd step to update configuration files, then run your tests.</blockquote><h4>Fix tests and deprecated features</h4><p>Here is where most of the Application code changes will happen. Rails guides provide the detailed documentation of what needs to change as part of upgrading the Ruby On Rails. Here is the list of topics of Rails guide.</p><ul><li><a href="https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-3-2-to-rails-4-0"><strong>Upgrading from Rails 3.2 to Rails 4.0</strong></a></li><li><a href="https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-4-0-to-rails-4-1"><strong>Upgrading from Rails 4.0 to Rails 4.1</strong></a></li><li><a href="https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-4-1-to-rails-4-2"><strong>Upgrading from Rails 4.1 to Rails 4.2</strong></a></li><li><a href="https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-4-2-to-rails-5-0"><strong>Upgrading from Rails 4.2 to Rails 5.0</strong></a></li><li><a href="https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-5-0-to-rails-5-1"><strong>Upgrading from Rails 5.0 to Rails 5.1</strong></a></li><li><a href="https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-5-1-to-rails-5-2"><strong>Upgrading from Rails 5.1 to Rails 5.2</strong></a></li><li><a href="https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-5-2-to-rails-6-0"><strong>Upgrading from Rails 5.2 to Rails 6.0</strong></a></li></ul><p>Release notes have new features implemented. It&#39;s nice to check and use these features as part of the rails upgrade.</p><h4>Few Challenges faced during Upgrade</h4><p>Here are some challenges faced during the upgrade.</p><ul><li>Upgrading the gems needs a lot of effort, because few gems were not supported and few gems names have been changed, etc. For not supported gems we need to find alternative gems and Remove old gem implementation and add new gem implementation. Or else fork the old gem from GitHub and update as per your needs.</li><li>Resolve changes for ActiveRecord query and ApplicationRecord abstract class and ActiveRecord validation.</li><li>Resolve function name changes<em> Before_filter</em> and <em>After_filter </em>becomes <em>before_action</em> and <em>after_action,ActionMailer deliver becomes deliver_now</em> changes.</li><li>Resolve changes for Strong parameter implementation.</li></ul><p>These are some problems we faced when upgrading Ruby On Rails.I hope this helps. Please let us know if there is any feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=472aa9809542" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nirman-tech-blog/ruby-on-rails-upgradation-guide-472aa9809542">Guide to Upgrade Ruby On Rails</a> was originally published in <a href="https://medium.com/nirman-tech-blog">Nggawe Nirman Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>