<?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 Thidasala Demintha Rathnayake on Medium]]></title>
        <description><![CDATA[Stories by Thidasala Demintha Rathnayake on Medium]]></description>
        <link>https://medium.com/@thidasala-demintha?source=rss-99dffe83f7d5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pCQzJnUvFMYkzI_FydC3sg.jpeg</url>
            <title>Stories by Thidasala Demintha Rathnayake on Medium</title>
            <link>https://medium.com/@thidasala-demintha?source=rss-99dffe83f7d5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:49:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thidasala-demintha/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[Keep Your AI APIs Running: A Practical Guide to Model Failover in WSO2 API Manager 4.6.0]]></title>
            <link>https://thidasala-demintha.medium.com/keep-your-ai-apis-running-a-practical-guide-to-model-failover-in-wso2-api-manager-4-6-0-42b9d542ba66?source=rss-99dffe83f7d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/42b9d542ba66</guid>
            <dc:creator><![CDATA[Thidasala Demintha Rathnayake]]></dc:creator>
            <pubDate>Mon, 08 Jun 2026 05:03:58 GMT</pubDate>
            <atom:updated>2026-06-08T05:03:58.557Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is WSO2 AI Gateway?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*heuD2FMjj_Fo4r14f-bA0Q.jpeg" /></figure><p>WSO2 AI Gateway is an enterprise-grade AI infrastructure management layer built into WSO2 API Manager 4.6.0. It sits between your applications and AI services, giving platform teams centralized control over cost, security, reliability, and observability across providers like OpenAI, Anthropic, AWS Bedrock, Google Gemini, and more. If you want to dig deeper, the <a href="https://apim.docs.wso2.com/en/4.6.0/ai-gateway/ai-gateway-overview/">WSO2 AI Gateway documentation</a> covers the full feature set.</p><p>This article focuses on one of its reliability capabilities: <a href="https://apim.docs.wso2.com/en/4.6.0/ai-gateway/multi-model-routing/failover/"><strong>Model Failover</strong></a>.</p><p>Picture this: your application is in production, users are actively chatting with your AI assistant, and then quietly, without any warning, your primary Claude model endpoint starts returning errors. Maybe Anthropic hit a brief outage. Maybe your API key billing ran out. Whatever the cause, every request starts failing, and your users see errors instead of answers.</p><p>WSO2 API Manager 4.6.0 ships with a <strong>Model Failover</strong> policy designed for exactly this situation. When your primary AI model endpoint fails, the gateway automatically reroutes traffic to a pre-configured fallback model, transparently, without any code change on the client side. Your users don’t need to know anything happened.</p><p>This guide walks through how to configure and test it, using Anthropic’s Claude models as the AI provider. I’ll cover the full setup, a reliable method for testing failover in a controlled way, what to look for in the logs to confirm it’s working, and the two pitfalls that catch most people out.</p><h3>How the Policy Works ?</h3><p>The gateway’s failover works in two phases:</p><p><strong>Phase 1: Inline failover:</strong> The first time a request goes out and the primary model returns an error (a 401, a 429, a 5xx), the gateway immediately retries the same request against your fallback model and returns the fallback’s response to your client. The primary is suspended for the duration you configured.</p><p><strong>Phase 2: Pre-emptive routing: </strong>While the primary is suspended, every subsequent request skips the primary entirely and goes straight to the fallback, no wasted round-trip to a known-failing endpoint.</p><p>Once the suspension window expires, the primary gets another chance. If it’s still failing, the cycle repeats.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dCtpyeXpafL2Dv8uJK8NBA.jpeg" /><figcaption><em>The gateway attempts the primary first, automatically switches to fallback on error, and keeps the primary suspended for the configured window</em></figcaption></figure><h3>Configure and Test: End-to-End Walkthrough</h3><p>The most reliable and controlled way to test failover is to configure your primary endpoint with a <strong>deliberately wrong API key</strong>. Anthropic returns a clean 401 Unauthorized when it sees an invalid key.</p><h4><strong>Step 1: Register the AI models via Admin Portal</strong></h4><p>Before configuring the policy, add the Anthropic models you intend to use to the Admin Portal. The Failover policy’s model picker only lists models that have already been registered under the Anthropic vendor in the Admin Portal . You’ll need at least two registered models, one for primary and one for fallback.</p><ol><li>Log in to <a href="https://localhost:9443/admin">https://localhost:9443/admin</a></li><li>Navigate to <strong>AI Service Providers → Anthropic</strong></li><li>Under <strong>Model Providers</strong>, add both model names (type each and press Enter):<br> claude-sonnet-4-5-20251001<br> claude-haiku-4-5-20251001</li><li>Click <strong>Update</strong></li></ol><blockquote><strong><em>Always verify model IDs against your Anthropic account before registering them.</em></strong><em> The name you enter here must exactly match the model ID that Anthropic’s API recognizes. If it doesn’t, even by one character, your fallback call will return a </em><em>404 not_found_error, both endpoints fail, and your client receives a </em><em>503 Service Unavailable. Get the exact IDs your account can access with:</em></blockquote><pre>curl https://api.anthropic.com/v1/models \<br>  -H &quot;x-api-key: &lt;your-anthropic-api-key&gt;&quot; \<br>  -H &quot;anthropic-version: 2023-06-01&quot;</pre><blockquote><em>Copy the </em><em>id value from each model in the response, that is the exact string to register here and to use in the Failover policy.</em></blockquote><h4><strong>Step 2: Create an AI API</strong></h4><ol><li>Log in to the Publisher portal<br><a href="https://localhost:9443/publisher">https://localhost:9443/publisher</a></li><li>Click <strong>Create API → AI API</strong></li><li>Set <strong>AI Service Provider</strong> to Anthropic, give it a name and context path, then click <strong>Create</strong></li></ol><h4><strong>Step 3: Configure two endpoints for the API</strong></h4><p>Navigate to <strong>API Configurations → Endpoints → Add New Endpoint</strong>. Create two production endpoints:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sUn0nesvjPD36zdZRa81Xg.png" /></figure><p>Set anthropic-primary-failing as the <strong>Primary</strong> endpoint for the API.</p><h4>Step 4: Attach the Failover policy</h4><ol><li>Navigate to <strong>API Configurations → Policies </strong>in publisher portal</li><li>Drag <strong>Model Failover (Under the common policies) </strong>onto the Request flow of the /v1/messages POST operation</li><li>Configure the policy:</li></ol><pre>Target Model: claude-sonnet-4-5-20251001 / Target Endpoint: anthropic-primary-failing<br>Fallback Model: claude-haiku-4-5-20251001 / Fallback Endpoint: anthropic-fallback-working<br>Request Timeout: 30<br>Suspend Duration: 60</pre><p>4. Click <strong>Save → Save and deploy</strong></p><h4>Step 5: Developer Portal: Get an access token</h4><ol><li>Log in to <a href="https://localhost:9443/devportal">https://localhost:9443/devportal</a></li><li>Create an application, subscribe to your new AI API with a Production key, and generate an access token</li></ol><h4>Step 6: Send your first request (triggers failover)</h4><pre>curl -X POST &quot;https://localhost:8243/&lt;your-api-context&gt;/1.0/v1/messages&quot; \<br>  -H &quot;Authorization: Bearer &lt;your-access-token&gt;&quot; \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;model&quot;: &quot;claude-sonnet-4-5-20251001&quot;,<br>    &quot;max_tokens&quot;: 1024,<br>    &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Say this is a test!&quot;}]<br>  }&#39; -k</pre><p>You should receive a <strong>200 OK</strong> response with a valid Claude Haiku reply, even though the primary key is invalid. That’s the failover in action. Check wso2carbon.log and you&#39;ll see a line like:</p><pre>INFO - AIAPIMediator Failover activated, switching to endpoint with model claude-haiku-4-5-20251001</pre><h4>Step 7: Send a second request within 60 seconds (confirms pre-emptive routing)</h4><p>Send the same request again immediately. This time look for a <em>different</em> log message:</p><pre>INFO - AIAPIMediator Applied failover configuration with model: claude-haiku-4-5-20251001</pre><p>The difference matters. “Applied failover configuration” means the gateway recognized the primary was still suspended and went straight to the fallback without even trying the primary. Faster response, no wasted round-trip.</p><h4>Step 8: Wait 60 seconds and test again (confirms the cycle resets)</h4><p>After the 60-second window expires, send the request once more. You’ll see “Failover activated” appear again, the gateway retried the primary, it failed again with 401, and the 60-second suspension clock reset. This confirms the full lifecycle is working correctly.</p><h4>Interpreting the Log Messages</h4><p>Two log lines tell you everything you need to know about which phase fired:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QsQdTSDGFjJBkxSY_HXFsw.png" /></figure><p>If you see “Failover activated” on every single request with no “Applied failover configuration” appearing in between, your Suspend Duration is probably set to 0, which means the gateway forgets the failure after each request and always tries the primary first.</p><h3>Things to Watch Out For</h3><h4>1. Request Timeout and Suspend Duration</h4><p>Both fields have defaults: <strong>Request Timeout</strong> defaults to 30000 milliseconds and <strong>Suspend Duration</strong> defaults to 0 seconds. You can leave them as-is to get started, but it&#39;s worth understanding what those defaults mean for your setup:</p><ul><li><strong>Request Timeout</strong>: controls how long the gateway waits for a response before considering the request failed. 30000 ms is a reasonable starting point; adjust based on your model&#39;s typical response time.</li><li><strong>Suspend Duration</strong>: 0 means the gateway does not remember failures across requests; each request tries the primary endpoint fresh (Phase 1 inline failover only). Set this to 60-300 seconds if you want the gateway to pre-emptively skip a recently failed endpoint for subsequent requests (Phase 2).</li></ul><h4>2. Unreachable endpoints will not trigger failover</h4><p>It might seem natural to point the primary endpoint at something like <a href="https://localhost:9999/">https://localhost:9999</a> to simulate a “down” server. This won’t work, the failover policy works by analyzing the response from your AI provider’s endpoint. Therefore, if you configure your primary endpoint URL incorrectly, failover won’t kick in and every request will fail with a connection error rather than gracefully switching to your fallback.</p><p>Keep this in mind when configuring endpoint URLs: the policy handles reachable endpoints that return error responses; endpoints that are completely unreachable fall outside its scope.</p><h4>3. Multiple Failover Policies on the Same API</h4><p>You can attach more than one Failover policy to the same API as long as each one targets a different primary model. This lets you set up model-specific fallback chains that all coexist on one API:</p><ul><li>claude-sonnet-4-5-20251001 fails over to claude-haiku-4-5-20251001</li><li>claude-opus-4-5-20251001 fails over to claude-sonnet-4-5-20251001</li></ul><p>The gateway uses the model field in each incoming request to decide which policy to apply, so different callers specifying different models in their payload automatically get the right failover chain, no extra configuration needed on the client side.</p><h4>4. Using AWS Bedrock? Here’s How the Policy Fields Differ</h4><p>If your AI API is backed by <strong>AWS Bedrock</strong>, the Failover policy configuration has three fields per entry instead of two. AWS Bedrock is a multi-model provider, a single endpoint that hosts models from multiple families like Meta, Anthropic, and DeepSeek. To identify exactly which model to route to, the policy UI asks for:</p><ul><li><strong>Provider</strong>: the model family (Meta, Anthropic, DeepSeek, etc.), sourced from what you have registered in the Admin Portal</li><li><strong>Model</strong>: the specific model within that family, which populates once you select a Provider</li><li><strong>Endpoint</strong>: the AWS Bedrock endpoint to use, as configured under API Configurations → Endpoints</li></ul><p>For direct single-provider APIs (Anthropic, OpenAI, and so on) the Provider dropdown is not present, you select Model and Endpoint only, as shown in the configuration steps above.</p><h3>Wrapping Up</h3><p>Model Failover is one of those features you configure once and then largely forget about, until the day it saves you. The setup is a handful of portal steps, the test is a few curl commands and a log line, and the operational behaviour is predictable once you understand the two-phase pattern.</p><h3>References</h3><p><a href="https://apim.docs.wso2.com/en/4.6.0/ai-gateway/multi-model-routing/failover/">AI Gateway: Model Failover (APIM 4.6.0)</a><br><a href="https://apim.docs.wso2.com/en/4.6.0/ai-gateway/multi-model-routing/overview/">AI Gateway: Multi-Model Routing Overview (APIM 4.6.0)</a><br><a href="https://apim.docs.wso2.com/en/4.6.0/ai-gateway/overview/">AI Gateway Overview (APIM 4.6.0)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42b9d542ba66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Biggest cyber attacks in 2020]]></title>
            <link>https://thidasala-demintha.medium.com/biggest-cyber-attacks-in-2020-f0973313134f?source=rss-99dffe83f7d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0973313134f</guid>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[ransomware-attack]]></category>
            <dc:creator><![CDATA[Thidasala Demintha Rathnayake]]></dc:creator>
            <pubDate>Fri, 04 Dec 2020 09:41:13 GMT</pubDate>
            <atom:updated>2020-12-04T09:41:13.816Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-lyi7_8YinnGzyLH.jpg" /><figcaption>source:<a href="https://blog.getcomplied.com/10-ways-to-prevent-cyber-attacks-in-2020/">https://blog.getcomplied.com/10-ways-to-prevent-cyber-attacks-in-2020/</a></figcaption></figure><p>The Year 2020 is becoming one of the remarkable year due to COVID-19 and the exponential growth of cyber attacks. Due to the COVID-19 pandemic, most of the organizations have shifted their focus towards the health crisis. The work-from-home mechanism has opened up number of opportunities to the cyber criminals. According to the statistics of <a href="https://securityboulevard.com/2020/08/5-biggest-data-breaches-of-2020-so-far/">Security Boulevard,</a> Number of data breaches in 2020 has almost doubled with 3,950 confirmed breaches against 2,103 recorded breaches in 2019. Within first six months of 2020, number of well known companies were attacked, and their account credentials, sensitive data, confidential and financial information were exposed.</p><p>Lets have a look at the biggest cyber attacks in 2020 so far.</p><h4><strong>1. Twitter breach</strong></h4><p>On 15th July 2020, 130 twitter accounts were hacked including some high profiles such as, Tesla CEO - Elon Musk, Microsoft co-founder - Bill Gates, Former US president - Barak Obama, Current US president Joe Biden, Amazon CEO -Jeff Bezos and Mike Bloomberg. It all started with a phone spear phishing attack to twitter employees in order to get their credentials to access to the twitter account management system. After attackers got access to the accounts, they post a tweet noted <em>“All Bitcoin sent to the address below will be sent back double! If you send $1000, I will send back $2000 [the link]. Enjoy!”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*4qPilGIfbPxnhn8ZqCzzTA.jpeg" /><figcaption>source:<a href="https://www.businessinsider.com/elon-musk-bill-gates-twitter-hacked-bitcoin-crypto-giveaway-scam-2020-7">https://www.businessinsider.com/elon-musk-bill-gates-twitter-hacked-bitcoin-crypto-giveaway-scam-2020-7</a></figcaption></figure><p>Cryptocurrency research companies reveled that within 24 hours of this tweet, bitcoin wallets got a value of $120,000 through 518 transactions. Attackers took further step to download private messages, email accounts, address books, images &amp; videos up to 8 user accounts. This cause a huge damage to the reputation of twitter and stock market values went down dramatically.</p><h4><strong>2. Software AG Ransomware attack</strong></h4><p>Software AG is Germany’s second-largest software vendor and one of the largest software vendors in Europe. On 3rd October 2020, the IT infrastructure of Software AG was affected by a Clop ransomware attack. Clop ransomware is designed to encrypt the data and rename each file by appending the &quot;<strong>.Clop</strong>&quot; extension. Attackers demand US$23 million ransom in order to provide the decryption key. Although the customer-facing cloud services were not affected by this attack, employee personal information and confidential files from Software AG’s internal network were compromised. Since Software AG was not agreed to pay US$23 million ransom, criminals have publicly released some of the data obtained during the attack.</p><h4><strong>3. Marriott Data Breach</strong></h4><p><strong>Marriott International </strong>is an American multinational diversified hospitality company that manages and franchises a broad portfolio of hotels and related lodging facilities. On 31st March 2020, they disclosed a security breach that impacted to 5.2 million hotel guest records. Hackers have accessed to the customer records using login credentials of two Marriott employees. The accessed data consist of names, birth dates, telephone numbers, travel information, and loyalty program information of Marriott customers. Still, the hotel has not disclosed about how the login details of its employees were compromised and who carried out the attack.</p><h4><strong>4. New Zealand stock exchange goes offline</strong></h4><p>New Zealand’s Stock Exchange Market (NZX) suffered cyber attacks for four days in a row and forced to close on the fourth day of the attacks. According to Zealand’s cyber-security organization, NZX was first hit by a distributed denial of service (DDoS) attack which disrupted the cash and debt markets as well as the Fonterra shareholders market, including its derivatives. The source of the cyber attack was said to be originated from offshore and the exact source is still unknown.</p><h4>5. Easy Jet cyber attack</h4><p>Easy Jet is a British multinational low-cost airline group.On 19th May 2020,They revealed that, they were attacked by a group of unnamed Chinese hackers. The hacking tools and techniques used for the attack are still under investigation. Easy Jet admits that millions of passenger data including email addresses, travel details were robbed. Criminals have accessed more than 2000 credit and debit cards of Easy Jet customers. The airline said they were reaching out to all customers who had been affected to warn them to be wary of any phishing attempt.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0973313134f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Payment Card Industry Data Security Standards (PCI DSS)]]></title>
            <link>https://thidasala-demintha.medium.com/payment-card-industry-data-security-standards-pci-dss-27389923683a?source=rss-99dffe83f7d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/27389923683a</guid>
            <category><![CDATA[pci-dss]]></category>
            <dc:creator><![CDATA[Thidasala Demintha Rathnayake]]></dc:creator>
            <pubDate>Thu, 03 Dec 2020 18:36:18 GMT</pubDate>
            <atom:updated>2020-12-03T18:36:18.106Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/830/0*Czr4oeQb-8edDv7U.jpg" /><figcaption>source: <a href="https://documentmedia.com/article-2785-DATAMATX-Meets-Requirements-for-Payment-Card-Industry-Standards.html">https://documentmedia.com/article-2785-DATAMATX-Meets-Requirements-for-Payment-Card-Industry-Standards.html</a></figcaption></figure><p>The payment card industry data security standard or PCI DSS was developed to encourage and enhance the data security of the cardholders and to facilitate the broad adoption of consistent data security measures globally. It applies to all merchants and service providers that process, transmit or store cardholder data. The PCI DSS was launched in 2004 as a result of collaboration between major credit card brands such as American Express, Discover, JCB, MasterCard and Visa.</p><p>All the organizations that accept credit/debit cards and store, process or transmit cardholder data need to be comply with this standard. The Compliance requirements for merchants and service providers may differ based on the size of the organization and the volume of transactions it undertakes. The criteria that a merchant or service provider must meet are set by the individual payment brands, each of which has its own compliance program.</p><p>To become a PCI DSS compliant, merchants and service providers must abide to 12 requirements which are are organized into six controlled objectives. ‘<em>figure 1’</em> shows the security standards defined by the PCI security standard council.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VT4XGESqzcZNQRnZmJwU6Q.png" /><figcaption>Figure 1: security standards defined by PCI security standard council source:<a href="https://www.pcicomplianceguide.org/a-first-look-at-pci-dss-3-1/">https://www.pcicomplianceguide.org/a-first-look-at-pci-dss-3-1/</a></figcaption></figure><p>The PCI DSS is a standard, not a law. It is enforced through contracts between merchants, acquiring banks and payment brands. Compliance with the above standard are notoriously complicated and many organizations fail to maintain their compliance.Verizon’s 2018 security report found that nearly half (47.5%) of organizations it assessed for interim PCI DSS compliance, had failed to maintain all security controls. If a Businesses found to be non-compliance, it will be subject to pay PCI DSS fines. The fine amount varies depending on many factors, including the scope of exposure and the degree of non-compliance. Penalty can range from $5,000 to $100,000 per month. These fees can also be increased based on how long a company continues to be non-compliance. Those who are not compliance within seven months can expect to pay up to $100,000 per month until they meet PCI DSS requirements.</p><p>Organizations can asses the security of their cardholder data using Self-Assessment Questionnaires (SAQ). There are several types of self-assessment questionnaires, each of which has different requirements. some require internal and external vulnerability scans and regular penetration testing. In order to assess the organization, a report on compliance (ROC) must be conducted by a PCI qualified security Assessor (QSA), who will issue a formal report to the PCI security standards Council to attest that the organization is in full compliance with the standards. Although the organizations’ requirements are differ, PCI DSS gap analysis is a useful first step to determine the organization’s current compliance levels and outline the specific steps needed to achieve to compliance with the standards. It includes a detailed review of compliance activities such as on-site interviews with key staff, an assessment of the in-scope system components and configurations, and a physical and logical data flow analysis, in addition to examining out-of-scope components.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27389923683a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why we need demilitarized zone in a network?]]></title>
            <link>https://thidasala-demintha.medium.com/why-we-need-demilitarized-zone-in-a-network-702b2279ba93?source=rss-99dffe83f7d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/702b2279ba93</guid>
            <category><![CDATA[demilitarized-zone]]></category>
            <dc:creator><![CDATA[Thidasala Demintha Rathnayake]]></dc:creator>
            <pubDate>Thu, 03 Dec 2020 18:35:42 GMT</pubDate>
            <atom:updated>2020-12-03T18:35:42.004Z</atom:updated>
            <content:encoded><![CDATA[<p>Demilitarized zone or in short terms DMZ is used to improve the security of an organization’s network by segregating devices such as computers and servers on the opposite sides of a firewall. It is sort of creating two separate networks. The question is why do we need a demilitarized zone and how does it improve the security?</p><p>Let’s take an example, we have a network that belongs to a company and this company has computers and servers behind their firewall. These servers could be a web server and an email server, those servers need to be accessed by people through the internet, so that the company can stay in business.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wxJ0H2G59sGF7ogH4GVeDw.jpeg" /></figure><p>Since these servers are behind the company’s firewall, they are within the company’s private network. Now the company is letting people in, to their private network through their firewall, from an untrusted network such as internet. This could cause a security concern because, as people are accessing these servers, hackers could use this as an opening to cause havoc on the company’s network since they already pass the firewall. Now hackers can try and access other sensitive data that are behind the firewall such as a database server, where sensitive data is kept. Hackers may even try to plant a virus so this is a big security concern for the organization.</p><p>In order to avoid these kind of security issues, company can separate the web and email servers outside of the company’s internal network and keep them opposite side of the firewall for public access. Now the servers would still be in the same building but, they would be on the other side of the firewall. Now the people might not be accessed to the company’s sensitive data which are kept behind the company’s internal firewall. These servers are now out in front, facing the internet and fully exposed. This is called a Demilitarized zone</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*IlUfeZasorhTofeTRYGU0A.png" /></figure><p>We call that these servers are now in perimeter network, and this perimeter network can also act like a screened network to detect any malicious activity before it can get behind the firewall and into the company’s internal network. A DMZ divides a network into two parts by taking devices from inside the firewall and then putting them outside the firewall.</p><p>Here, DMZ setup only uses one firewall, but a more secure DMZ will use two firewalls with an extra firewall in front of the DMZ. This second firewall adds an extra layer of protection to make sure that only legitimate traffic can access the DMZ and it makes lot harder for hackers to penetrate into the company’s Internal network, because they would have to go through two different firewalls.</p><p>One common use of a DMZ in our home is to put a gaming console such as an Xbox or PlayStation and configuring it as a DMZ host. This is done because a lot of these gaming consoles are often used for online gaming, and gamers don’t want any interference that could happen from a firewall. So they don’t want to have to mess with any kind of port forwarding configuration, which can sometimes be a hassle. They can just go into the DMZ settings in the router and put in the gaming console’s IP address as the DMZ. It’s also important to note that the device in the DMZ should be configured with a static IP Rather than a dynamic IP. So in this set up the home router serves as the firewall and these computers are safe behind the routers firewall. But, As I mentioned above, the gaming console is on the opposite side of the router’s firewall and placed in the DMZ and fully exposed to the Internet. So in conclusion that’s what DMZ means. A demilitarized zone.In the real world it’s an area where the military is forbidden or in the computing world, It’s where firewall protection is forbidden.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=702b2279ba93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5G, the future of the world]]></title>
            <link>https://thidasala-demintha.medium.com/5g-the-future-of-the-world-da11f27bc7a0?source=rss-99dffe83f7d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/da11f27bc7a0</guid>
            <category><![CDATA[5g]]></category>
            <dc:creator><![CDATA[Thidasala Demintha Rathnayake]]></dc:creator>
            <pubDate>Mon, 30 Nov 2020 20:16:31 GMT</pubDate>
            <atom:updated>2020-11-30T20:16:31.113Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ae1u3qjrLsizuVBE.jpeg" /><figcaption><a href="https://www.counterpointresearch.com/5g-network-slicing-versus-private-networks-benefits-drawbacks/">source: https://www.counterpointresearch.com/5g</a></figcaption></figure><p>5g is the latest generation of mobile network designed to connect virtually everyone and everything together such as smart devices, vehicles, and even industrial machinery.</p><p>With the 5g technology, users can experience fast download speeds and insanely fast response time referred as latency. Latency is the time it takes for devices to respond to each other over any wireless network. 3g networks have a response time around 100 milliseconds, 4g networks around 30 milliseconds and 5g networks predict the latency figures as low as 1 millisecond. This virtually instantaneous communication will open up a new world of possibilities for anything with an established network connection. Interactive technologies such as augmented reality and self-driving cars require extremely low latency to work effectively, pushing 5g networks to not only hit their goal of 1 millisecond latency but to surpass it.</p><p>5g signals operate over previously untouched radio frequencies. part of the network operates in a band known as “sub 6” which is the spectrum between 600 megahertz and 6 gigahertz, which is the spectrum that 4g lte also shares. However, only 5g can go above and beyond these frequencies into higher bandwidths, which makes it unique. 5g signals can utilize higher band of radio frequencies from 24 gigahertz to 86 gigahertz resulting higher data rates and performance, but with the trade-off of reduced range. These new 5g radio waves can carry way more data to and from devices, but the providers have to install a large number of small cellular towers in close proximity to each other to deliver the network. These towers hold cell sites that can be easily fixed to building roof tops or light poles, but each one has to be physically installed which is why the rollout of 5g is going to take some time.</p><p>5g operates on three different spectrum bands between 600 megahertz and 86 gigahertz. Let’s quickly go through those spectrum bands.</p><p><strong>1. Low band spectrum</strong></p><p>5g running on the low band will only achieve the speed around 20 times faster than the current 4g network, with the peak data speeds around 100 megabits per second, but the low band offers the widest coverage and best wall penetration.</p><p><strong>2. High band spectrum</strong></p><p>5g running on high band spectrum offers the highest performance. However it’s not without its drawback either, high band spectrum can offer peak speeds of up to 10 gigabits per second and has almost non-existent latency, but its coverage area is narrow and penetration is poor. In order to utilize this network to its full potential, users will have to access plenty of cells that are all relatively close by.</p><p><strong>3. mid-band spectrum</strong></p><p>Mid-band spectrum offers a balance of both speed and coverage. It provides faster speeds and lower latency than low band, with peak speeds of up to 1 gigabits per second. This doesn’t compete with high band in terms of power, but in real world use and for most applications it will be more than enough. The coverage and penetration of mid band will also make it a very reliable and consistent connection.</p><p>The most prominent advantage of 5g over previous networks is the speed. The predicted speeds of 5g is up to 10 gigabits per second, means a 100 times increase in performance compared to existing 4g networks. The speeds will unlock the full capabilities of other emerging technologies including self-driving cars, drones, virtual reality, augmented reality and of the internet of things. Another advantage of 5g is the latency Improvements. Latency of the 5g network will be around or less than 1 millisecond which is quicker than human visual processing. This makes it possible to control devices remotely in near real time.</p><p>Another great aspect of 5g is the capacity. It can deliver up to 1 000 times more capacity than 4g, which basically means more room for connected devices and users. This combination of capacity and speed will greatly improve data transfer rate of the network which is also known as the bandwidth.</p><p>There are a ton of good things to say about 5g, but there are some groups who believe that 5g is a toxic technology, due to the microwave spectrum radiations. 5g does emit microwave radiation same as the 4g, wi-fi, or Bluetooth. The reason why there’s so much concern about 5g is that the higher frequencies that it operates. But the scientific evidences shows that, even the highest 5g frequencies sit way below the types of harmful radiations that are considered unsafe for continuous exposure. One major downside of 5g is the increased battery drain in smart devices. However this issue is sure to be addressed and rectified within the next generations. Currently, 5g coverage is only available in defined areas of specific cities but the expansion will start to gain momentum again as we move beyond the restrictions of the 2020 pandemic. The bottom line of 5g is that it’s safe fast and undoubtedly going to change the connected world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da11f27bc7a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Most Effective Data Encryption Techniques]]></title>
            <link>https://thidasala-demintha.medium.com/the-most-effective-data-encryption-techniques-68b3c6117534?source=rss-99dffe83f7d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/68b3c6117534</guid>
            <category><![CDATA[asymmetric-encryption]]></category>
            <category><![CDATA[hashing]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[symmetric-encryption]]></category>
            <dc:creator><![CDATA[Thidasala Demintha Rathnayake]]></dc:creator>
            <pubDate>Mon, 30 Nov 2020 20:09:40 GMT</pubDate>
            <atom:updated>2020-12-11T07:44:15.535Z</atom:updated>
            <content:encoded><![CDATA[<p>Due to the exponential increment in cybercrimes, network security plays an important role in today’s organizations. Although there are number of techniques to protect the data from attacks, it is very important to identify correct technique based on the specific situation. Encryption is the conversion of data from a readable format into an encoded format that can only be read or processed after it’s been decrypted. Encryption is widely used by large organizations and individuals to secure the data sent between web browsers and a server. Let’s see how encryption works and different kinds of encryption techniques used in the industry.</p><p>Encryption is the process that encodes a message or a file, so that it can only be read by specific people. Encryption uses an algorithm to encrypt the data and uses a key for the receiving party to decrypt the information. The original message we are encrypting is called as the plaintext and the encrypted message is called the ciphertext.There are several data encryption approaches. Most internet security (IS) professionals break down encryption into three distinct methods: symmetric, asymmetric, and hashing. Let’s explore each technique separately.</p><h4><strong>1. Symmetric encryption</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*7HGzlSoVJHBdlLLp6tXw2Q.png" /><figcaption><em>source: </em><a href="https://www.ssl2buy.com/wiki/symmetric-vs-asymmetric-encryption-what-are-differences"><em>https://www.ssl2buy.com/wiki/symmetric-vs-asymmetric-encryption-what-are-differences</em></a></figcaption></figure><p>In symmetric encryption, same key is used to encrypt and decrypt the data. The communicating parties should exchange the key so that it can be used in the decryption process. At first, the data is converted to a encrypted form using block algorithms or stream algorithms so that it cannot understood by anyone who does not possess the secret key to decrypt it. Once the intended recipients possess the key and the message, the algorithm reverses its action so that the message is returned to its original and understandable form. The secret key could be a specific password/code or it can be random string of letters or numbers that have been generated by a secure random number generator (RNG). Due to the better performance and faster speed of symmetric encryption, it is typically used for bulk encryption of large amounts of data.</p><h4><strong>2. Asymmetric encryption</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*LyLkWUWMvugwAaq1XOMaeg.png" /><figcaption>source: <a href="https://www.ssl2buy.com/wiki/symmetric-vs-asymmetric-encryption-what-are-differences">https://www.ssl2buy.com/wiki/symmetric-vs-asymmetric-encryption-what-are-differences</a></figcaption></figure><p>Asymmetric Encryption encrypts and decrypts the data using two separate, yet mathematically connected cryptographic keys. These keys are known as a ‘<strong>Public Key</strong>’ and a ‘<strong>Private Key</strong>.’ As the name implies, public key is freely available to anyone, whereas the private key remains with the intended recipients who need it to decipher the messages. Both keys are simply large numbers that are not identical but are paired with each other. Symmetric cryptography carries a higher risk around key transmission, as the same key need to be shared among others to decrypt the message while asymmetric encryption offers a better security by using two different keys to encrypt and decrypt the messages, because the private key need to be shared publicly. Asymmetric encryption is commonly used for digital signatures and to confirm the identity in cryptocurrency transactions.</p><h4><strong>3.</strong> <strong>Hashing</strong></h4><p>Hashing is the process of converting an input of any length in to a fixed sized string of text using a mathematical function. The message to be hashed is called input, the algorithm used is called the hash function and the output is called hash value. There are many hashing algorithms such as MD5, SHA-1, SHA-2, NTLM and etc. Each message has its unique hash, making minor changes to the information easily traceable. Data encrypted with hashing cannot be deciphered or reversed back into its original form. That’s why hashing is used only as a method of verifying data.</p><p>As I explained Symmetric encryption, Asymmetric encryption and hashing are the main encryption techniques used in the industry. Organizations and Individuals should aware of these techniques in order to secure their classified information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68b3c6117534" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Personas in API Management environment]]></title>
            <link>https://thidasala-demintha.medium.com/personas-in-api-management-environment-a1073c05cb43?source=rss-99dffe83f7d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1073c05cb43</guid>
            <category><![CDATA[api-management]]></category>
            <category><![CDATA[personas]]></category>
            <category><![CDATA[business-roles]]></category>
            <category><![CDATA[technical-roles]]></category>
            <dc:creator><![CDATA[Thidasala Demintha Rathnayake]]></dc:creator>
            <pubDate>Thu, 24 Oct 2019 11:14:20 GMT</pubDate>
            <atom:updated>2019-10-24T11:14:20.539Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*EDjnEckQGqqW9J8e.jpg" /><figcaption>source : <a href="https://medium.com/apis-and-digital-transformation/defining-the-personas-that-drive-api-programs-74072d66262f">https://medium.com/apis-and-digital-transformation/defining-the-personas-that-drive-api-programs</a></figcaption></figure><p><em>Here I’m going to explain about some common personas used in the API management environment which is very essential to create a technically stable and economically viable API product.</em></p><h4>What is a Persona in API Management context?</h4><p>When it comes to API management environment, there are different user roles involving in different stages of the API Life-cycle; for example, there are API Designers who are responsible for the design of the API and there are technical writers who are responsible for writing the API documentation. These user roles are called as personas. It is very important to work these user roles collaboratively as a one team to develop a successful API product.</p><p>However, titles for these API positions are not very standardize across companies. For example, An API program manager in one company may be called as the API owner in another company or the API architect at company “B” is called the product architect at company “Z”. For that reason, the titles I am using here may not correspond to the titles in some companies. But i am pretty sure that these roles exist in every API management environment because the skills needed are common for every API Programs.</p><p>In a healthy API environment, we can divide the roles of the API team members into two categories.</p><ul><li>Business roles</li><li>Technical roles</li></ul><p>Lets look at these user roles in detail.</p><h4><strong>1. Business roles</strong></h4><p>The people who take on these roles are primarily focused on the business side of the APIs. They often have the responsibility of speaking in the customer’s voice, aligning the product with clear strategic goals (e.g, promoting new products, improving sell-through,etc.), and matching APIs with company wide Objectives and Key Results (OKR). Sometimes the people fulfilling these roles will come from the business or product parts of the company. Below mentioned are some major business roles.</p><blockquote><strong>API Product Manager</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*46U0TQWnDPlbi_PQtYBXgg.jpeg" /><figcaption>source : <a href="https://twitter.com/themarkoneill/status/828874069324025856">https://twitter.com/themarkoneill/status/828874069324025856</a></figcaption></figure><p>The product manager (PM)-sometimes called the product owner-is the main point of contact for the API. API product managers are responsible for making sure the API has clear OKRs and KPIs and that the other members of the team are in place to support the needed API pillars.The PM is also responsible for monitoring the API and shepherding it successfully through the full API life cycle. PMs are also responsible for ensuring the expected developer experience (design, on boarding, and ongoing relationship) meets the needs of the API consumers. The PM’s role is to make sure all the moving parts come together as expected</p><blockquote><strong>API Designer</strong></blockquote><p>The API designer is responsible for all aspects of the design. This includes making sure the physical interface is functional, usable, and offers a positive experience for developers. The designer also needs to make sure the API helps the team to achieve the identified business OKR . In some cases, the designer will work with the technical roles to make sure the design helps the team meet the technical KPIs, too. Often the designer is the first line of contact for API consumers and may be responsible for taking on the “voice of the consumer” when helping the team make decisions about the look and feel of the API. Finally, the designer may be called upon to make sure the overall design matches established company-wide style guidelines.</p><blockquote><strong>API Technical Writer</strong></blockquote><p>The API tech writer is responsible for writing the API documentation for all stakeholders connected with the API product. This includes not just the API consumers (e.g., the developers using the end product) but also the internal team members as well as other stakeholders from the business community (e.g., the CIO, CTO, etc.). Most tech writers will come from a technical background and have some programming experience, but this is not always the case, nor is it always required. It is important for tech writers to be effective communicators as well as effective researchers and interviewers, since they often need to under-stand the point of view of both the API providers and the API consumers. For this reason, tech writers often work closely with the API designer and product manager to make sure the documentation is accurate, up to date, and in keeping with the company’s design and style guidelines.</p><blockquote><strong>API Evangelist</strong></blockquote><p>The API evangelist is responsible for promoting and supporting the API practice and culture within the company. This is especially true in large organizations where internal users do not have easy access to the original API team that created the product. Evangelists make sure all internal developers using the API understand it and can accomplish their goals with it. Evangelists are also responsible for listening to API consumers and passing their feedback on to the rest of the product team. In some cases, evangelists may be responsible for creating samples, demos, training materials, and other support activities in order to maximize the developer experience for those using the product.</p><blockquote><strong>Developer Relations</strong></blockquote><p>The developer relations role, sometimes called the developer advocate or Dev role, is usually focused on exterious of the API (i.e., outside the company that created it). Like the API evangelists, DevRel staff are responsible for creating samples, demos, training materials, and other assets to help promote the use of the product. And like evangelists, DevRels are often the ones responsible for listening to API consumers and helping turn their feedback into fixes or features that the API team can deal with. However, unlike internal evangelists, DevRels are also often tasked with “selling” the API product to a wider audience, and as such may participate in customer onsite, pre-sales activities, and ongoing product support for key customers. Additional duties can include writing blog posts or articles on how to use the product, as well as other brand-awareness activities in order to help the team reach their stated business goals.</p><h4><strong>2. Technical Roles</strong></h4><p>The second set of roles we defined are what we call technical roles. These roles are focused on the technical details of actually implementing the API’s design, testing and deploying it, and maintaining it in a healthy, usable state throughout its active life. Typically these roles are responsible for speaking in the voice of the IT department, including advocating for safe, scalable, and secure implementations that can be properly maintained over time. Often, the technical staff are responsible for achieving important KPIS as well as helping the business staff reach their OKRs.</p><blockquote><strong>Lead API Engineer</strong></blockquote><p>The lead API engineer is the key point of contact for all the work related to the development, testing, monitoring, and deployment of the API product. This role is the technical equivalent of the product manager business role. Just as the PM is responsible for the what of the API-the design and business goals-the API lead engineer is responsible for the how of the API — the technical details of what it takes to build, deploy, and maintain the API. The lead engineer is the one with</p><p>the responsibility to coordinate the other technical members of the team.</p><blockquote><strong>API Architect</strong></blockquote><p>The API architect is responsible for the architectural design details for the API product itself as well as making sure that the API can easily interact with required system resources. It is the responsibility of the API architect to advocate for the overall software and system architecture of the entire organization. This includes supporting the security considerations, stability and reliability metrics, protocol and format selections, and other so-called nonfunctional elements that have been established for the company’s software systems.</p><blockquote><strong>Front-end developer</strong></blockquote><p>The front-end API developer (FE) is responsible for making sure the API offers a Quality consumer experience. That means helping to implement the company’s API registry, consumer portal, and any other activities related to the front-end or consumer end of the API, Similar to the designer role on the business side, the FE has the job of advocating for API consumers, but from the technical point of view.</p><blockquote><strong>Back-end developer</strong></blockquote><p>The back-end developer (BE) is responsible for the details of implementing the actual interface of the API, connecting it to any other services it needs to complete its work, and generally faithfully executing on the vision of the PM and API designer’s description of what the API should do and how it should do it. It is the responsibility of the BE to make sure the API is reliable, stable, and consistent once it is placed into production.</p><blockquote><strong>Test / QA Engineer</strong></blockquote><p>The API test/QA (quality assurance) engineer is responsible for everything related to validating the API design and testing its functionality, safety, and stability. Typically the test/QA role is charged with writing (or helping the FE/BE write) the actual tests and making sure they run effectively and efficiently. Often this testing goes beyond simple bench tests and behavior testing and includes making sure that there are tests for interoperability, scalability, security, and capacity. Making Typically this involves the use of testing frameworks and tooling selected by the test/QA community within the company</p><blockquote><strong>DevOps Engineer</strong></blockquote><p>The DevOps role is responsible for every aspect of the building and deployment of the API. This includes monitoring the API’s performance to make sure it is in line with the stated technical KPIS and is properly contributing to the business-level OKRS. This usually build scripts (or teaching others how to do this) Managing the release schedule, archiving the build artifacts, and supporting any rollbacks of broken releases, if needed. The DevOps role is also responsible for maintaining a dashboard showing real-time monitoring data as well as storing and, when needed, mining off-line API logs to aid in the review, diagnosis, and repair of any problems identified while the API is in production. Depending on the company’s production hosting options, DevOps staff will need to support several environments, including desktop, build, test, staging, and production. This may include both on-premise and cloud systems.</p><p>According to the user roles and tasks that have been identified, below are the briefing of activities of each role in API life cycle.</p><p><strong>1. API Create stage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*ifpbeaTKFK6QTliRasUyyA.png" /></figure><p><strong>2. API Publish stage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*lICROrgP5CHK6zY2XqxLDg.png" /></figure><p><strong>3. API Maintenance stage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*ev769_5piofs03032LkxaA.png" /></figure><p><strong>4. API Retire stage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*dCAfVg4Wm5k_rpOH2zLmkg.png" /></figure><p>I have almost defined the most common personas used in API management environment. But remember, although the roles are the same, those job titles can be different from organization to organization. If you want more information about the personas in different API Management environment, follow the references below.</p><ol><li><a href="https://apifriends.com/api-management/api-management-project/">https://apifriends.com/api-management/api-management-project/</a></li><li>API Management, An Architect’s Guide to Developing and Managing APIs for Your Organization by De Brajesh.</li></ol><p>If you wish to express anything about this blog, your valuable comments are warmly welcome.!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1073c05cb43" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>