<?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 Sabur Yinus on Medium]]></title>
        <description><![CDATA[Stories by Sabur Yinus on Medium]]></description>
        <link>https://medium.com/@sabur.yinus?source=rss-97598ae7207d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NUr3NTg-8oUmRVgh</url>
            <title>Stories by Sabur Yinus on Medium</title>
            <link>https://medium.com/@sabur.yinus?source=rss-97598ae7207d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:45:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sabur.yinus/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[0x19. Postmortem]]></title>
            <link>https://medium.com/@sabur.yinus/0x19-postmortem-267e75cf2dcf?source=rss-97598ae7207d------2</link>
            <guid isPermaLink="false">https://medium.com/p/267e75cf2dcf</guid>
            <category><![CDATA[postmortem]]></category>
            <dc:creator><![CDATA[Sabur Yinus]]></dc:creator>
            <pubDate>Sun, 14 May 2023 16:54:08 GMT</pubDate>
            <atom:updated>2023-05-14T16:54:08.316Z</atom:updated>
            <content:encoded><![CDATA[<p>postmortem (or post-mortem) is a process intended to help you learn from past incidents. It typically involves an analysis or discussion soon after an event has taken place.</p><p>Postmortems typically involve blame-free analysis and discussion soon after an incident or event has taken place. An artifact is produced that includes a detailed description of exactly what went wrong in order to cause the incident, along with a list of steps to take in order to prevent a similar incident from occurring again in the future. An analysis of how your incident response process itself worked during the incident should also be included in the discussion</p><p>Organizations may refer to the postmortem process in slightly different ways:<br>1. Learning Review<br>2. After-Action Review<br>3. Incident Review<br>4. Incident Report<br>5. Post-Incident Review<br>6. Root Cause Analysis (or RCA)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*TLLm0Ze4jgg0e0UUSplGLA.png" /></figure><p>Below is a postmortem outage sample :</p><p><strong>Issue Summary</strong><br>At approximately 7:30 pm (CST), the web server for the local pet shop, Spot’s Spot, went down due to a security risk from running the Nginx web server as the root user</p><p>Root Cause: The Nginx web server was being run by root, was replaced by another service and could no longer listen on post 8080.</p><p><strong>Timeline</strong></p><p>7:37 PM: Web stack engineers check the currently running processes with ps auxff and find the Nginx web server is not running. They further investigate by running netstat -ldpn which gives them information about the processes running and their ports.</p><p>7:39 PM: Web stack engineers find apache2 is running on port 8080. They kill the process with pkill apache2 and use netstat -ldpn to confirm nothing is currently listening on port 8080.</p><p>7:41 PM: Engineers check the /etc/nginx directory to examine Nginx-specific files. They find the nginx.conf configuration file is owned by the user and group root, instead of nginx like all other nginx files, and does not contain any read, write, or execute privileges.</p><p>7:44 PM: Engineers change the owner and group to nginx with chown nginx:nginx nginx.conf and grant the user read, write, and execute privileges with chmod u+rwx nginx.conf.</p><p>7:46 PM: Engineers check that Nginx is able to run by restarting the service using sudo service nginx restart. Nginx briefly is running, but the site is listening on port 80 instead of port 8080.</p><p>7:52 PM: Engineers check through common nginx files and find in /etc/nginx/sites-available/default that the server is default listening on port 80. This is changed to port 8080 and the file is saved.</p><p>7:53 PM: After restarting the Nginx service, engineers find nginx is listening on port 8080. One problem is fixed.</p><p>7:54 PM: However, when engineers check the running systems again with ps auxff, they find nginx is still running as root, which leaves the server more vulnerable to attack.</p><p>7:56 PM: Engineers stop running the service with sudo, or the root user. They then start the service with service nginx start after switching to the nginx user with su nginx.</p><p>7:57 PM: Nginx is running under the user nginx and is listening on port 8080. The website for Spot’s Spot is back online and customers can access the site</p><p><strong>Root Cause and Resolution</strong></p><p>The root cause came from running the Nginx web server as the root user. This left the server vulnerable to attack and allowed a rival process, apache2, to take over (probably the doing of cats). This attack also removed nginx user privileges and changed the default port the server listens on.</p><p>Corrective and Preventative Measures</p><p>1. run Nginx with a less-privileged user<br>2. check default settings in files<br>3. add monitoring system</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=267e75cf2dcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type google.com in your browser and press Enter]]></title>
            <link>https://medium.com/@sabur.yinus/what-happens-when-you-type-google-com-in-your-browser-and-press-enter-b446d15d75f2?source=rss-97598ae7207d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b446d15d75f2</guid>
            <dc:creator><![CDATA[Sabur Yinus]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 15:51:10 GMT</pubDate>
            <atom:updated>2023-04-18T15:51:10.730Z</atom:updated>
            <content:encoded><![CDATA[<p>Let have a look at what happens when you try to access a website on the internet. Before we deep dive, it is important to understands some basic things like what website is really is.</p><p>Websites are collections of files, often HTML, CSS, Java script, and images, that tell your browser how to display the site, images, and data. They need to be accessible to anyone from anywhere at any time, so hosting them on your computer at home isn’t scalable or reliable. A powerful external computer connected to the Internet, called a server, stores these files.</p><p>When you point your browser at a URL like <a href="https://www.google.com/">https://www.google.com</a> , your browser has to figure out which server on the Internet is hosting the site. It does this by looking up the domain, “google.com”, to find the address.</p><p>Each device on the Internet — servers, cell phones, — all have a unique address called an IP address. An IP address contains four numbered parts.it is usually in this form 142.250.179.206 depending on your location.</p><p>But numbers like this are hard to remember! That’s where domain name comes in “google.com” is much easier to remember than 142.250.179.206</p><p><strong>What happens when you type google.com in your browser and press Enter? Below is a simple process of behind the scenes that happens when you enter a URL in your browser:</strong></p><ul><li>When you type a URL in your browser and press Enter</li><li>Browser looks up IP address for the domain</li><li>Browser initiates TCP connection with the server</li><li>Browser sends the HTTP request to the server</li><li>Server processes request and sends back a response</li></ul><p>· Browser renders the content</p><p><strong>The process</strong></p><p><strong>1.</strong> <strong>When you type ‘</strong> https://www.google.com<strong>’</strong></p><p>Let’s break down the parts of this URL you typed in to get here.</p><p><a href="https://www.google.com/">https://www.google.com</a></p><p><strong>Scheme</strong></p><p>https:// is the scheme. HTTPS stands for Hypertext Transfer Protocol Secure. This scheme tells the browser to make a connection to the server using Transport Layer Security, or TLS. TLS is an encryption protocol to secure communications over the Internet. With HTTPS, the data exchanged between your browser and the server, like passwords or credit card info, is encrypted.</p><h4>Domain google.com is the domain name of the site. It is the memorable address and points to a specific server’s IP address.</h4><p><strong>2.</strong> <strong>Browser looks up IP address for the domain </strong>After you’ve typed the URL into your browser and pressed enter, the browser needs to figure out which server on the Internet to connect to. To do that, it needs to look up the IP address of the server hosting the website using the domain you typed in. It does this using a DNS lookup. Once the browser gets the DNS record with the IP address, it’s time for it to find the server on the Internet and establish a connection.</p><h3>3. Browser initiates TCP connection with the server</h3><p>Once the browser finds the server on the Internet, it establishes a TCP connection with the server and if HTTPS is being used, a TLS handshake takes place to secure the communication.</p><h3>4. Browser sends the HTTP request to the server</h3><p>Now that the browser has a connection to the server, it follows the rules of communication for the HTTP(s) protocol. It starts with the browser sending an HTTP request to the server to request the contents of the page. The HTTP request contains a request line, headers (or metadata about the request), and a body. The request line contains information that the server can use to determine what the client (in this case, your browser) wants to do.</p><p>The request line contains the following:</p><p>· a request method, which is one of GET, POST, PUT, PATCH, DELETE, or a handful of other HTTP verbs</p><p>· the path, pointing to the requested resources</p><p>· the HTTP version to communicate with</p><h3>5. Server processes request and sends back a response</h3><p>The server takes the request and based on the info in the request line, headers, and body, decides how to process the request. For the request, GET /www.google.com/, the server gets the content at this path, constructs the response and sends it back to the client. The response contains the following:</p><p>· a status line, telling the client the status of the request</p><p>· response headers, telling the browser how to handle the response</p><p>· the requested resource at that path, either content like HTML, CSS, Javascript, or image files, or data</p><p>The status line contains both the HTTP version and a numeric and text representation of the status of the request</p><h3>6. Browser renders the content</h3><p>Once the browser has received the response from the server, it inspects the response headers for information on how to render the resource. The Content-Type header above tells the browser it received an HTML resource in the response body</p><p>Fig: A simple architecture of a webserver with Firewall and Load Balancer.</p><p><strong>FIREWALL</strong></p><p>A Firewall is a network security device that monitors and filters incoming and outgoing network traffic based on an organization’s previously established security policies. At its most basic, a firewall is essentially the barrier that sits between a private internal network and the public Internet.</p><p>What are the 2 methods of firewall?</p><p>There are two types of firewalls based on what they protect: network-based and host-based. Network-based firewalls, which are frequently hardware, protect entire networks. Host-based firewalls, which are frequently software, protect individual devices known as hosts</p><p><strong>LOAD BALANCER</strong></p><p>A load balancer is a device that acts as a reverse proxy and distributes network or application traffic across a number of servers. Load balancers are used to increase capacity (concurrent users) and reliability of applications.</p><p>The following are few examples of software load balancers: HAProxy — A TCP load balancer. NGINX — A http load balancer with SSL termination support. (install Nginx on Linux)</p><p><strong>DATABASE</strong></p><p>A database is an organized collection of structured information, or data, typically stored electronically in a computer system. A database is usually controlled by a database management system (DBMS).</p><p>Reference: Credit to Kyle Lee article on <a href="https://aws.amazon.com/blogs/mobile/what-happens-when-you-type-a-url-into-your-browser/">https://aws.amazon.com/blogs/mobile/what-happens-when-you-type-a-url-into-your-browser/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b446d15d75f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>