<?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 Ravinayag on Medium]]></title>
        <description><![CDATA[Stories by Ravinayag on Medium]]></description>
        <link>https://medium.com/@ravinayag?source=rss-fe549d06e9b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*HaNrEOdC-3uLRlDJ.jpg</url>
            <title>Stories by Ravinayag on Medium</title>
            <link>https://medium.com/@ravinayag?source=rss-fe549d06e9b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:56:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ravinayag/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[Beware of Lucrative Job Offers that ask you to run their code]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">In one ordinary looking environment file, almost at the bottom, under a heading called Runtime Configuration, I found these three lines:</p><p class="medium-feed-link"><a href="https://medium.com/coinmonks/beware-of-job-offers-that-ask-you-to-run-their-code-270c0dbf95a1?source=rss-fe549d06e9b------2">Continue reading on Coinmonks »</a></p></div>]]></description>
            <link>https://medium.com/coinmonks/beware-of-job-offers-that-ask-you-to-run-their-code-270c0dbf95a1?source=rss-fe549d06e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/270c0dbf95a1</guid>
            <category><![CDATA[beware-of-fake-people]]></category>
            <category><![CDATA[beware-of-malwares]]></category>
            <category><![CDATA[job-offers-with-code-run]]></category>
            <category><![CDATA[beware-of-code-running]]></category>
            <dc:creator><![CDATA[Ravinayag]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 14:07:20 GMT</pubDate>
            <atom:updated>2026-08-08T06:35:31.548Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Hyperledger Fabric New External Peer Stuck at Block 0 — Root Cause and Fix]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">While adding a new external peer node into an existing Hyperledger Fabric network, I encountered an interesting bootstrap issue.</p><p class="medium-feed-link"><a href="https://ravinayag.medium.com/hyperledger-fabric-new-external-peer-stuck-at-block-0-root-cause-and-fix-65c469c2e5ec?source=rss-fe549d06e9b------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://ravinayag.medium.com/hyperledger-fabric-new-external-peer-stuck-at-block-0-root-cause-and-fix-65c469c2e5ec?source=rss-fe549d06e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/65c469c2e5ec</guid>
            <category><![CDATA[externel-peer]]></category>
            <category><![CDATA[peernews]]></category>
            <category><![CDATA[fix]]></category>
            <category><![CDATA[hyperledger-fabric]]></category>
            <category><![CDATA[solutions]]></category>
            <dc:creator><![CDATA[Ravinayag]]></dc:creator>
            <pubDate>Tue, 12 May 2026 18:47:43 GMT</pubDate>
            <atom:updated>2026-05-12T18:47:43.898Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Securing Bitnami WordPress: A Guide to Preventing Cyber Attacks]]></title>
            <link>https://ravinayag.medium.com/securing-bitnami-wordpress-a-guide-to-preventing-cyber-attacks-f54d026c8c58?source=rss-fe549d06e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f54d026c8c58</guid>
            <dc:creator><![CDATA[Ravinayag]]></dc:creator>
            <pubDate>Thu, 11 Sep 2025 08:53:58 GMT</pubDate>
            <atom:updated>2025-09-11T08:53:58.278Z</atom:updated>
            <content:encoded><![CDATA[<p>How to protect your Bitnami WordPress deployment from common attack vectors and maintain high availability</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YRIdlrVCqMCEWmWgIp_87g.png" /></figure><h3>Introduction</h3><p>If you’re running WordPress on AWS/Azure/GCP or any PaaS using Bitnami’s pre-configured stack, you’ve likely chosen this setup for its convenience and reliability. However, like any web application, it’s a target for cybercriminals. Recently, while monitoring server logs, I discovered my Bitnami WordPress installation was under constant attack from automated bots attempting various exploitation techniques.</p><p>This article shares the complete security strategy I implemented to protect my Bitnami WordPress server behind Cloudflare’s proxy. The solution maintains WordPress functionality while effectively blocking malicious traffic.</p><h3>Understanding the Threat Landscape</h3><h3>Common Attack Patterns</h3><p>Based on real server logs, here are the most frequent attack patterns targeting Bitnami WordPress installations:</p><p><strong>1. Path Traversal Attacks</strong></p><pre>/cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh</pre><p><strong>2. PHPUnit Remote Code Execution</strong></p><pre>/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php</pre><p><strong>3. ThinkPHP Exploitation</strong></p><pre>/index.php?s=/index/\think\app/invokefunction&amp;function=call_user_func_array&amp;vars[0]=md5&amp;vars[1][]=Hello</pre><p><strong>4. File Inclusion Attacks</strong></p><pre>/index.php?lang=../../../../../usr/local/lib/php/pearcmd</pre><p><strong>5. WordPress-Specific Probes</strong></p><pre>/wp-admin/admin-ajax.php<br>/wp-includes/wlwmanifest.xml<br>/wp-content/uploads/</pre><h3>Why Bitnami Requires Special Attention</h3><p>Bitnami stacks have unique characteristics that require tailored security approaches:</p><ul><li><strong>Custom directory structure</strong>: All components live under /opt/bitnami/</li><li><strong>Integrated service management</strong>: Uses ctlscript.sh instead of standard systemctl</li><li><strong>Pre-configured applications</strong>: WordPress, Apache, MySQL, and PHP are pre-integrated</li><li><strong>Specific permission models</strong>: Uses bitnami:daemon ownership structure</li></ul><h3>The Complete Security Implementation</h3><h3>1. Apache Security Configuration</h3><p>The first line of defense is configuring Apache to block malicious requests before they reach your applications.</p><pre> # Block path traversal attempts<br>RewriteEngine On<br>RewriteCond %{QUERY_STRING} \.\./\.\./\.\./\.\./\.\./\.\./ [OR]<br>RewriteCond %{QUERY_STRING} %2e%2e%2f [NC,OR]<br>RewriteCond %{QUERY_STRING} \.\./ [NC,OR]<br>RewriteCond %{REQUEST_URI} \.\./\.\./\.\./\.\./\.\./\.\./<br>RewriteRule ^.*$ - [F,L]</pre><h3>2. Implementing Fail2ban for Automated Blocking</h3><p>Fail2ban monitors log files and automatically bans IP addresses that show malicious behavior.</p><pre>/etc/fail2ban/jail.local<br><br>[bitnami-overflows]<br>enabled = true<br>port = http,https<br>logpath = /opt/bitnami/apache2/logs/access_log<br>maxretry = 2<br>bantime = 86400</pre><h3>3. WordPress-Specific Hardening</h3><p>Secure WordPress without breaking Bitnami’s integration:</p><pre>// Bitnami WordPress Security configurations<br>define(&#39;DISALLOW_FILE_EDIT&#39;, true);<br>define(&#39;FORCE_SSL_ADMIN&#39;, true);<br>define(&#39;WP_DEBUG&#39;, false);<br>define(&#39;WP_DEBUG_LOG&#39;, false);<br>define(&#39;WP_DEBUG_DISPLAY&#39;, false);</pre><h3>4. System-Level Security Hardening</h3><p>Implement system-level protections that work with Bitnami:</p><pre># Configure UFW firewall<br>sudo ufw default deny incoming<br>sudo ufw default allow outgoing<br>sudo ufw allow ssh<br>sudo ufw allow 80/tcp<br>sudo ufw allow 443/tcp<br>sudo ufw enable</pre><h3>5. Monitoring and Alerting System</h3><p>Create a monitoring script to track attacks and system health( I leave this open)</p><h3>6. Leveraging Cloudflare Security Features(optional)</h3><p>If you’re using Cloudflare, enable these additional protections:</p><p><strong>Web Application Firewall (WAF)</strong></p><ul><li>Enable Cloudflare WAF with “High” security level</li><li>Create custom rules to block attack patterns</li><li>Enable “Bot Fight Mode” to block automated attacks</li></ul><p><strong>Rate Limiting</strong></p><ul><li>Set up rate limits: 100 requests per minute per IP</li><li>Create stricter limits for admin areas: 10 requests per minute to /wp-admin/</li></ul><p><strong>Disclaimer : </strong>The configurations shown above are high-level examples for educational purposes only. These are based on specific attack patterns observed in my environment and may not be suitable for your WordPress setup without modification.Always test thoroughly before implementing in production and adjust based on your own security analysis.</p><h3>Results and Performance Impact</h3><h3>Attack Mitigation Results</h3><p>After implementing this security strategy:</p><ul><li><strong>99% reduction</strong> in successful attack attempts reaching WordPress</li><li><strong>Zero downtime</strong> from attacks since implementation</li><li><strong>Maintained performance</strong> with minimal impact on legitimate users</li></ul><h3>Performance Metrics</h3><ul><li><strong>Response time increase</strong>: Less than 5ms average</li><li><strong>CPU overhead</strong>: Less than 2% additional load</li><li><strong>False positives</strong>: Zero legitimate requests blocked</li></ul><p><em>Have you implemented similar security measures for your Bitnami WordPress deployment? Share your experiences and additional tips in the comments below.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f54d026c8c58" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mautic — Digital Marketing Tool]]></title>
            <link>https://ravinayag.medium.com/mautic-digital-marketing-tool-859cd3ce0484?source=rss-fe549d06e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/859cd3ce0484</guid>
            <category><![CDATA[mautic-whatsapp]]></category>
            <category><![CDATA[digital-marketing-tools]]></category>
            <category><![CDATA[mautic-plugin]]></category>
            <category><![CDATA[whatsapp-server]]></category>
            <category><![CDATA[whatsapp-marketing]]></category>
            <dc:creator><![CDATA[Ravinayag]]></dc:creator>
            <pubDate>Fri, 30 Aug 2024 10:19:21 GMT</pubDate>
            <atom:updated>2024-08-30T13:15:20.695Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Mautic — Digital Marketing Tool</strong></h3><h3>Elevate Your Marketing with Mautic 5.1’s Free WhatsApp Plugin</h3><p>In today’s digital landscape, integrating WhatsApp into your marketing strategy is no longer optional — it’s essential. Mautic 5.1 users, rejoice! The free WhatsApp plugin is here to revolutionize your communication strategy. Let’s dive into how you can harness this powerful tool.</p><h3>Why Choose the Mautic WhatsApp Plugin?</h3><ul><li><strong>Cost-Effective</strong>: It’s completely free!</li><li><strong>User-Friendly</strong>: Simple installation and setup process</li><li><strong>Seamless Integration</strong>: Works flawlessly with Mautic 5.1</li><li><strong>Enhanced Reach</strong>: Tap into WhatsApp’s vast user base</li></ul><h3>Step-by-Step Installation Guide</h3><h3>1. Download the Plugin</h3><p>Head to the official GitHub repository: <a href="https://github.com/ravinayag/mautic-whatsapp-plugin">Mautic WhatsApp Plugin</a></p><h3>2. Installation</h3><ol><li>Unzip the downloaded file</li><li>Place it in your Mautic plugins folder</li><li>Ensure the folder is named MauticWhatsappBundle</li></ol><h3>3. Activate the Plugin</h3><p>Run the following command in your Mautic root directory</p><pre>php bin/console mautic:cache:clear</pre><pre>php bin/console mautic:plugins:reload</pre><p>Note: Ensure you have the necessary user permissions.</p><h3>4. Set Up Your own Whatsapp web API Server (optional)</h3><p>Publish soon( under trails &amp; vulnerabilty scanning)<br>If you intrested for beta versions trails contact me.</p><h3>Wo-Wa Account (optional)</h3><ol><li>Register on <a href="https://wo-wa.com/">Wo-Wa</a> (Recommended: $14/month subscription)</li><li>Add your domain and phone number</li><li>Scan the QR code (similar to WhatsApp Web)</li><li>Obtain your API Key</li></ol><h3>5. Configure Mautic Settings</h3><ol><li>Navigate to Mautic’s plugin settings</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-IQy821NeeaLZEdLy4VVKw.png" /></figure><ol><li>Locate and publish the WhatsApp plugin</li><li>Input your Devopz API Key or Wo-Wa API Key</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*wqUcy3RxWL58Z1Qx0ZTHjA.png" /></figure><h3>6. Set WhatsApp as SMS Channel</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*Cm1o4T0OIKgb7KTR3WvF2A.png" /></figure><ol><li>Go to Configuration &gt; Text Message Settings</li><li>Select WhatsApp as your SMS channel</li></ol><h3>7. Start Messaging</h3><p>You’re all set! Send a regular SMS, and it will be delivered as a WhatsApp message from your registered phone number.</p><h3>Maximize Your WhatsApp Marketing</h3><ul><li><strong>Personalized Campaigns</strong>: Leverage Mautic’s segmentation for targeted messaging</li><li><strong>Automated Workflows</strong>: Set up drip campaigns via WhatsApp</li><li><strong>Analytics</strong>: Track message delivery and engagement rates</li><li><strong>Multi-Channel Approach</strong>: Integrate WhatsApp with your existing email and SMS strategies</li></ul><p>By incorporating WhatsApp into your Mautic 5.1 setup, you’re not just keeping up with the times — you’re staying ahead of the curve. Start engaging your audience where they spend most of their time: on WhatsApp!</p><p>Remember, effective marketing is about being where your customers are. With the Mautic WhatsApp plugin, you’re always just a message away.</p><p>Ready to transform your marketing strategy? Install the Mautic WhatsApp plugin today and watch your engagement soar!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=859cd3ce0484" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Resilience Testing Plan for Hyperledger Fabric Network]]></title>
            <link>https://ravinayag.medium.com/resilience-testing-plan-for-hyperledger-fabric-network-ef3fe141d2fb?source=rss-fe549d06e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef3fe141d2fb</guid>
            <category><![CDATA[performace-testing-plance]]></category>
            <category><![CDATA[resilience-testing]]></category>
            <category><![CDATA[tp]]></category>
            <category><![CDATA[hl-fabric-testing]]></category>
            <category><![CDATA[fabric-resilience-plan]]></category>
            <dc:creator><![CDATA[Ravinayag]]></dc:creator>
            <pubDate>Mon, 11 Sep 2023 10:32:19 GMT</pubDate>
            <atom:updated>2023-09-30T07:23:44.372Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ju7gx0ofJ-DiR-x-q3q8AA.png" /></figure><p>Resilience testing is crucial for ensuring that your Hyperledger Fabric network can withstand failures and disruptions. Here’s a high-level test plan for resilience testing of your Fabric network with the described infrastructure[Two Node/Docker swarm/K8s] . Please note that this is a general outline, and you may need to adapt it to your specific network configuration and requirements.</p><p>These scenarios are intended to test the robustness and adaptability of your Fabric network in the face of potential disruptions or changes. They may not be applicable to all Fabric deployments, and their execution might require careful planning and coordination. Be sure to adapt these scenarios to your specific network setup and requirements.</p><h3>1. Objective</h3><ul><li>The primary objective is to test the resilience and fault tolerance of your Hyperledger Fabric network under various failure scenarios.</li></ul><h3>2. Test Environment</h3><ul><li>Describe your test environment, including the two EC2 instances, their configurations, Docker Swarm setup, and network details.</li></ul><h3><strong>3. Test Scenarios</strong></h3><h4>A. Node Failure Testing</h4><pre>  - **Scenario 1: Orderer Node Failure**    <br>     - Simulate the failure of the orderer node (e.g., stop the Docker container). <br>     - Verify that the network can continue to operate without issues. <br>     - Check if transactions can still be endorsed and committed.<br><br>  - **Scenario 2: Peer Failure**<br>     - Simulate the failure of one or both peers in each organization.<br>     - Verify that the network can still reach consensus for transactions.<br>     - Ensure that the network can recover automatically when the failed peer is restored.<br><br>  - **Scenario 3: CA Failure**<br>     - Simulate the failure of the CA node.<br>     - Verify that the network can still perform identity and authentication tasks.<br>     - Ensure that new CAs can be added if necessary to recover from the CA failure.</pre><p><strong>B. Network Failure Testing .<br>Objective:</strong> How your Hyperledger Fabric network behaves when there’s a network partition, meaning the network becomes temporarily divided into two or more isolated segments where nodes in one segment cannot communicate with nodes in another segment.<br><strong>Explanation: </strong>Network partitions can occur due to various reasons, such as network issues, hardware failures, or misconfigurations. In a multi-node, multi-organization Fabric network, it’s essential to ensure that even when network partitions occur, the network can continue to function and later recover when the partition is resolved.</p><pre>  - **Scenario 4: Network Partition**  <br>     - Simulate a network partition between the two EC2 instances. <br>     - Verify how the network behaves when the orderer and peers are in different partitions. <br>     - Test if the network can heal when the partition is resolved.</pre><p>Steps:</p><ol><li><strong>Setup</strong>: Ensure your Fabric network is running normally, with nodes in different organizations communicating.</li><li><strong>Simulate Partition:</strong> Introduce a network partition by blocking or disconnecting network traffic between nodes in one organization from nodes in another organization. This can be done at the network level (e.g., using firewall rules) or by stopping network interfaces temporarily.</li><li><strong>Observe Behavior:</strong> Monitor how the network behaves during the partition. Pay attention to how transactions are endorsed and ordered in both partitions.</li><li><strong>Recovery:</strong> Once the partition is resolved (by fixing the network issue or re-enabling network interfaces), observe how the network recovers. Ensure that all transactions from both partitions are eventually reconciled and committed to the ledger.</li></ol><p><strong>C. Consensus Failure Testing</strong></p><p><strong>Objective:</strong> Test how your Fabric network adapts to a change in the consensus algorithm.</p><p><strong>Explanation: </strong>Hyperledger Fabric allows you to configure different consensus algorithms for the ordering service (e.g., Raft, Kafka). Changing the consensus algorithm can be a significant event, and it’s crucial to ensure that the network can handle this change without disruption.</p><pre>  - **Scenario 5: Consensus Algorithm Change**  <br>     - Temporarily change the consensus algorithm (e.g., from Raft to Kafka or vice versa) for the orderer. <br>     - Verify that the network can adapt to the change in consensus. <br>     - Switch back to the original consensus algorithm and ensure a smooth transition.</pre><p>Steps:</p><ol><li><strong>Setup:</strong> Ensure your Fabric network is running with the initial consensus algorithm (e.g., Raft).</li><li><strong>Change Consensus Algorithm:</strong> Temporarily change the consensus algorithm to another supported option (e.g., from Raft to Kafka) for your orderer nodes. You can do this by modifying your network configuration.</li><li><strong>Observe Transition:</strong> Monitor the network as it transitions to the new consensus algorithm. Pay attention to how new transactions are ordered and committed.</li><li><strong>Test Under Load:</strong> While using the new consensus algorithm, simulate a load on the network by creating and endorsing transactions.</li><li><strong>Revert to Original Algorithm:</strong> After testing with the new consensus algorithm, switch back to the original consensus algorithm (e.g., from Kafka to Raft).</li><li><strong>Observe Transition Back:</strong> Monitor the network as it transitions back to the original consensus algorithm.</li><li><strong>Verify Data Consistency:</strong> Ensure that data consistency and transaction integrity are maintained throughout the process.</li></ol><p><strong>D. Data Recovery Testing</strong></p><pre>  - **Scenario 6: Data Loss** <br>     - Introduce data loss in one of the peers. <br>     - Verify that the lost data can be recovered from other peers or the orderer. <br>     - Test data consistency and integrity after recovery.</pre><h3><strong>4. Performance Metrics</strong></h3><ul><li>Define the performance metrics you want to monitor during resilience testing. This may include transaction throughput, latency, CPU and memory usage, and network bandwidth.</li></ul><h3>5. Automation</h3><ul><li>Whenever possible, automate the test scenarios using scripts or tools to ensure repeatability.</li></ul><h3>6. Monitoring and Logging</h3><ul><li>Implement monitoring and logging solutions to capture real-time data during testing. Use tools like Prometheus and Grafana to monitor the health of your Fabric network.</li></ul><h3>7. Reporting</h3><ul><li>Document the test results, including successes, failures, and any issues encountered.</li><li>Provide recommendations for improving network resilience based on the test outcomes.</li></ul><h3>8. Recovery Procedures</h3><ul><li>Develop and document recovery procedures for each failure scenario identified in the testing.</li></ul><h3>9. Iteration and Optimization</h3><ul><li>Based on the test results, iterate on your network configuration and resilience strategies.</li><li>Optimize the network to improve its ability to withstand failures.</li></ul><h3>10. Compliance Testing</h3><p>If your network needs to comply with specific regulations or standards (e.g., GDPR, HIPAA), perform compliance testing to ensure it meets those requirements even in failure scenarios.</p><h3><strong>11. Scaling</strong></h3><p>Consider scalability testing to ensure that your network can handle increased loads without compromising resilience.</p><h3>12. Documentation and Training</h3><p>Ensure that your team is well-trained on how to respond to and recover from different failure scenarios. Document these procedures for future reference.</p><p>— — — — — — — <br><strong>Conclusion :</strong></p><p>Remember that resilience testing is an ongoing process. As you make changes to your network or deploy new versions of Fabric, it’s essential to revisit and update your resilience testing plan accordingly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef3fe141d2fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the Blockchain Layers interconnected with DeFi elements.]]></title>
            <link>https://ravinayag.medium.com/how-the-blockchain-layers-interconnected-with-defi-elements-14eaead1726?source=rss-fe549d06e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/14eaead1726</guid>
            <category><![CDATA[elements]]></category>
            <category><![CDATA[layers-of-defi]]></category>
            <category><![CDATA[layers]]></category>
            <category><![CDATA[elements-of-defi]]></category>
            <dc:creator><![CDATA[Ravinayag]]></dc:creator>
            <pubDate>Mon, 24 Apr 2023 12:02:55 GMT</pubDate>
            <atom:updated>2023-04-24T12:02:55.750Z</atom:updated>
            <content:encoded><![CDATA[<p>Decentralized Finance in a short DeFi, is a term used to describe a range of financial applications and services built on top of blockchain technology, primarily using the Ethereum platform. DeFi aims to offer a more open, transparent, and accessible alternative to traditional financial systems by eliminating intermediaries such as banks and other financial institutions.</p><p>Through the use of smart contracts and decentralized applications (dApps), DeFi enables various financial operations, such as borrowing, lending, trading, asset management, and more, in a decentralized and permissionless manner. This allows for greater control and flexibility for users, as well as the potential for lower fees and faster transactions.</p><p>In the DeFi ecosystem, elements refer to the characteristics or attributes of decentralized finance, while layers represent the structural components that work together to create the system. Here’s a breakdown of the elements and layers of DeFi and how they relate to each other:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*mxCroxmvD88PnNsfgxjMJA.jpeg" /></figure><p><strong>Elements of DeFi:</strong></p><ol><li><strong>Decentralization:</strong> DeFi platforms are built on decentralized networks, which provide improved security, transparency, and censorship resistance compared to traditional financial systems.</li><li><strong>Permissionless access:</strong> Anyone with internet access and a compatible cryptocurrency wallet can participate in DeFi platforms, without the need for a central authority to grant permission.</li><li><strong>Interoperability:</strong> DeFi applications are typically built using standard protocols, which enables seamless integration and interaction between different services and platforms.</li><li><strong>Financial innovation:</strong> DeFi allows for the creation of new financial products and services, often combining traditional finance concepts with unique features enabled by blockchain technology.Transparency: Transactions on DeFi platforms are recorded on public blockchains, making the system more transparent and auditable. Users can verify transactions, track the flow of funds, and inspect smart contracts, which promotes trust in the system.</li><li><strong>Transparency: </strong>Transactions on DeFi platforms are recorded on public blockchains, making the system more transparent and auditable. Users can verify transactions, track the flow of funds, and inspect smart contracts, which promotes trust in the system.</li><li><strong>Programmable money:</strong> DeFi utilizes programmable money through the use of cryptocurrencies and tokens, allowing for the automation of financial transactions and the creation of sophisticated financial products.</li><li><strong>Non-custodial services:</strong> Many DeFi applications enable users to maintain control over their funds, meaning they do not need to trust a centralized entity to hold and manage their assets.</li><li><strong>Global access:</strong> DeFi platforms can be accessed from anywhere in the world, as long as users have an internet connection and a compatible wallet. This removes geographical barriers to financial services and democratizes access to a wide range of financial products.</li><li><strong>Composability:</strong> DeFi applications are often built using modular components, which allows for easy integration and combination with other services, creating a synergistic ecosystem known as “money legos.”</li><li><strong>Community governance:</strong> Some DeFi platforms have governance models that enable users to participate in the decision-making process, such as voting on protocol upgrades or changes to platform parameters. This allows for a more decentralized and community-driven approach to development and management.</li><li><strong>Risk management</strong>: DeFi platforms can provide various risk management tools, such as collateralized lending, insurance protocols, and decentralized oracles, which help users manage their exposure to potential risks in the ecosystem.</li></ol><p>“Layers” often refer to the structure and components that work together to create the entire ecosystem.</p><p><strong>DeFi layers:</strong></p><ol><li><strong>Layer 1 (Base Layer)</strong>: This is the underlying blockchain infrastructure, such as Ethereum, that provides security, decentralization, and the ability to execute smart contracts. It is the foundational layer on which all other DeFi components are built.</li><li><strong>Layer 2 (Protocol Layer):</strong> This layer consists of various DeFi protocols, such as lending and borrowing platforms (e.g., Aave, Compound), decentralized exchanges (e.g., Uniswap, SushiSwap), and asset management tools. These protocols define the rules and operations for their respective financial services and are usually implemented using smart contracts.</li><li><strong>Layer 3 (Application Layer)</strong>: This layer includes the user-facing applications, platforms, and interfaces that interact with the underlying DeFi protocols. These can be web or mobile applications, wallets, or tools that allow users to access, manage, and interact with DeFi services.</li></ol><p><strong>Relationship between elements and layers:</strong></p><ul><li>Decentralization, permissionless access, and transparency (points 1, 2, and 5) are attributes of the base layer (Layer 1).</li><li>Interoperability, financial innovation, programmable money, and composability (points 3, 4, 6, and 9) can be associated with the protocol layer (Layer 2).</li><li>Non-custodial services, global access, and community governance (points 7, 8, and 10) can be related to both the protocol layer (Layer 2) and the application layer (Layer 3).</li><li>Risk management (point 11) can span across all three layers, as it may involve both the design of the underlying blockchain, the DeFi protocols, and the user interfaces.</li></ul><p>In summary, the elements of DeFi describe the characteristics that make decentralized finance unique and innovative, while the layers provide a structured framework for building and organizing DeFi applications and services. The elements and layers are interconnected, as the elements often manifest themselves in the different layers of the DeFi architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14eaead1726" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of DAO Crypto Projects and Their Importance in the Blockchain World]]></title>
            <link>https://ravinayag.medium.com/the-rise-of-dao-crypto-projects-and-their-importance-in-the-blockchain-world-e879b85bce46?source=rss-fe549d06e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e879b85bce46</guid>
            <category><![CDATA[dao]]></category>
            <category><![CDATA[decentralized-finance]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <dc:creator><![CDATA[Ravinayag]]></dc:creator>
            <pubDate>Sat, 22 Apr 2023 06:15:21 GMT</pubDate>
            <atom:updated>2023-04-22T06:15:21.619Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*fDz_PJmjjkz6huYoetN6pA.jpeg" /></figure><p>In this blog, I have compiled a list of the top five DAO crypto projects that you should consider in 2023 and beyond.</p><p>First, let’s start with understanding what DAO is in crypto. DAO or <strong>D</strong>ecentralized<strong> A</strong>utonomous <strong>O</strong>rganization is a concept that has gained significant traction in recent years, offering a decentralized and transparent approach to decision-making and governance or a type of organization that is run by a group of people who follow specific rules to reach common goals. Unlike traditional organizations, DAOs operate on a flattened hierarchy with no central governing authority. All members have equal stakes, and decisions are recorded on the blockchain ledger.</p><p>Some of the benefits of DAOs over traditional platforms include transparency, efficiency, and flexibility. DAOs only need codes to operate, and changes can only be approved by the internet community, ensuring total transparency.</p><p>As of March 2023, the cryptocurrency market continues to thrive with new opportunities and innovations, especially in the realm of DAO projects. DAO, or <strong>D</strong>ecentralized <strong>A</strong>utonomous <strong>O</strong>rganization, is a concept that has gained significant traction in recent years, offering a decentralized and transparent approach to decision-making and governance.</p><p>Now let’s dive into our top five DAO crypto projects.</p><p><strong>1. Yearn.Finance (YFI)</strong> — ranked #327 in Coinbase. Yearn. finance is an aggregator service for decentralized finance (<a href="https://coinmarketcap.com/alexandria/article/what-is-decentralized-finance">DeFi</a>) investors, using automation to allow them to maximize profits from yield farming. the current price of <strong>YFI token is $8225</strong>, with a circulating supply of 33 K tokens, valuing the project at <strong>$26 Billion.</strong></p><p><strong><em>Reasons to invest in Yearn Finance:</em></strong></p><p>· The platform uses custom tools to combine DeFi protocols like Curve, Compound, and Aave, maximizing yield for those who stake cryptocurrency.</p><p>· Potential for supporting innovative projects with high growth potential</p><p>· The objective is to simplify DeFi for less technical users and those less committed to trading.</p><p><strong>2. Maker DAO (</strong>MKR)<strong> </strong>— ranked #196<strong> </strong>in the coingeko, (MKR) is an incubator that provides growth technology and SaaS solutions for crypto startups. It is a decentralized platform that empowers content creators to have control over their digital assets and revenue streams. With its native token, MKR aims to disrupt the traditional media landscape by offering a transparent and community-driven approach to content creation and distribution. the current price of <strong>MKR token is $1.44,</strong> with a circulating supply of 150 million tokens, valuing the project at <strong>$20 Billion.</strong></p><p><strong><em>Reasons to invest in Maker DAO :</em></strong></p><p>· Strong market position, fostering user engagement and long-term growth.</p><p>· Transparent and community-driven approach to content creation</p><p>· Retail investors can invest in digital assets and stocks at an early stage through the platform’s investment system</p><p>3. <strong>UniSwap (UNI) </strong>— Rank #19 in Coinbase, Uniswap was one of the first decentralized finance (or DeFi) applications to gain significant traction on Ethereum. It allows users anywhere in the world to trade crypto without an intermediary. UNI is the governance token that allows users to vote on key protocol changes. the current price of the <strong>UNI token is $5.71</strong> with a circulating supply of 577 Million tokens, valuing the project at <strong>$3.3 Billion.</strong></p><p><strong><em>Reasons to invest in Uniswap:</em></strong></p><ul><li>Global and permissionless: There is no concept of borders, or restrictions on who can trade. Anyone with a smartphone and an internet connection can participate.</li><li>Ease-of-use and pseudonymity: No account signup or personal details are required.</li><li>Governance and utility of UNI tokens: Holding UNI tokens grant users voting rights on key protocol changes, promoting decentralized governance. Additionally, token holders can benefit from fee distribution, incentivizing long-term investment.</li><li>Continuous growth and adoption, Pioneering the DeFi platform</li></ul><p><strong>5. The Graph (GRT)</strong> — Rank #112 in Coinbase, The Graph (GRT) is a protocol for indexing and accessing blockchain data. The Graph indexes blockchain records from networks like Ethereum in the same way that Google indexes the web. The Graph is a global data layer that runs on top of blockchains and storage networks, acting as a uniting and organizing factor for the decentralization movement. In simple terms, The Graph organizes the data and makes it easy to retrieve it from the blockchain, the current price of <strong>GRT token is $0.14</strong>, with a circulating supply of 8.9 Billion tokens, valuing the project at <strong>$1.3 Billion.</strong></p><p><strong><em>Reasons to invest in The Graph:</em></strong></p><p>· The Graph’s utility is likely to increase. More dApps and platforms will require efficient data access, leading to more demand for The Graph’s services.</p><p>· Tokenomics: GRT tokens offer multiple use cases and potential for growth, and the project has an established track record of partnerships with prominent projects in the decentralized ecosystem.</p><p>· The Graph addresses the growing demand for decentralized data access with a versatile solution, which is supported by a strong developer community and integrated with multiple blockchain networks.</p><p><strong>5. Aave (AAVE)</strong> — ranked #196 in the coinbase. AAVE is for charitable giving and impact investing. Aave (AAVE) is a lending system that allows users to lend, borrow, and earn interest on crypto assets. The platform is a decentralized money market protocol where users can participate as either borrowers or lenders. Here, borrowers can borrow cryptocurrencies by paying variable interest rates. At the same time, the lenders provide liquidity to the market to earn passive income in the form of interest. In simpler words, Aave is a decentralized finance (DeFi) lending platform that creates an open and transparent system that works without the involvement of any intermediaries. The current price of <strong>Aave token is $72</strong>, with a circulating supply of 14 Million tokens, valuing the project at<strong> $1.1 Billion.</strong></p><p><strong><em>Reasons to invest in AAVE:</em></strong></p><p>· Opportunity to contribute to global social impact initiatives</p><p>· Transparent and traceable use of funds through blockchain technology</p><p>· Potential for increased demand for impact investing solutions in the future.</p><p><em>— Thank you for reading, I appreciate your time and hope you enjoyed the blog and gained valuable knowledge about DeFi; stay tuned for more exciting DeFi insights in our upcoming posts.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e879b85bce46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IPFS Multinode/Cluster Setup]]></title>
            <link>https://ravinayag.medium.com/ipfs-multinode-cluster-setup-5f62c3588c93?source=rss-fe549d06e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f62c3588c93</guid>
            <category><![CDATA[ipfs-latest]]></category>
            <category><![CDATA[ipfs-multinode]]></category>
            <category><![CDATA[ipfs-private-cluster]]></category>
            <category><![CDATA[ipfs-tutorial]]></category>
            <category><![CDATA[ipfscloud]]></category>
            <dc:creator><![CDATA[Ravinayag]]></dc:creator>
            <pubDate>Wed, 09 Nov 2022 18:58:01 GMT</pubDate>
            <atom:updated>2022-11-10T05:13:09.548Z</atom:updated>
            <content:encoded><![CDATA[<h3>IPFS Multinode Private Cluster</h3><p>IPFS — A Peer-to-Peer distributed file system</p><p>A Guide to creating a private distributed network to enable secure storage, sharing, and data replication on AWS.<br>Here’s a walkthrough of what I did to set up the nodes running. All feedback/comments/questions are very much appreciated! If you decide to give this a run-through, let us know how it goes so that we can patch up any confusing parts/mistakes in the documentation.<br>All feedback/comments/questions are very much appreciated! If you decide to give this a run-through</p><p>This guide includes 5 parts:</p><ul><li>Deploy IPFS Nodes over EC2</li><li>Configure the s3 bucket as a datastore</li><li>Deploy IPFS Swarm/Cluster</li><li>Deploy ipfs-http-client react app for file upload</li><li>Securing the deployment using TLS + (Secure) Websockets</li></ul><h3>1. Deploy IPFS Nodes over EC2</h3><p>Create SG as ipfs-nodes and add ports 22,80,443, 4001<br><strong> Install ipfs:</strong></p><ul><li>We going to build the ipfs binary from the source repo:</li></ul><pre>git clone <a href="https://github.com/ipfs/kubo.git">https://github.com/ipfs/kubo.git</a><br>cd kubo<br>export GO111MODULE=on<br>go get github.com/ipfs/go-ds-s3/plugin@latest<br>go get  github.com/aws/aws-sdk-go v1.27.0<br>echo -en &quot;\ns3ds github.com/ipfs/go-ds-s3/plugin 0&quot; &gt;&gt; plugin/loader/preload_list<br>make install<br>go mod tidy<br>make install<br>cmd/ipfs/ipfs version<br>cp cmd/ipfs/ipfs /usr/local/bin/</pre><p>Above we cloned the kubo(go-ipfs) repository and add the s3 plugin for the build. Since the first make install will throw an error, we fix it with mod tidy and rerun the make install. this will generate the ipfs binary file under ~/cmd/ipfs/ipfs then you can copy it to the execution path. If you were able to see your ipfs version then you are all good to proceed next steps.</p><p>Initilise the server : ipfs init -p server</p><p>ipfs will create the directory under your home folder ex. /home/ubuntu, we will create a system service and do a few config changes. use your favorite editor, for me it&#39;s vim.</p><pre>$ sudo vi /etc/systemd/system/ipfs.service</pre><pre>And add to it the following configs:<br>[Unit]<br>Description=IPFS server Daemon<br>After=syslog.target network.target remote-fs.target nss-lookup.target<br>[Service]<br>Type=simple<br>ExecStart=/usr/local/bin/ipfs daemon --enable-namesys-pubsub --enable-gc<br>Restart=always<br>User=ubuntu<br>Group=ubuntu<br>[Install]  <br>WantedBy=multi-user.target</pre><p>enable the service.</p><pre>sudo systemctl daemon-reload<br>sudo systemctl enable ipfs</pre><p>Do the config changes.</p><pre>vi ~/.ipfs/config </pre><pre>Datastore.StorageMax 100GB<br>Addresses.Gateway /ip4/0.0.0.0/tcp/8080</pre><p>Alternatively, you can change by running commands directly</p><p>Set max storage with $ ipfs config Datastore.StorageMax 100GB</p><p>Enable gateway: $ ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080</p><h3>2. Configure S3 bucket as datastore:</h3><p>create a dedicated IAM user to access the s3 bucket, name the bucket as s3ipfsdatastore and provide respective permission to this user to read/write access the bucket. while creating IAM bucket user, make a note of the access credentials we need to configure to below.</p><pre>       {<br>            &quot;child&quot;: {<br>              &quot;type&quot;: &quot;s3ds&quot;,<br>              &quot;region&quot;: &quot;us-east-1&quot;,<br>              &quot;bucket&quot;: &quot;s3datastore&quot;,<br>              &quot;accessKey&quot;: &quot;&quot;,<br>              &quot;secretKey&quot;: &quot;&quot;<br>            },<br>            &quot;mountpoint&quot;: &quot;/blocks&quot;,<br>            &quot;prefix&quot;: &quot;s3.datastore&quot;,<br>            &quot;type&quot;: &quot;measure&quot;<br>        },</pre><p>Edit config file again : vim ~/.ipfs/config and there should be 2 entries under Datastore.Spec.mounts replace the first with the above content and ensure you updated with your region, bucket names, accessKey, and secretKey are set that you created earlier.<br>Now edit ~/.ipfs/datastore_spec to match the new data store vim ~/.ipfs/datastore_spec as below</p><pre>{&quot;mounts&quot;:[{&quot;bucket&quot;:&quot;$bucketname&quot;,&quot;mountpoint&quot;:&quot;/blocks&quot;,&quot;region&quot;:&quot;us-east-1&quot;,&quot;rootDirectory&quot;:&quot;&quot;},{&quot;mountpoint&quot;:&quot;/&quot;,&quot;path&quot;:&quot;datastore&quot;,&quot;type&quot;:&quot;levelds&quot;}],&quot;type&quot;:&quot;mount&quot;}</pre><p>Now start the ipfs and check the status of the ipfs service</p><pre>sudo systemctl start ipfs<br>sudo systemctl status ipfs</pre><pre>wget <a href="https://4.bp.blogspot.com/-iSvQAJWAwRU/UQfatfJDchI/AAAAAAAAhhk/GvmjRzB1Rug/s1600/Rocky-Mountains-Jasper-Alberta-Canada-1024x1280.jpg">https://4.bp.blogspot.com/-iSvQAJWAwRU/UQfatfJDchI/AAAAAAAAhhk/GvmjRzB1Rug/s1600/Rocky-Mountains-Jasper-Alberta-Canada-1024x1280.jpg</a><br></pre><pre>ipfs add <a href="https://4.bp.blogspot.com/-iSvQAJWAwRU/UQfatfJDchI/AAAAAAAAhhk/GvmjRzB1Rug/s1600/Rocky-Mountains-Jasper-Alberta-Canada-1024x1280.jpg">Rocky-Mountains-Jasper-Alberta-Canada-1024x1280.jpg</a></pre><p>You get the hashtag pin of the file uploaded, note it down and open the browser, and check.<br>http://1.2.3.1:8080/ipfs/QmSXkhhYJskgQpUaPFpxrqMvaMBcJFgkTxGXAJPYaAfUCJ</p><p>Check your s3 bucket, that new file was added in your s3 bucket.</p><h3>3, Deploy IPFS Swarm/Cluster</h3><p>In my opinion, IPFS cluster is the successor of Swarm Deployment, However, i still need to validate those statements, because the steps and methods are similar (Debian vs Ubuntu). if you have other thoughts please do share over comments.</p><p>In this tutorial, we use CRDT consensus for the cluster for more details <a href="https://ipfscluster.io/documentation/">ref.</a></p><p>IPFS Cluster needs these ports to need to open</p><pre>9094 &gt; Used for HTTP API endpoint<br>9095 &gt; Used for IPFS proxy endpoint<br>9096 &gt; Used for Cluster swarm, communication between cluster nodes</pre><p>For Understanding My instances are</p><pre>Node 1 : 1.2.3.1  &gt; Ip Address<br>Node 2 : 1.2.3.2<br>Node 3 : 1.2.3.3</pre><p>Repeat the same steps above for node 2 &amp; node 3.</p><p>We need to obtain the ipfs-cluster-service , ipfs-cluster-ctl and ipfs-cluster-follow binaries.<br>Download all three binaries from the below, Please mind the versions, this is the latest version while writing this Doc.</p><ul><li>Place the binaries where it can be run unattended, IPFS Cluster should be installed and run along ipfs (go-ipfs) in the executable path /use/local/bin</li></ul><pre><a href="https://dist.ipfs.tech/ipfs-cluster-service/v1.0.4/ipfs-cluster-service_v1.0.4_linux-amd64.tar.gz">https://dist.ipfs.tech/ipfs-cluster-service/v1.0.4/ipfs-cluster-service_v1.0.4_linux-amd64.tar.gz</a><br><a href="https://dist.ipfs.tech/ipfs-cluster-ctl/v1.0.4/ipfs-cluster-ctl_v1.0.4_linux-amd64.tar.gz">https://dist.ipfs.tech/ipfs-cluster-ctl/v1.0.4/ipfs-cluster-ctl_v1.0.4_linux-amd64.tar.gz</a><br><a href="https://dist.ipfs.tech/ipfs-cluster-follow/v1.0.4/ipfs-cluster-follow_v1.0.4_linux-amd64.tar.gz">https://dist.ipfs.tech/ipfs-cluster-follow/v1.0.4/ipfs-cluster-follow_v1.0.4_linux-amd64.tar.gz</a></pre><p>When you run the first time, you need to generate the cluster_key and store in a CLUSTER_SECRET variable and run with init option.</p><pre>$ export CLUSTER_SECRET=$(od -vN 32 -An -tx1 /dev/urandom | tr -d &#39; \n&#39;)   <br>$ echo $CLUSTER_SECRET<br></pre><p>Copy this secret key and update it in the system service file. Create a System service like ipfs in above, or you can pass the environment variable in some other way that you wish. when the cluster starts it looks for the env variable to initiate or join. The secret has to pass in all the nodes participating in the cluster.</p><pre>$ sudo vi /etc/systemd/system/ipfs-cluster.service</pre><pre>And add to it the following configs:<br>[Unit]<br>Description=IPFS-Cluster server Daemon<br>After=syslog.target network.target remote-fs.target nss-lookup.target<br>[Service]<br>Type=simple<br>ExecStart=/bin/bash -lc &#39;CLUSTER_SECRET=21fsdfs09788ab9e0bf7gsds684d375db80064efcfd3easfd34524d1649394289c /usr/local/bin/ipfs-cluster-service daemon&#39;<br>Restart=always<br>User=ubuntu<br>Group=ubuntu<br>[Install]  <br>WantedBy=multi-user.target</pre><p>enable the service</p><pre>$ sudo systemctl daemon-reload<br>$ sudo systemctl enable ipfs-cluster</pre><pre>$ ipfs-cluster-service init</pre><p>This will generate respective files and folders in your home path, in my case /home/ubuntu, the cluster id will be generated from the above command you can the below command to see the ipfs-cluster id</p><pre>$ ipfs-cluster-ctl id<br>13D3KooWF8M8fHEM8fHE6VqNWvEQRUFXUTBYFixcuHJRGsd7i7QnEN </pre><p>Till here do the same steps for all nodes, i.e. node 2 and node 3. except the cluster_secret.<br>Note: the cluster ip is unique for each cluster node.</p><p>To get the ipfs-cluster id</p><pre>ipfs-cluster-ctl id</pre><p>To list the cluster peers</p><pre>ipfs-cluster-ctl peers ls</pre><p>— continuing in part 2</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f62c3588c93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyperledger Besu — Private & Permissioned Network over EKS Cluster]]></title>
            <link>https://ravinayag.medium.com/hyperledger-besu-private-permissioned-network-over-eks-cluster-9b81b61d7202?source=rss-fe549d06e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b81b61d7202</guid>
            <category><![CDATA[aws-eks-public-private]]></category>
            <category><![CDATA[besu]]></category>
            <category><![CDATA[hyperledger-besu]]></category>
            <category><![CDATA[private-blockchain]]></category>
            <category><![CDATA[ethereum-2]]></category>
            <dc:creator><![CDATA[Ravinayag]]></dc:creator>
            <pubDate>Mon, 01 Aug 2022 13:04:02 GMT</pubDate>
            <atom:updated>2022-08-01T13:04:02.120Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hyperledger Besu — Private &amp; Permissioned Network over EKS Cluster</h3><p>I&#39;m happy to write this blog with my experience by deploying the Hperledger Besu — Private &amp; Permissioned Network over EKS. A kind of Production grade Setup</p><p><strong>Prerequisite : </strong><br>1, AWS Account with EKS Cluster<br>2, Hyperledger Besu client ( EVM machine)<br>3, Helm chart &amp; kubectl<br>Configure your local system with AWS IAM creds with all required privileges to launch the EKS cluster. So we can use the `eksctl` tool to launch the cluster from the command line.</p><pre>$ aws configure</pre><p>Please keep eye on the <a href="https://besu.hyperledger.org/en/stable/Tutorials/Kubernetes/Overview/">official ref doc for Hyperledger besu updates</a>.<br>Let&#39;s launch the EKS cluster with the below config.</p><p>Clone the repo and run the below cmd</p><pre>$ eksctl create cluster -f ./cluster/cluster.yml</pre><ol><li>Your .kube/config should be connected to your cluster automatically, if not, please run the following:</li></ol><pre>aws sts get-caller-identity<br>aws eks --region us-east-2 update-kubeconfig --name besucluster</pre><p>2, Install the EBS drivers for local volumes where the pod can use the storage space to write the blocks.</p><pre>CLUSTER_NAME=besucluster<br>AWS_REGION=us-east-2<br>AWS_ACCOUNT=1234567890<br></pre><pre>eksctl create iamserviceaccount --name ebs-csi-controller-sa --namespace kube-system --cluster $CLUSTER_NAME --region $AWS_REGION --attach-policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy --approve --role-only --role-name AmazonEKS_EBS_CSI_DriverRole  </pre><pre>eksctl create addon --name aws-ebs-csi-driver --cluster $CLUSTER_NAME --region $AWS_REGION --service-account-role-arn arn:aws:iam::$AWS_ACCOUNT:role/AmazonEKS_EBS_CSI_DriverRole --force</pre><pre><br>Note: Repace your Account aws account id with above</pre><p>3, Now install the IAM Secret Manager and CSI driver, <br>Note: I have used helm here for better package management to install the required drivers.</p><pre>helm repo add secrets-store-csi-driver https://kubernetes-sigs.github.io/secrets-store-csi-driver/charts </pre><pre>helm install --namespace kube-system --create-namespace csi-secrets-store secrets-store-csi-driver/secrets-store-csi-driver </pre><pre>kubectl apply -f https://raw.githubusercontent.com/aws/secrets-store-csi-driver-provider-aws/main/deployment/aws-provider-installer.yaml  </pre><pre>POLICY_ARN=$(aws --region us-east-2 --query Policy.Arn --output text iam create-policy --policy-name besu-node-secrets-mgr-policy --policy-document </pre><pre>&quot;Version&quot;: &quot;2012-10-17&quot;,     <br>&quot;Statement&quot;: [ {         <br>       &quot;Effect&quot;: &quot;Allow&quot;,         &quot;<br>       &quot;Action&quot;:[&quot;secretsmanager:CreateSecret&quot;,&quot;secretsmanager:UpdateSecret&quot;,&quot;secretsmanager:DescribeSecret&quot;,&quot;secretsmanager:GetSecretValue&quot;,&quot;secretsmanager:PutSecretValue&quot;,&quot;secretsmanager:ReplicateSecretToRegions&quot;,&quot;secretsmanager:TagResource&quot;],         <br>&quot;Resource&quot;: [&quot;arn:aws:secretsmanager:us-east-2:$AWS_ACCOUNT:secret:besu-node-*&quot;]     <br>       } ] <br>}&#39;)</pre><pre>kubectl create namespace besu</pre><pre>eksctl create iamserviceaccount --name besu-node-secrets-sa --namespace besu --region=us-east-2 --cluster besucluster --attach-policy-arn &quot;$POLICY_ARN&quot; --approve --override-existing-serviceaccounts</pre><p>With the above 3 steps, your AWS EKS cluster is ready to launch Ethereum private network using hyper ledger besu.</p><p>4, I have customized as per my requirements, and the repos available for ref. <br>Change the directory to <strong><em>helm</em></strong></p><p>for genesis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8BvXesdZ4TOhslN1d4eWaA.png" /></figure><p>for boot nodes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iAWL_xIuUuESlFeVTK999A.png" /></figure><p>for validators :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nYB3LY4Tdh4RHVoCmff-Rg.png" /></figure><p>Once you configure as above, for all three, you are good to go and launch the nodes one by one.</p><pre>helm install genesis ./charts/besu-genesis --namespace besu --values ./values/genesis-besu.yml</pre><pre># bootnodes <br>helm install bootnode-1 ./charts/besu-node --namespace besu --values ./values/bootnode.yml<br>helm install bootnode-2 ./charts/besu-node --namespace besu --values ./values/bootnode.yml</pre><pre><br># validators<br>helm install validator-1 ./charts/besu-node --namespace besu --values ./values/validator.yml<br>helm install validator-2 ./charts/besu-node --namespace besu --values ./values/validator.yml<br>helm install validator-3 ./charts/besu-node --namespace besu --values ./values/validator.yml<br>helm install validator-4 ./charts/besu-node --namespace besu --values ./values/validator.yml</pre><p>Now all the nodes are up and we can see the logs to confirm the blocks are producing.</p><pre>kubectl logs pod/besu-node-validator-2-0 --tail 10 -f</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e13Pg_AYuTuih-5m6KH4pw.png" /></figure><p>Now the nodes are connected to their peers and producing the blocks in the network with the Kubernetes cluster.,So How to do the transaction in the network?</p><p>we will launch another node — the RPC node for public access and connect metamask to do transactions.</p><pre># rpc node<br>helm install rpc-1 ./charts/besu-node --namespace besu--values ./values/reader.yml</pre><p>after the launch of RPC node, check the RPC connected to the network and import the blocks. now will launch the ingress controller for this node</p><pre>helm repo add ingress-nginx <a href="https://kubernetes.github.io/ingress-nginx">https://kubernetes.github.io/ingress-nginx</a><br>helm repo update<br>helm install besu-network-ingress ingress-nginx/ingress-nginx \<br>   --namespace besu \<br>   --set controller.ingressClassResource.name=&quot;nginx-2&quot; \<br>   --set controller.ingressClassResource.controllerValue=&quot;k8s.io/ingress-nginx-2&quot; \<br>   --set controller.replicaCount=1 \<br>   --set controller.nodeSelector.&quot;kubernetes\.io/os&quot;=linux \<br>   --set defaultBackend.nodeSelector.&quot;kubernetes\.io/os&quot;=linux \<br>   --set controller.admissionWebhooks.patch.nodeSelector.&quot;kubernetes\.io/os&quot;=linux \<br>   --set controller.service.externalTrafficPolicy=Local \<br>   --set controller.ingressClassResource.enabled=true \<br>   --set controller.IngressClassByName=true</pre><pre>#now apply the ingress service.</pre><pre>kubectl apply -f ../ingress/besu-ingress-rules.yml</pre><p>Now use the address configured in the genesis file with your private keys in metamask to import the wallet. Configure your RPC URL in metamask and will get our initial wallet balance and we can play around with metamask.</p><p><strong>Next Topic : </strong><br>Adding MTLS for the node&#39;s communication and adding a new validator from outside the EKS cluster</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b81b61d7202" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple Mail Notifications using SMTP protocol on Linux systems]]></title>
            <link>https://ravinayag.medium.com/simple-mail-notifications-using-smtp-protocol-on-linux-systems-d23371045311?source=rss-fe549d06e9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d23371045311</guid>
            <category><![CDATA[linux-notification]]></category>
            <category><![CDATA[linux-mail]]></category>
            <category><![CDATA[linux-email-notifications]]></category>
            <category><![CDATA[msmtp]]></category>
            <category><![CDATA[simple-email-service]]></category>
            <dc:creator><![CDATA[Ravinayag]]></dc:creator>
            <pubDate>Thu, 20 Jan 2022 19:11:07 GMT</pubDate>
            <atom:updated>2022-01-20T19:11:07.096Z</atom:updated>
            <content:encoded><![CDATA[<p>In many cases, we used to configure the postfix/Sendmail mail systems for simply sending email notifications from the command line. but it was a very hard task to make it happen and also needs maintenance for several security reasons. <br>A long time ago i used to do with the ssmtp package but this library is not maintained, recently come to know with mstmp package and it was a replacement for ssmtp when i read some blogs and has some good features too. I wrote this article partly as a reference for myself.</p><p>A quick brief about the ssmtp/msmtp :</p><p><strong>[s,m]SMTP</strong> is a small simple utility that let&#39;s relay your Linux system emails to mail servers like Google , Microsoft Office 365 accounts or other mail providers. It&#39;s a pretty simple and straightforward utility that forwards your Linux system’s emails to reliable relay mail servers like Google or other providers and then email is forwarded to the destination addresses using those SMTP servers addresses.(smtp.gmail.com or mail.yourdomain.com). <br><em>Please keep in mind:</em> This is not a full-fledged mail server, it&#39;s just a utility that forwards emails to an external email address for automation purposes or some other.</p><p><strong>Note:</strong> For the people using Gsuite accounts. <br>If you using Gmail an email account, use pgp to store your password securely. If your account gets locked due to the different locations between you and the server. <br>If you find difficulties logging in from your server to Gmail, you might want to follow the steps provided in <a href="https://support.google.com/mail/answer/7875">Google Support Site</a>.</p><p><strong>Let&#39;s begin to install</strong></p><p>Before we install MSMTP, we’ll update our server.</p><pre>$ sudo apt-get update</pre><h3>Installing MSMTP</h3><pre>$ sudo apt-get -y install msmtp</pre><h3>Installing CA- certificates</h3><p>We need Certificate Authority (CA) certificates so that we can connect using SSL / TLS to the email server. <br>Check whether your server already has a ca-certificates package installed or not using the command below :</p><pre>$ dpkg -l | grep ca-certificates<br>ii  ca-certificates                    20210119~20.04.2                      all          Common CA certificates</pre><p>you will get similar to above if already installed. If not, then you need to install this package by running the below command :</p><pre>$ sudo apt-get -y install ca-certificates</pre><h3>Configuring MSMTP</h3><p>msmtp supports two locations: ~/.msmtprc and /etc/msmtprc, at your preference. one is for the local users and the other is for the whole system. In this tutorial, we&#39;ll use /etc/msmtprc. <br>Create an MSMTP configuration on /etc/msmtprc with the content below. You will have to enter your Gmail username and password on this file.</p><pre># Set default values for all following accounts.<br>defaults<br>tls on<br>auth on<br>tls_trust_file /etc/ssl/certs/ca-certificates.crt<br>logfile /var/log/mail/msmtp.log</pre><pre># Gmail<br>account gmail<br>host smtp.gmail.com<br>port 587<br>from youremail@gmail.com<br>user youremail@gmail.com<br>password xxxxxx</pre><pre># yandex<br>account otherprovider<br>host secure.emailsrvr.com<br>port 587<br>from devops@otherprovider.com<br>user devops@otherprovider.com<br>password xxxxx</pre><pre># Set a default account<br>account default : gmail</pre><p>You have configured two email accounts as above, we can use either of the account when sending email by calling profile names. we do not need to call the default account since it&#39;s mentioned in the last line. for more customization options refer to this <a href="https://wiki.debian.org/msmtp"><em>link</em></a><em> and this </em><a href="https://marlam.de/msmtp/msmtp.html#Authentication-commands"><em>link</em></a></p><p>that&#39;s it, we can start to use mstmp to send mails in the below format.</p><pre>$ echo -e “Subject: MySubject\r\n\r\nThis is Text of mybody message” | msmtp -v <a href="/service/mailto:ravindran@solulab.com">a</a>dmin@example.com</pre><p>However many applications use the mailx or mail command to send emails by default mail.utils program since it will be installed in ubuntu by default. so msmtp format is not compatible with default mail.utils package. so we have to use bsd_mailx package for the mail formats. Use the below link to download and install using apt commands.</p><pre>$ sudo apt install <a href="http://archive.ubuntu.com/ubuntu/pool/main/libb/libbsd/libbsd0_0.10.0-1_amd64.deb">http://archive.ubuntu.com/ubuntu/pool/main/libb/libbsd/libbsd0_0.10.0-1_amd64.deb</a><br>$ sudo apt install <a href="http://archive.ubuntu.com/ubuntu/pool/main/b/bsd-mailx/bsd-mailx_8.1.2-0.20180807cvs-1_amd64.deb">http://archive.ubuntu.com/ubuntu/pool/main/b/bsd-mailx/bsd-mailx_8.1.2-0.20180807cvs-1_amd64.deb</a><br>$ sudo apt install libsecret-tools</pre><p><strong>Note :</strong> don’t install the default from ubuntu repository of bsd_mailx package because its always use the stable version which is 8.1.2- 2016 version, but we have to use 8.1.2–2018 version, you can download/install from the given link <a href="https://ubuntu.pkgs.org/20.04/ubuntu-main-amd64/">https://ubuntu.pkgs.org/20.04/ubuntu-main-amd64/</a></p><p>Once you install it will automatically create the link to bsd_mailx. then and there you can use the mail/mailx to send emails.</p><pre>/bin/echo TEXT | /usr/bin/mail -s SUBJECT you@mailmee.com</pre><p>Tips : If you need to encrypt the password field from clear plain text in the config file, Consider using the ‘passwordeval’ command or a key ring instead of this command</p><pre>passwordeval gpg -d ~/.msmtp.password.gpg</pre><p>Hope it helps for the ref….</p><p>Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d23371045311" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>