<?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 Carlos Manuel Soares on Medium]]></title>
        <description><![CDATA[Stories by Carlos Manuel Soares on Medium]]></description>
        <link>https://medium.com/@cmpsoares?source=rss-cfb718c360aa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JXkF17tGftu6qW96aUEbIQ.jpeg</url>
            <title>Stories by Carlos Manuel Soares on Medium</title>
            <link>https://medium.com/@cmpsoares?source=rss-cfb718c360aa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:07:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cmpsoares/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[RCA Showdown: SRE vs. ITIL/ITSM, and Why We Should All Just Get Along]]></title>
            <link>https://medium.com/@cmpsoares/rca-showdown-sre-vs-itil-itsm-and-why-we-should-all-just-get-along-471d141d5dbd?source=rss-cfb718c360aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/471d141d5dbd</guid>
            <category><![CDATA[itsm]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Carlos Manuel Soares]]></dc:creator>
            <pubDate>Thu, 14 Nov 2024 18:00:39 GMT</pubDate>
            <atom:updated>2024-11-14T21:26:11.420Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EE67_qWJQ6OblHS33KJoYQ.png" /><figcaption>DALL-E AI’s interpretation of the subject</figcaption></figure><p>Ah, the humble RCA (Root Cause Analysis). On the surface, it’s a simple concept: something went wrong, so let’s figure out why and make sure it doesn’t happen again. But when you bring together teams from the <strong>SRE</strong> camp and the <strong>ITIL/ITSM</strong> world, things can get… lively. These two camps have different philosophies, goals, and even jargon. If left unchecked, this can lead to misunderstandings, frustration, and possibly the kind of workplace tension that makes the weekly stand-up feel like a Shakespearean tragedy.</p><p>But here’s the kicker: SRE and ITIL/ITSM don’t have to be adversaries. In fact, when combined thoughtfully, they can produce an RCA process that’s greater than the sum of its parts. Let’s break this down, shall we?</p><h3>What’s an RCA Anyway?</h3><p>For those new to the world of acronyms, RCA stands for <strong>Root Cause Analysis</strong>. It’s the process of identifying what went wrong, why it went wrong, and what can be done to prevent it from happening again. Think of it as a post-mortem for incidents, only without the creepy medical overtones.</p><p>At its core, RCA is about learning and improving. But how you approach it depends heavily on whether you’re wearing an SRE or ITIL/ITSM hat.</p><h4>The SRE Way: Blameless, Automated, and Always Learning</h4><p>Let’s start with the SREs. Born out of Google’s engineering philosophy, <strong>Site Reliability Engineering</strong> focuses on system reliability, automation, and reducing toil (i.e., repetitive, soul-crushing manual work). When something breaks, SREs conduct <strong>blameless RCAs</strong>. The goal? Identify what went wrong without pointing fingers so that the team can focus on system improvements.</p><p><strong>Key features of SRE RCAs:</strong></p><ul><li><strong>Blamelessness</strong>: Incidents are viewed as opportunities to learn, not to assign blame.</li><li><strong>Data-Driven</strong>: Metrics and logs are examined to paint a clear picture of what happened.</li><li><strong>Automation-Centric</strong>: Preventive actions often include automating tests, monitoring, or recovery processes.</li></ul><p>SRE RCAs aren’t just about fixing the immediate problem. They’re about making the entire system more resilient. If a manual process failed, the solution might be to automate it. If monitoring didn’t catch an issue, new alerts are created.</p><h4>The ITIL/ITSM Way: Process-Oriented and Customer-Focused</h4><p>Now let’s look at <strong>ITIL/ITSM</strong> (Information Technology Infrastructure Library / IT Service Management). While ITSM refers to the overall discipline of managing IT services, ITIL is one of the most popular frameworks within ITSM, known for its focus on structured processes and risk management. These frameworks are all about process discipline, risk management, and service delivery. In the ITIL world, incidents and problems are carefully documented, and RCAs are conducted to ensure <strong>service continuity</strong> and compliance with <strong>SLAs (Service Level Agreements)</strong>.</p><p><strong>Key features of ITIL RCAs:</strong></p><ul><li><strong>Structured and Formal</strong>: Every incident has a clear process for investigation, typically with assigned roles and responsibilities.</li><li><strong>Process Compliance</strong>: The focus is often on ensuring that proper processes were followed (or identifying where they weren’t).</li><li><strong>Customer-Centric</strong>: RCAs consider the business and customer impact, ensuring service levels are maintained.</li></ul><p>ITIL RCAs are thorough and methodical, but they can sometimes feel rigid to those used to SRE’s more dynamic, engineering-driven approach.</p><h4>Philosophical Differences: SRE vs. ITIL/ITSM</h4><p>Here’s where it gets interesting. SRE and ITIL/ITSM are rooted in different philosophies:</p><ul><li><strong>SRE</strong> focuses on <strong>system reliability</strong> and <strong>continuous improvement</strong> through automation and engineering practices.</li><li><strong>ITIL/ITSM</strong> prioritises <strong>process adherence</strong> and <strong>risk management</strong>, ensuring services are delivered consistently and meet business expectations.</li></ul><p>In other words, SREs want to fix systems and automate away problems, while ITIL practitioners want to ensure processes are followed to prevent risk. These aren’t contradictory goals, but they can lead to misunderstandings if not properly aligned.</p><h3>The Elephant in the Room: Separating Technical and Process Root Causes</h3><p>One of the most effective ways to bridge the gap between SRE and ITIL/ITSM is to <strong>separate technical root causes from process root causes</strong> during RCA. Why? Because each team has a different focus, and lumping everything together can lead to confusion.</p><h4>Why Bother?</h4><ol><li><strong>Clarity and Focus</strong><br> SREs focus on <strong>technical reliability</strong>: Was there a bug? Did monitoring fail? Meanwhile, ITIL folks care about <strong>process compliance</strong>: Did someone bypass the change management process? Separating these discussions ensures that both technical and process issues get the attention they deserve.</li><li><strong>Tailored Preventive Actions</strong><br> Different problems need different solutions. Technical issues might require automation or improved testing, while process gaps may call for updated workflows or better training. By separating root causes, you ensure that preventive actions are specific and actionable.</li></ol><h4>How to Do It?</h4><p>Here’s how to make this work in practice:</p><p><strong>1 — Define Categories in Your RCA Template</strong><br>Create distinct sections in your RCA template:</p><ul><li><strong>Technical Root Causes</strong>: Focus on system failures, such as bugs, misconfigurations, or infrastructure issues.</li><li><strong>Process Root Causes</strong>: Focus on procedural gaps, such as skipped approvals or miscommunication.</li></ul><p>Example table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*qTM3M7e10QLk1U0c65ybEA.png" /></figure><p><strong>2 — Ask Targeted Questions</strong><br> Guide your RCA discussions with specific questions:</p><ul><li><strong>For Technical Issues</strong>: What failed in the system? Were there gaps in testing or monitoring?</li><li><strong>For Process Issues</strong>: Were proper procedures followed? Was there a communication breakdown?</li></ul><p><strong>3 — Collaborative RCA Sessions</strong><br> Hold RCA meetings that include both SREs and ITIL practitioners. Start with technical root causes (led by SREs), then move to process root causes (led by ITIL). This structure ensures that both areas are covered without stepping on each other’s toes.</p><p><strong>4 — Track and Review</strong><br> Use a shared platform to track preventive actions for both technical and process issues. Regularly review their effectiveness and adjust as needed.</p><h3>The Best of Both Worlds: Combining SRE and ITIL/ITSM RCAs</h3><p>Now that we’ve discussed the importance of separating technical and process root causes, the next step is bringing everything together into a unified RCA process. The secret sauce? <strong>Communication, collaboration, and a shared understanding of success metrics.</strong></p><p><strong>1. Unified RCA Framework</strong></p><p>First, establish an RCA framework that addresses the unique strengths of both SRE and ITIL/ITSM teams. This framework should clearly define how technical and process issues will be identified, investigated, and resolved.</p><ul><li><strong>Technical Analysis (SRE):</strong> Focus on logs, metrics, and code to diagnose system-level failures. SREs excel at pinpointing the technical root cause and proposing engineering solutions.</li><li><strong>Process Analysis (ITIL/ITSM):</strong> Examine workflows, approvals, and compliance with established procedures. ITIL practitioners ensure that process gaps contributing to incidents are identified and addressed.</li></ul><p>By aligning these analyses within a single framework, you’ll cover all angles, ensuring no stone is left unturned.</p><p><strong>2. Blameless Culture for All</strong></p><p>Both SRE and ITIL/ITSM teams thrive in a <strong>blameless culture</strong>, where the goal is continuous improvement, not finger-pointing. Whether the root cause is a failed deployment or a skipped change approval, the focus should remain on learning and preventing recurrence.</p><ul><li><strong>For SREs:</strong> Blameless postmortems highlight areas for technical improvement, like automation opportunities or monitoring gaps.</li><li><strong>For ITIL Teams:</strong> Process reviews encourage refining workflows and improving communication channels, ensuring smoother incident and change management.</li></ul><p>3. <strong>Collaborative Preventive Actions</strong></p><p>Preventive actions are where SREs and ITIL teams can truly shine together. Each team brings its own strengths to the table:</p><ul><li><strong>SRE Contributions:</strong><br> Automate repetitive tasks, improve system observability, and implement robust testing pipelines. SREs ensure that technical fixes are durable and scalable.</li><li><strong>ITIL Contributions:</strong><br> Enhance workflows, improve documentation, and ensure up-to-date training. ITIL teams focus on reducing human error through process improvements and better governance.</li></ul><p>Collaborating on these actions ensures a holistic approach to reliability and process integrity.</p><p><strong>4. Unified Metrics: Speaking the Same Language</strong></p><p>Metrics are the lifeblood of both SRE and ITIL/ITSM practices, but they often speak different “languages” when it comes to defining success.</p><p><strong>SRE Metrics:</strong></p><ul><li><strong>SLIs (Service Level Indicators):</strong> Measure specific system performance metrics like latency, error rates, or availability.</li><li><strong>SLOs (Service Level Objectives):</strong> Set targets for SLIs, such as maintaining 99.9% uptime or keeping error rates below 1%.</li><li><strong>Error Budgets:</strong> Help balance reliability with innovation, allowing a controlled amount of risk for new changes.</li></ul><p><strong>ITIL/ITSM Metrics:</strong></p><ul><li><strong>KPIs (Key Performance Indicators):</strong> Track high-level performance indicators like SLA adherence, incident resolution times, and change success rates.</li><li><strong>SLAs (Service Level Agreements):</strong> Formal agreements that define the expected service levels between providers and customers.</li></ul><p><strong>Why This Matters:</strong><br> Aligning these metrics ensures both teams are working towards shared goals. For example:</p><ul><li>An SRE might monitor system availability (SLO) to ensure it aligns with a critical <strong>SLA</strong>.</li><li>Both teams can collaborate to reduce <strong>MTTR (Mean Time to Resolution)</strong>, with SREs focusing on technical fixes and ITIL teams improving incident communication and coordination.</li></ul><p>By tracking complementary metrics, you’ll create a comprehensive view of system health and service performance, ensuring everyone is on the same page.</p><h3>Why Collaboration Is Key</h3><p>Here’s the bottom line: SRE and ITIL/ITSM don’t have to clash. In fact, when they work together, they can create an RCA process that’s both <strong>robust</strong> and <strong>flexible</strong>. Separating technical and process root causes while fostering communication ensures everyone knows what’s being discussed and why. This improves the RCA process and builds a stronger, more collaborative culture.</p><p>So next time you’re in an RCA meeting, remember: SREs and ITIL/ITSM practitioners aren’t enemies. They’re just two sides of the same coin, working together to ensure our systems and services run smoothly. And that’s a mission we can all get behind.</p><p><em>Originally published at </em><a href="https://cmpsoares.com/blog/2024-11-14_rca-showdown-sre-vs-itil-itsm/"><em>https://cmpsoares.com</em></a><em> on November 14, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=471d141d5dbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aristotle’s Legacy: Unfolding the Logic of Language Learning Models and Generative AI]]></title>
            <link>https://medium.com/@cmpsoares/aristotles-legacy-unfolding-the-logic-of-language-learning-models-and-generative-ai-d625c4e5f1ed?source=rss-cfb718c360aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/d625c4e5f1ed</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Carlos Manuel Soares]]></dc:creator>
            <pubDate>Thu, 20 Jul 2023 16:00:32 GMT</pubDate>
            <atom:updated>2023-07-20T17:10:19.680Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>From Syllogism to GPT-4: Chatbots’ Evolution</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o28yTYEPIPndhnAL.jpg" /></figure><p>As you read these words, a complex network of neurons within your brain is firing, decoding symbols, and constructing meanings. You are engaged in one of the most intricate activities humans are capable of — language understanding. This profound capability has allowed us to build societies, share ideas, and shape our collective future. But what if we could replicate this capacity for language comprehension and generation in machines? This question is the driving force behind one of the most revolutionary fields of the 21st century: language learning models and generative artificial intelligence.</p><p>In this article, we will embark on a fascinating journey through time, retracing the steps of the pioneers who dared to dream about intelligent machines, from the ancient Greeks who laid the foundation of logical reasoning to the inventors of the first computers and onto the researchers today pushing the boundaries of what AI can achieve.</p><p>Prepare to unfold the captivating saga of logical reasoning, learning machines, and artificial intelligence. In this tale, each chapter paves the way for the next, leading us to the marvels of today’s AI capabilities. This isn’t just a history lesson; it’s a peek into our future as we discover how far we’ve come and, more importantly, explore the exciting possibilities that await us in the era of AI.</p><h3>The Greek Foundations: Aristotle and the Syllogism (384–322 BC)</h3><p>Our exploration into the journey of AI must first take us back to the roots of logical reasoning, where we find ourselves in the epoch of Ancient Greece, a golden era of human thought. In particular, we turn our attention to the profound contributions of the philosopher Aristotle, whose works between 384 and 322 BC have profoundly influenced the world.</p><p>Aristotle, the student of Plato and the teacher of Alexander the Great stands out in history for his substantial contributions to various domains of knowledge, including metaphysics, ethics, aesthetics, rhetoric, and biology. However, his groundbreaking work in the field of logic laid the foundations for the deductive reasoning systems that AI would later thrive upon.</p><p>It was Aristotle who first systematically formulated the syllogism concept, a cornerstone of logical reasoning. A syllogism is a form of deductive argument consisting of two premises leading to a conclusion. For instance, consider the example:</p><ul><li>Premise 1: All humans are mortal.</li><li>Premise 2: Socrates is a human.</li><li>Conclusion: Therefore, Socrates is mortal.</li></ul><p>This mode of reasoning, so fundamental to human thought, found its first formal expression through Aristotle’s work. The form and structure of syllogism served as an early model for systems of formal logic, which would centuries later be instrumental in the development of computer science and artificial intelligence. The Aristotelian logic, while simple, encapsulated the concept of reasoning from premises to a conclusion, a core aspect of AI’s goal — to make machines think like humans.</p><p>As we delve further into the story of AI, we’ll continually circle back to this central idea: the quest to replicate human-like reasoning in machines. The echoes of Aristotle’s work, even in today’s advanced AI models, demonstrate that our desire to understand and emulate human intelligence remains an enduring driving force of innovation.</p><p>Thus, as we trace the evolution of AI, we start not with the first computers or algorithms but with Aristotle, the philosopher whose logical framework still underpins, in a way, the AI systems we build today. It is a testament to the legacy of these early thinkers that their influence extends far beyond their own era, reaching into the heart of the most sophisticated technologies of our modern world.</p><h3>Early Programming and Symbolic AI (Mid-20th Century)</h3><p>The era of early programming and Symbolic AI commenced in the mid-20th century when the notion of logic and symbol manipulation was meticulously transformed into sophisticated programming languages. A pivotal influence during this period was the work of English mathematician George Boole, who, in the 19th century, had established the principles of Boolean algebra. The binary nature of Boolean logic, representing data as ‘true’ or ‘false’, proved integral in developing the logic gates that constitute the basic building blocks of digital electronics and, by extension, modern computing.</p><p>Building on this foundation, AI research in the 1950s and 60s was dominated by logical reasoning models. This period saw the advent of ‘Symbolic AI’ — rule-based systems that aimed to encapsulate knowledge and logic into an explicit set of rules. The computer was seen as a symbol manipulator. With the proper set of symbols and rules, the thought process of human beings could be mimicked. From chess games to problem-solving, these systems were used to demonstrate how logical rules could be used to replicate intelligent behaviour.</p><p>However, despite their promise, these early models also came with significant drawbacks. They were inherently limited by their inability to handle ambiguity and the complexity of encoding real-world knowledge. For instance, they could fail when presented with situations not covered by their rule set, struggle with tasks requiring learning from experience, and didn’t handle the uncertainty of the real world that well. The nuances of human language and the vastness of common-sense reasoning proved challenging to codify into a finite set of rules, thus exposing the limitations of this approach.</p><p>Yet, these initial forays into Symbolic AI were far from fruitless; they paved the way for more advanced computational models and brought us a step closer to the dream of creating machines capable of mimicking human thought processes.</p><h3>The Rise of Expert Systems (1970s-1980s)</h3><p>In the 1970s and 80s, the field of AI expanded into expert systems. These were designed to mimic the decision-making capabilities of human experts in specific domains, using a knowledge base filled with expert-provided rules and facts coupled with an inference engine to apply these rules to solve problems.</p><p>Expert systems made significant strides in various sectors, including medicine and geology. However, they were confined by their inability to adapt or learn from new information — they were only as good as the rules they were initially programmed with and lacked the ability to handle situations outside of their pre-defined rule set.</p><p>Despite these limitations, expert systems were a key stepping stone in AI’s journey. They illustrated AI’s potential to tackle complex problems. They paved the way for more advanced AI techniques that could learn and adapt, which are the cornerstone of modern AI systems today.</p><h3>Big Data and the Dawn of Neural Networks (2000s — 2010s)</h3><p>The ubiquity of the internet resulted in data production at an unprecedented rate, ushering in the era of big data. Initially, traditional methods such as Support Vector Machines (SVMs) and Random Forests were used to interpret these vast datasets. However, as computational power increased with advancements in GPU technology and methods for training deep neural networks improved, these models started outperforming traditional methods on a variety of tasks. Inspired by biological brains, the concept of a neural network could have been more novel. This idea can be traced back to the 1950s and 60s, with the Perceptron learning algorithm, proposed by Frank Rosenblatt, considered one of the earliest forms of a neural network. The actual power of these concepts was realized when researchers began stacking layers of artificial neurons to create “deep” networks, leading to significant advancements in areas like image and speech recognition. Pioneers of this revolution included researchers like Geoffrey Hinton, Yann LeCun, and Yoshua Bengio, who were later awarded the Turing Award for their contributions. The ability to effectively harness the potential of neural networks opened the way for the development of more sophisticated AI systems, setting the stage for models like GPT-3 and beyond.</p><h3>The Unsupervised Learning Revolution (2010s)</h3><p>While most of the early work in neural networks focused on supervised learning (where input and output data are provided to the model), a different approach started gaining traction during the 2010s — unsupervised learning. In unsupervised learning, the model is only given input data and must find patterns and structure within this data itself.</p><p>This era saw the rise of powerful algorithms such as k-means clustering, hierarchical clustering, DBSCAN, and Self-Organizing Maps. These models were capable of discovering hidden structures in data without the need for labels, making them incredibly versatile and valuable in scenarios where labelled data was scarce or expensive to obtain.</p><h3>Breakthroughs in Generative AI Pre-GPT (Late 2010s)</h3><p>Meanwhile, another branch of AI was coming into the limelight — generative models. Unlike discriminative models that learned to distinguish between different types of inputs, generative models learned to create new data that resembled the training data. The introduction of generative models like Variational Autoencoders (VAEs) and Generative Adversarial Networks (GANs) marked a turning point in the field.</p><p>Introduced by Ian Goodfellow and his colleagues, GANs consisted of two neural networks: a generator network that produced new data and a discriminator network that evaluated the generator’s outputs. The interplay between these networks enabled the generation of incredibly realistic synthetic data. This sparked a revolution in fields ranging from computer graphics to fashion, where AI began creating convincing images, designs, and even artwork.</p><h3>The Emergence of Transformer Models (Late 2010s — Early 2020s)</h3><p>While great strides were being made in image and audio processing, the field of natural language processing was about to experience a major shift. The introduction of the Transformer model in 2017, presented in the paper “Attention is All You Need” by Vaswani et al., marked a turning point.</p><p>Before the Transformer, Recurrent Neural Networks (RNNs) were the go-to architecture for processing sequences, including text. RNNs operate by processing text sequentially, with their internal state acting as a memory. However, this made them inherently slow to train and difficult for them to grasp long-term dependencies in the data.</p><p>In stark contrast, the Transformer model discarded this sequential approach. Instead, it introduced the concept of ‘attention’, enabling the model to focus on different parts of the input sequence when producing an output, effectively allowing the model to simultaneously consider all words in a sentence. This novel approach not only resolved the issues related to parallelization and long-term dependencies but also proved to be more effective in understanding the context and nuances of language. This innovative model design propelled the field of natural language processing into a new era, setting the stage for the development of even more powerful language models like GPT.</p><h3>The Era of Language Models: GPT-1 and GPT-2 (2018–2019)</h3><p>The potential of the Transformer model was soon realized by the AI research lab OpenAI, leading to the development of the Generative Pretrained Transformer (GPT) models. Unlike previous language models that required task-specific architectures and training, GPT was trained to predict the next word in a sentence and could be applied to a variety of tasks with only minimal changes, a concept known as transfer learning.</p><p>GPT-2, released in 2019, was an extension of GPT with a larger model size and more data. The model showed a surprising ability to generate coherent and contextually relevant sentences, bringing us one step closer to AI that could understand and generate human-like text. However, its release was also controversial due to concerns about misuse of the technology, highlighting the growing need for ethical considerations in AI development.</p><h3>The GPT-3 Phenomenon (2020)</h3><p>The release of GPT-3 in 2020 was more than just another advancement in AI — it was a defining moment that shifted the global perspective on what machine learning could accomplish. Developed by OpenAI, GPT-3 comprised a staggering 175 billion parameters and was trained on an incredibly diverse range of internet text. Unlike its predecessors, GPT-3 did not just predict the next word in a sentence; it showed a deep contextual understanding of text that was surprisingly human-like.</p><p>GPT-3 was a breakthrough in the sense that it could understand prompts and generate detailed, contextually relevant responses that maintained thematic consistency. It could draft emails, write essays, answer questions, translate languages, and even create poetry. Moreover, GPT-3 demonstrated remarkable versatility, as it could perform these tasks across various domains, from finance and law to technology and literature. This clearly illustrated “few-shot learning,” where GPT-3 could understand a new task by seeing just a few examples.</p><p>However, the launch of GPT-3 wasn’t without controversy. There were increasing concerns about the model’s potential misuse, such as generating misleading news articles, creating fake reviews, or spreading propaganda. The ethical implications brought to light the dual nature of AI technology: while it can significantly benefit society, it also necessitates careful handling to prevent misuse.</p><h3>The Advent of GPT-3.5 Turbo and ChatGPT (2021–2022)</h3><p>In 2021, OpenAI introduced GPT-3.5 Turbo, a crucial stepping stone towards the development of the ChatGPT system. This new version retained the impressive language generation capabilities of GPT-3. Still, it was explicitly optimized and fine-tuned for conversational contexts, which had been a challenging area for AI.</p><p>ChatGPT, unlike its chatbot predecessors such as ALICE, IBM’s Watson, and Google’s Dialogflow, which primarily relied on hardcoded responses or rule-based systems, creates responses dynamically rooted in the context of the conversation. This distinction elevates interactions with ChatGPT, making them feel more organic and engaging, akin to conversing with a human. This significant leap in AI application has become an integral part of our daily routines, extending beyond its initial purpose of aiding businesses and research. It serves as a personal assistant, a tutor across various subjects, a mental health aide, and even a creative instrument for idea generation, showcasing the vast potential of this technology.</p><p>In 2022, OpenAI announced a research preview of ChatGPT. Millions of users’ feedback helped refine the model, making it more reliable, safe, and versatile. In addition, a pricing plan for more dedicated access was introduced, allowing users to have priority access to new features and improvements and ensuring that access to ChatGPT remained free for as many people as possible.</p><h3>GPT-4: A New Era of AI (2023 and Beyond)</h3><p>OpenAI’s GPT-4 is the new benchmark in advanced language models, boasting significant improvements over its predecessor, GPT-3.5. One of the key elements contributing to these enhancements is the use of an autonomous agent mechanism known as “reflection”, enabling GPT-4 to evaluate its past actions, introspect its performance, and adapt accordingly. This element of self-awareness equips the model to learn from its outputs and adjust its strategies in real time.</p><p>GPT-4’s performance in handling more extended conversations, reducing factual errors, writing complex code, solving intricate problems, and learning more rapidly than ever before is a testament to its revolutionary design. Notably, its bias mitigation has also improved, making it less prone to produce biased or offensive responses.</p><p>Regarding technical aspects, GPT-4 is trained on an extensive corpus of data, with approximately 1 trillion parameters, a considerable leap from GPT-3’s 175 billion. This increase, along with its reflection capabilities, empowers GPT-4 to generate more nuanced and contextually relevant responses while handling longer text passages with enhanced coherence.</p><p>Despite the promising improvements, GPT-4 does pose specific challenges. The computational power and energy required to run GPT-4 is significantly higher, potentially limiting its accessibility to smaller organizations or individual developers. Nevertheless, as we look ahead, the continual advances in computing power and increasing efficiency of AI models suggest a future where sophisticated models like GPT-4 will be more readily accessible.</p><p>The arrival of GPT-4 heralds a new era in AI technology, opening up untapped potential across various sectors — from healthcare and education to entertainment and transportation. However, these technological leaps also require ongoing dialogue around AI’s ethical and societal implications, prompting the need for proactive measures from developers, policymakers, and society at large.</p><h3>Looking Toward the Future</h3><p>As we contemplate the evolution of AI and language models from Aristotle’s syllogisms to GPT-4, it becomes evident that the field has undergone a remarkable transformation. With each advancement in technology, from the initial logic-based systems to the advanced generative models, we have come closer to achieving our objective of developing machines that can comprehend and emulate human-like behaviour.</p><p>The future of AI and language models is both exciting and challenging. AI’s potential to revolutionize various sectors is limitless — from transforming healthcare diagnostics to personalized education, from helping us combat climate change to democratizing access to information. Moreover, the advancement in AI will change not only the way we work but also how we interact with the world, opening up opportunities for more people to contribute to human knowledge and prosperity.</p><p>However, with great power comes great responsibility. As AI continues to evolve, it becomes increasingly crucial to address these technologies’ ethical, societal, and safety challenges. We need to ensure that the benefits of AI are distributed equitably, that they respect users’ values, and that they are robust and safe.</p><p>Furthermore, it is critical to remember that AI, in its current form, does not possess consciousness, emotions, or an understanding of the world like humans do. Despite the impressively coherent and contextually appropriate responses that models like GPT-4 can generate, they are fundamentally statistical pattern-matching tools. They do not possess an understanding of the world, a concept of truth, or a sense of purpose. Recognizing these limitations is vital to use these tools effectively and ethically.</p><p>In conclusion, as we chart this unexplored territory, it is essential to continue the dialogue among researchers, policymakers, and the public about how we can shape this technology to serve the common good. The journey from Aristotle’s Organon to OpenAI’s GPT-4 is just the beginning of our quest to understand intelligence’s nature and create machines that can genuinely understand and generate human language. As we continue this journey, we stand on the precipice of a future where AI could become an integral part of our daily lives, transforming our world in ways we are only just beginning to imagine.</p><p><em>Originally published at </em><a href="https://cmpsoares.com/blog/2023-07-20_aristotles-legacy-unfolding-the-logic-of-language-learning-models-and-generative-ai/"><em>https://cmpsoares.com</em></a><em> on July 20, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d625c4e5f1ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleashing the Superheroes of SRE: Unlocking the Power of Site Reliability Engineering]]></title>
            <link>https://medium.com/cmpsoares/unleashing-the-superheroes-of-sre-unlocking-the-power-of-site-reliability-engineering-1d17d2039cdb?source=rss-cfb718c360aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d17d2039cdb</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <dc:creator><![CDATA[Carlos Manuel Soares]]></dc:creator>
            <pubDate>Mon, 19 Jun 2023 21:50:24 GMT</pubDate>
            <atom:updated>2023-06-19T22:16:50.933Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p3yLtl02G10Be40J.jpg" /></figure><blockquote><em>Site Reliability Engineering is not just a job; it’s a superpower ensuring software systems’ reliability, scalability, and efficiency.</em></blockquote><p>Site Reliability Engineers (often referred to as SREs) are the unsung heroes behind the scenes, battling outages, taming infrastructure, and safeguarding user experience. In this epic blog post, we’re about to embark on a thrilling journey to explore the different faces of SRE and discover the superpowers that make them mighty. So, fasten your seatbelts and get ready to uncover the extraordinary world of SRE!</p><h3>The Many Faces of SRE: Unleashing Superpowers for System Resilience</h3><p>Even though Site Reliability Engineers normally just refer to themselves as that. They can assume specific hats in the SRE world, which are often hidden in the job description but are rarely assumed as different roles in the company. These roles can also be fluid, as some may call it, just a division of tasks under the responsibilities of the SRE. As such, we will dive into all these different faces of our secret Avengers of the IT world.</p><h3>Site Reliability Engineer/Analyst: The Avenger of System Reliability</h3><p>Imagine a superhero with a mind like a supercomputer, constantly monitoring system metrics and swooping in to save the day when trouble strikes. SRE Engineers/Analysts possess an uncanny ability to spot anomalies, predict capacity needs, and optimize system performance. Armed with their arsenal of monitoring tools like Prometheus, Grafana, and DataDog, they decipher the secrets hidden within metrics like server response times, resource utilization, and error rates. But it doesn’t stop there. These heroes dive deep into the code, collaborating with developers to design and implement software that can withstand the toughest battles. They’re the architects of resilience, crafting robust systems that shine in the face of adversity. Their vigilance ensures that latency is defeated, errors are vanquished, and resource saturation is a thing of the past. With their expanded knowledge, SRE Engineers/Analysts delve into advanced monitoring techniques such as distributed tracing, anomaly detection, and intelligent alerting systems. They harness the power of APM (Application Performance Monitoring) tools like New Relic and Dynatrace to gain granular insights into application behaviour, trace requests across microservices, and detect performance bottlenecks.</p><h3>Site Reliability Operations Manager: The Commander-in-Chief of Chaos</h3><p>Every superhero team needs a master strategist, a leader who can orchestrate the chaos and bring order to the battlefield. SRE Operations Managers are the commanders who chart the course, allocate resources wisely, and keep the team focused on the mission. They’re like the Tony Starks of SRE, juggling timelines, resolving conflicts, and fostering a culture of collaboration and innovation. To combat the villains of toil and downtime, Operations Managers employ their superpower of efficiency. They identify repetitive tasks that drain precious time and automate them into oblivion. With the power of incident response, they establish protocols, set up communication channels, and ensure the team is battle-ready for unexpected outages. They also embrace capacity planning, foreseeing the storm of user demand and preparing the infrastructure for the onslaught. Equipped with tools like Jira, Asana, Slack, and Microsoft Teams, Operations Managers lead their team to victory, streamlining operations and driving the pursuit of excellence. They go beyond project management platforms to embrace collaborative incident management tools such as PagerDuty and Opsgenie, enabling seamless coordination during incidents and facilitating post-incident reviews. To optimise operations further, Operations Managers harness the power of chatbots and chatOps tools like ChatOps, Hubot, or Slack integrations, empowering the team to perform routine tasks, access system information, and trigger automated processes through chat interfaces. This seamless integration of automation and collaboration streamlines operations minimizes response times and enhances overall team efficiency.</p><h3>Site Reliability Developer: The Code Crusader for Reliability</h3><p>In the realm of SRE, a superhero wields the power of code to build rock-solid and scalable systems. SRE Developers are knights in shining armour, wielding their programming skills to conquer the challenges of reliability and scalability. They partner with SRE Engineers/Analysts, learning the secrets of the system and channelling their expertise into writing code that can withstand the most challenging battles in production. These code crusaders are masters of the art of failure. They design systems with built-in redundancy, embracing the chaos of failures and ensuring graceful recoveries. Their secret weapon? Automated testing. With unit, integration, and performance tests, they provide that their code is battle-tested and free from vulnerabilities. They dance with containers like Docker and orchestrate armies of microservices with Kubernetes, wielding the power of automation to unleash rapid and reliable deployments. Observability is their superpower. They instrument their systems with logging, tracing, and metrics collection, giving them an X-ray vision into the application’s inner workings. Armed with tools like ELK Stack (Elasticsearch, Logstash, and Kibana), Jaeger, and Prometheus, they analyze logs, trace requests, and visualize metrics to identify performance bottlenecks, troubleshoot issues, and continuously optimize the system. But wait, there’s more! SRE Developers explore cutting-edge technologies like serverless computing and event-driven architectures to build systems that scale dynamically and handle bursts of traffic effortlessly. They embrace chaos engineering, purposefully injecting controlled failures into the system to validate resilience and improve fault tolerance.</p><h3>Site Reliability Automation Engineer: The Wizard of Efficiency</h3><p>Amidst the chaos, there’s a hero who conjures automation spells, wielding the power to streamline operations and vanquish repetitive tasks. SRE Automation Engineers are the wizards of efficiency, crafting magical scripts and building automated pipelines that ensure swift and reliable software releases. With the flick of their scripting wand-Python, Bash, or PowerShell-they automate infrastructure management, simplifying complex tasks and banishing the spectre of human error. They embrace the enchanting world of infrastructure as code (IaC). They use tools like Terraform, CloudFormation, and Ansible to weave spells that easily provision and manage infrastructure. Their custom monitoring and alerting tools act as crystal balls, allowing them to foresee and proactively resolve potential issues. But their powers continue beyond infrastructure automation. SRE Automation Engineers also focus on continuous integration and continuous deployment (CI/CD), weaving spells of automation that transform the software development lifecycle. They set up robust CI/CD pipelines with tools like Jenkins, GitLab CI/CD, or CircleCI, automating build, testing, and deployment processes. This allows for rapid iteration, ensuring that new features and enhancements are seamlessly deployed to production environments. To supercharge observability, Site Reliability Automation Engineers leverage logging and monitoring tools like Splunk, Nagios, and Zabbix. They configure dashboards and alerts that provide real-time insights into system health and performance, empowering the team to respond swiftly to anomalies.</p><h3>Site Reliability Engineering Leads or Managers: The Visionary Protector of Reliability</h3><p>Every superhero team needs a visionary leader who can guide them toward a future of unparalleled reliability. SRE Leads or Managers are the protectors of this vision, setting the course and aligning the team with best practices and emerging trends. They wield the power of key metrics, setting targets and ensuring that the team is on track to achieve reliability goals. With service level objectives (SLOs), they establish the benchmarks that define acceptable levels of system performance. Root cause analysis (RCA) is their investigative power, unravelling the mysteries behind incidents and driving systemic improvements to prevent their recurrence. Their mantra is continuous improvement. They foster a culture of innovation, encouraging their team to experiment fearlessly, learn from failures, and implement iterative enhancements. Armed with incident management platforms like PagerDuty, and reporting and analytics tools like Tableau and Grafana, they shape the strategic vision of SRE, harnessing data-driven insights to guide their decisions.</p><h3>Conclusion: Unleash Your Inner SRE Superhero!</h3><p>In the thrilling world of SRE, a diverse team of superheroes unites to protect the integrity and performance of software systems. From the Avenger-like SRE Engineers/Analysts to the visionary Site Reliability Managers, each face of SRE brings unique superpowers to the table. Together, they combat latency, toil, and system failures, ensuring a seamless user experience and propelling organisations to new heights. So, embrace your inner SRE superhero and join the ranks of these mighty warriors. Equip yourself with monitoring tools, automation spells, and a relentless drive for continuous improvement. Dive into the depths of code, unleash the power of infrastructure automation, and envision a future where systems are resilient, scalable, and efficient. The time has come to unleash the full potential of Site Reliability Engineering and make a significant impact in the digital realm!</p><p><em>Originally published at </em><a href="https://cmpsoares.com/blog/2023-06-19_unleashing-the-superheroes-of-sre-unlocking-the-power-of-site-reliability-engineering/"><em>https://cmpsoares.com</em></a><em> on June 19, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d17d2039cdb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cmpsoares/unleashing-the-superheroes-of-sre-unlocking-the-power-of-site-reliability-engineering-1d17d2039cdb">Unleashing the Superheroes of SRE: Unlocking the Power of Site Reliability Engineering</a> was originally published in <a href="https://medium.com/cmpsoares">CMPSOARES</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deciphering Tech’s Unsung Heroes: A Layman’s Guide to DevOps, SRE, Infrastructure, Cloud…]]></title>
            <link>https://medium.com/cmpsoares/deciphering-techs-unsung-heroes-a-layman-s-guide-to-devops-sre-infrastructure-cloud-5fb8553a9b2e?source=rss-cfb718c360aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fb8553a9b2e</guid>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Carlos Manuel Soares]]></dc:creator>
            <pubDate>Sun, 18 Jun 2023 01:00:18 GMT</pubDate>
            <atom:updated>2023-06-18T01:24:19.083Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deciphering Tech’s Unsung Heroes: A Layman’s Guide to DevOps, SRE, Infrastructure, Cloud, DevSecOps, and SysAdmin Roles</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*0fTMYy4183BhbD7CKLpfIw.jpeg" /></figure><p>Are you confused by the numerous tech job titles, like DevOps Engineer, Site Reliability Engineer (SRE), Infrastructure Engineer, Cloud Engineer, DevSecOps Engineer, and System Administrator (SysAdmin)? Trust me; you’re not alone. I get this question asked a lot, even by the recruiters and companies that try to hire me for these positions, the fact is, it wasn’t all clear to me either when I started. But let’s uncover the mystery behind these roles and understand how they intersect in this ever-evolving tech landscape.</p><h4>DevOps Engineer: The Harmony Maker</h4><p>A DevOps Engineer is like a symphony conductor, ensuring that all elements of software development (Dev) and IT operations (Ops) work in harmony. They are responsible for setting up a smooth and efficient pipeline to move software from development to production. Their primary focus is to automate as much of this process as possible.</p><h4>Site Reliability Engineer (SRE): The Problem Solver</h4><p>SREs, on the other hand, are problem solvers. Their core objective is to maintain system reliability and uptime. When an issue occurs that disrupts service, the SRE jumps into action. They also closely monitor systems to pre-emptively address potential issues.</p><h4>Infrastructure Engineer: The Foundation Builder</h4><p>An Infrastructure Engineer can be likened to an architect or a construction engineer. They are responsible for designing and building the underlying network and server infrastructure that all software runs on. This includes managing systems, data centers, and related infrastructure.</p><h4>Cloud Engineer: The Sky’s the Limit</h4><p>Cloud Engineers are specialised Infrastructure Engineers who focus on cloud-based infrastructure. They help businesses leverage the power of the cloud for their infrastructure needs. This can involve designing, implementing, and managing cloud systems and integrating them with other services.</p><h4>DevSecOps Engineer: The Guardian</h4><p>Think of DevSecOps Engineers as the guardians of the software lifecycle. They embed security into the DevOps process, ensuring that all code, systems, and processes adhere to security standards. Their goal is to catch vulnerabilities before they become threats.</p><h4>System Administrator (SysAdmin): The Multi-Tasker</h4><p>SysAdmins, the tech world’s multi-taskers, handle a broad array of tasks. From user support to system maintenance, backups, and recovery, they ensure the IT infrastructure, Middleware and Applications all run smoothly.</p><h3>The Skillset Overlap: Unifying Tech Roles</h3><p>While each role has a distinct focus, they all share a common thread: they need an overlapping skillset to perform their duties effectively.</p><h4>Coding and Scripting:</h4><p>All these roles require some level of coding and scripting knowledge. They must automate routine tasks, perform system updates, or troubleshoot issues. While the specific languages may vary, some commonly used ones include Python, Bash, and PowerShell.</p><h4>Infrastructure Knowledge:</h4><p>Whether on-premise, cloud-based, or hybrid, these engineers should understand how infrastructure works. From servers and storage to network protocols, the command of infrastructure and the tools to automate and orchestrate it (such as Terraform, Ansible and Kubernetes) is fundamental to their roles.</p><h4>Understanding of CI/CD:</h4><p>DevOps, SREs, and DevSecOps Engineers live and breathe Continuous Integration/Continuous Delivery. They utilise tools like Jenkins, Travis CI, or CircleCI to streamline and automate the software release process.</p><h4>Security Practices:</h4><p>With cyber threats becoming increasingly sophisticated, having a solid understanding of security best practices is crucial. This is especially true for DevSecOps Engineers, who ensure the integration of security at every phase of the DevOps process.</p><h4>Problem-Solving Skills:</h4><p>When things go wrong (and they often do), these tech professionals need to be quick on their feet. The ability to troubleshoot issues, find solutions, and minimise downtime is a shared trait among these roles.</p><h3>Examples of Overlapping Responsibilities</h3><p>Let’s take a look at how these roles might interact on a given project:</p><p>Imagine a company migrating its on-premise infrastructure to a cloud-based system. The Cloud Engineer would be heavily involved in designing and implementing the new system. The Infrastructure Engineer would also play a key role in ensuring the existing system’s successful transition.</p><p>The DevOps Engineer, on the other hand, would be tasked with establishing a new CI/CD pipeline suitable for the cloud environment. Meanwhile, the DevSecOps Engineer must review and improve security practices for the new cloud infrastructure. The SRE would ensure that the migration has minimal impact on system reliability and uptime.</p><p>And finally, the SysAdmin would ensure that end users face minimal disruption during the migration process and help troubleshoot any issues.</p><h3>Wrapping Up</h3><p>Understanding these roles and how they interact is essential in today’s technology-driven world. While these job titles may seem distinct, they share overlapping responsibilities and skills, contributing to the seamless operation of our digital world. This results in professionals often switching between these roles in their careers. It is also often the case that companies don’t have all these roles, and the responsibilities are diluted in the other roles. So don’t be surprised when a DevOps role includes many SRE responsibilities.</p><p>So the next time you hear about a DevOps Engineer or an Infrastructure Engineer, you’ll know they are part of the orchestra that keeps our digital world in harmony.</p><p><em>Originally published at </em><a href="https://cmpsoares.com/blog/2023-06-18_deciphering-techs-unsung-heroes-a-laymans-guide-to-devops-sre-infrastructure-cloud-devsecops-and-sysadmin-roles/"><em>https://cmpsoares.com</em></a><em> on June 18, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fb8553a9b2e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cmpsoares/deciphering-techs-unsung-heroes-a-layman-s-guide-to-devops-sre-infrastructure-cloud-5fb8553a9b2e">Deciphering Tech’s Unsung Heroes: A Layman’s Guide to DevOps, SRE, Infrastructure, Cloud…</a> was originally published in <a href="https://medium.com/cmpsoares">CMPSOARES</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why you should have the habit to sign all your git commits]]></title>
            <link>https://medium.com/cmpsoares/why-you-should-have-the-habit-to-sign-all-your-git-commits-add2edef0135?source=rss-cfb718c360aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/add2edef0135</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Carlos Manuel Soares]]></dc:creator>
            <pubDate>Tue, 25 Jan 2022 17:00:00 GMT</pubDate>
            <atom:updated>2022-01-25T20:15:29.267Z</atom:updated>
            <content:encoded><![CDATA[<h3>It just looks so darn cool!</h3><p>Even if you don’t understand yet how and why you should sign Git commits, you might have seen this badge on GitHub:</p><figure><img alt="Commit Signature" src="https://cdn-images-1.medium.com/max/288/0*ST851v9oVAweDP5J.png" /><figcaption>Verified Commit Badge</figcaption></figure><p>And even if you don’t care about the security and authentication it provides to you and the community… How darn cool does that look! 😎</p><p>It sounds more challenging than it is, and you can set it up once, and you’re good to go for ages! Until you format or destroy your PC, basically… Or if you buy a new one for the fifth time this year, you spoiled rich ba&amp;mldr; Ahem! Let me get my composure back. How cool does that badge look, right?!</p><h3>But why should I sign anything anyway?</h3><p>Well, before going into the how let’s discuss the why. And no, it’s not just about the green verified badge in Github…</p><p>For centuries we have been very creative in finding ways to mark or “sign” documents, tools, art as proof of identity, authenticity and intent. Naturally, the harder it is to replicate, the better. These can be written, stamped, mechanical, engraved and digital.</p><p>But why? Well, you might want to let people be assured that what they’re reading, buying or using is really from you. You created it, and it wasn’t someone impersonating you with any fraudulent intent.</p><p>At the beginning of the digital world, often it was considered enough to add a signature block to your content. Which is a block of text containing the author’s name and contacts, and in some scenarios, images, ASCII art, usage licenses or disclaimers.</p><p>However, this is easier to copy and falsify than a handwritten signature… So good attempt, but sorry, it ain’t gonna work…</p><p>This brings use to Digital or Cryptographic Signatures. Cryptographic digital signatures use public-key cryptography algorithms, also called asymmetric cryptography algorithms, to provide data integrity. This system uses a pair of text-based keys (a public and a private one). Essentially the private key is used to sign a document, and the public key is provided to the other party to verify your signature.</p><p>It’s kind of like sending a glass box with a letter in it. You are the only one that can open the box and put the letter in it with the private key, everyone can read the letter in the box as it is made from glass, and those with your public key can use it to check if it is really your box.</p><p>There are many asymmetric cryptography algorithms for many use cases (even bitcoin and most cryptocurrencies are based on these). Still, for messaging, usually, GPG and S/MIME are the choices. The same goes for GitHub commit messages. GPG is generally considered the standard to sign text messages, and S/MIME has shown some strengths with email and other media that’s not just text.</p><h3>So, how do we sign a commit anyway?</h3><p>In short, you use a GPG key that you have generated yourself to sign the commits in practice and provide Github with the key’s public counterpart.</p><p>GitHub then uses OpenPGP libraries to confirm that your locally signed commits and tags are cryptographically verifiable against one of the public keys you have added to your Github account.</p><p>To sign commits using GPG and have those commits verified on Github, we need to follow these simple steps:</p><ol><li>Check for existing GPG keys</li><li>Generate a new GPG key</li><li>Add a new GPG key to your GitHub account</li><li>Tell Git about your signing key</li><li>Sign commits</li><li>Sign tags</li></ol><h4>Part 1: Check for GPG installation and Keys</h4><p>We will sign our commits using GPG based keys, so it is essential to validate if the tool is installed:</p><ol><li>Open a Terminal</li><li>Run which gpg to verify if it is installed</li><li>If it has not been installed, as GPG does not come installed by default on macOS or Windows, we need to install the GPG command-line tools; see <a href="https://gnupg.org/download/">GnuPG’s Download page</a>.</li><li>When installed, run the command gpg --list-secret-keys --keyid-format=long to list the long-form GPG keys for which you have both public and private keys. If this doesn&#39;t work, it might be that you&#39;re installation requires you to use gpg2 instead, and you can run gpg2 --list-keys --keyid-format LONG (If you&#39;re using GPG2, you will correspondingly need to configure Git to use GPG2 with the command git config --global gpg.program gpg2)</li><li>Check the command output to see if you have a GPG keypair:</li></ol><ul><li>If there are no GPG key pairs or you don’t want to use any available for signing commits and tags, go to the next step.</li><li>If there’s an existing GPG key pair and you want to use it to sign commits and tags, then skip to step 3.</li></ul><h4>Part 2: Generate a GPG key</h4><p>Now we need to generate our GPG key to sign our commits with the following steps:</p><p>First, generate a GPG key pair. As there are multiple versions of GPG, you should check the relevant gpg or gpg2 to find the appropriate key generation command. Your key must use RSA.</p><ul><li>If you are on version 2.1.17 or greater, use the command below to generate a GPG key pair. gpg --full-generate-key</li><li>If you are not on version 2.1.17 or greater, the gpg --full-generate-key command doesn&#39;t work. Instead, paste the command below and skip to step 6. gpg --default-new-key-algo rsa4096 --gen-key</li></ul><p>It will request a number of inputs:</p><ol><li>At the prompt, specify the kind of key you want or press Enter to accept the default.</li><li>Set the key size you desire or press Enter to use the default value at the following input. Your key needs to be at least 4096 bits.</li><li>Enter the key’s time to live or press Enter to specify the default selection, indicating that the key doesn&#39;t expire.</li><li>Confirm that your selections are correct.</li><li>Enter your user ID information. When requested to enter your email address, ensure that you enter a verified email address for your GitHub account. You can use the comment field to add your company name if desired.</li><li>Type a secure passphrase.</li><li>Now use the gpg --list-secret-keys --keyid-format=long command to validate that it has been created successfully.</li></ol><h4>Part 3: Adding the GPG key to Github:</h4><p>For Github to know if the key is yours, we need to add the public key to your account (In case you wish to set this up on Gitlab, the steps to do in their web app are very similar, and I would recommend looking into <a href="https://docs.gitlab.com/ee/user/project/repository/gpg_signed_commits/#adding-a-gpg-key-to-your-account">this part of their documentation</a>):</p><ul><li>Open a Terminal</li><li>Use the gpg --list-secret-keys --keyid-format=long command to list the long form of the GPG keys for which you have both the public and private keys. The private key is required for signing commits or tags.</li><li>From the GPG key list, copy the long form of the key ID you’d like to use. In this example, the GPG key ID is AFBBCB53E2D934D5:</li></ul><pre>$ gpg --list-secret-keys --keyid-format=long<br>/Users/cmpsoares/.gnupg/pubring.kbx<br>-----------------------------------<br>sec   rsa4096/AFBBCB53E2D934D5 2021-10-11 [SC]<br>      F30FB917267E70CD6A8C3A57AFBBCB53E2D934D5<br>uid                 [ultimate] Carlos Manuel Soares (CMPSoares Lda.) &lt;carlos@cmpsoares.com&gt;<br>ssb   rsa4096/C744C29A059EAE08 2021-10-11 [E]</pre><ul><li>Paste the command below, substituting the GPG key ID you’d like to use. In this example, the GPG key ID is AFBBCB53E2D934D5:</li></ul><pre>$ gpg --armor --export &lt;em&gt;AFBBCB53E2D934D5&lt;/em&gt;<br># Prints the GPG key ID, in ASCII armor format</pre><ul><li>Copy your GPG key, beginning with -----BEGIN PGP PUBLIC KEY BLOCK----- and ending with -----END PGP PUBLIC KEY BLOCK-----.</li><li>Go to your browser and log in to your account on <a href="https://github.com/">github.com</a></li><li>In the upper-right corner of any page, click your profile photo, then click <strong>Settings</strong>.</li></ul><figure><img alt="Settings icon in the user bar" src="https://cdn-images-1.medium.com/max/412/0*JIkIVL2J1NI5j8ai.png" /><figcaption>Settings option in the user bar</figcaption></figure><ul><li>Click on <strong>SSH and GPG keys</strong>.</li></ul><figure><img alt="Authentication keys" src="https://cdn-images-1.medium.com/max/536/0*lp9eXRlJlsaKFsxm.png" /><figcaption>Authentication keys</figcaption></figure><ul><li>Click the <strong>New GPG key</strong> button.</li></ul><figure><img alt="GPG Key Button" src="https://cdn-images-1.medium.com/max/744/0*oZOeQbLqQgY59T5A.png" /><figcaption>GPG Key Button</figcaption></figure><ul><li>In the “Key” field, paste the GPG key you copied when you generated your GPG key.</li></ul><figure><img alt="The key field" src="https://cdn-images-1.medium.com/max/757/0*YEL6biSEqZH93LlV.png" /><figcaption>The key field</figcaption></figure><ul><li>Click the <strong>Add GPG key</strong> add.</li></ul><figure><img alt="The Add key button" src="https://cdn-images-1.medium.com/max/157/0*wvDcZmuly4IB8HbF.png" /><figcaption>The Add key button</figcaption></figure><ul><li>To confirm the action, you may be prompted to enter your GitHub password.</li></ul><h4>Part 4: Configuring git to use your signature</h4><p>So now that you have a GPG keypair ready, we need to tell Git to use it whenever we need to sign a commit or a tag:</p><ul><li>Open Terminal.</li><li>With the gpg --list-secret-keys --keyid-format=long command, we list the long form of the GPG keys for which you have both a public and private key. A private key is required for signing commits or tags.</li><li>Copy the long form of the GPG key you would like to use from the list of keys. In this example, the GPG key ID is AFBBCB53E2D934D5:</li></ul><pre>$ gpg --list-secret-keys --keyid-format=long<br>/Users/cmpsoares/.gnupg/pubring.kbx<br>-----------------------------------<br>sec   rsa4096/AFBBCB53E2D934D5 2021-10-11 [SC]<br>      F30FB917267E70CD6A8C3A57AFBBCB53E2D934D5<br>uid                 [ultimate] Carlos Manuel Soares (CMPSoares Lda.) &lt;carlos@cmpsoares.com&gt;<br>ssb   rsa4096/C744C29A059EAE08 2021-10-11 [E]</pre><ul><li>To set your GPG signing key in Git, paste the command below, substituting in the GPG key ID you’d like to use. In this example, the GPG key ID is AFBBCB53E2D934D5:</li></ul><pre>$ git config --global user.signingkey AFBBCB53E2D934D5</pre><p><strong><em>Note that you might need to repeat this step when you clone new git repositories to your machine.</em></strong> 5. To add your GPG key as an environment variable by setting the following command in your terminal profile (depending on the terminal that you use, this can vary, but it’s usually a.profile, .&lt;terminal_being_used&gt;_profile or .&lt;terminal_being_used&gt; file in your HOME or ROOT folder. In my case, it is ~/.zshrc, so you can add your GPG like this:</p><pre>$ echo &#39;export GPG_TTY=$(tty)&#39; &gt;&gt; ~/.zshrc</pre><h4>Part 5: Sign the commits by default (Optional)</h4><p>Naturally, as you now have configured the GPG key, you can now sign your commits by adding the -S flag to your commit command, and it will prompt you for the passphrase and sign the commit, but this can also be set as default.</p><p>To configure your Git client to sign commits by default for a local repository, in Git versions 2.0.0 and above, run the command git config commit.gpgsign true. To set this as default in any local repository on your machine, run it with the --global flag like this: git config --global commit.gpgsign true.</p><p><strong><em>Note that you might need to repeat this step as well when you clone new git repositories to your machine.</em></strong></p><p>To store your GPG key passphrase, so you don’t have to enter it every time you sign a commit, we recommend using any of the following tools:</p><ul><li>For Mac users, the GPG Suite allows you to store your GPG key passphrase in the Mac OS Keychain.</li><li>For Windows users, the Gpg4win integrates with other Windows tools.</li></ul><p>You can also manually configure the gpg-agent to save your GPG key passphrase, but this doesn’t integrate with Mac OS Keychain like ssh-agent and requires more setup.</p><h4>Part 6: Sign old commits</h4><p>You might want to re-sign your old commits for compliance in some scenarios. An example of this is that more corporations only allow fully certified/signed Actions to be used from the GitHub Actions Marketplace. Another is that as a Software Developer, you might want to prove that it was really you that provided a piece of code. Having all your code signed makes it easier for others to trust you. Which is very useful and sometimes even required when contributing to Open-source projects. So if you’re in a situation where all the code you have to deliver must be signed to be compliant, you might need to re-sign all your commits with the following steps:</p><ul><li>Open a Terminal</li><li>Go to your project repository</li><li>Make sure your local branch is up-to-date</li><li>Run the following command:</li></ul><pre>git rebase --exec &#39;git commit --amend --no-edit -n -S&#39; -i &lt;oldest_rev or --root if it is the whole repo&gt;</pre><ul><li>If you need to sign the root commit, there are situations where you also need to use the following commands:</li></ul><pre>git checkout &lt;root_commit_sha&gt;<br>git commit --amend -S<br># Don&#39;t change anything and save/close vi<br>git rebase --onto HEAD &lt;root_commit_sha&gt; main</pre><ul><li>Then force push to Github: git push --force</li></ul><p>All your commits should be signed by this time, and in Github, they will show that cool Verified Badge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/0*x7DYzQysKk0cFPkR.png" /></figure><p>But more important than that, you ensure the people consuming your code know that it is really yours, thus adding that professional flair to it.</p><p><em>Originally published at </em><a href="https://cmpsoares.com/blog/2022-01-25_why-you-should-have-the-habit-to-sign-all-your-git-commits/"><em>https://cmpsoares.com</em></a><em> on January 25, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=add2edef0135" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cmpsoares/why-you-should-have-the-habit-to-sign-all-your-git-commits-add2edef0135">Why you should have the habit to sign all your git commits</a> was originally published in <a href="https://medium.com/cmpsoares">CMPSOARES</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>