<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dan Lucio Prada</title>
    <description>The latest articles on DEV Community by Dan Lucio Prada (@danlucioprada).</description>
    <link>https://dev.to/danlucioprada</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2314712%2F8837461d-fe43-4f1a-a380-086cc8bc463a.png</url>
      <title>DEV Community: Dan Lucio Prada</title>
      <link>https://dev.to/danlucioprada</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danlucioprada"/>
    <language>en</language>
    <item>
      <title>Preventing Secrets from Leaking in Code with Talisman and Git Hooks 🔐</title>
      <dc:creator>Dan Lucio Prada</dc:creator>
      <pubDate>Thu, 31 Oct 2024 13:09:23 +0000</pubDate>
      <link>https://dev.to/danlucioprada/preventing-secrets-from-leaking-in-code-with-talisman-and-git-hooks-403</link>
      <guid>https://dev.to/danlucioprada/preventing-secrets-from-leaking-in-code-with-talisman-and-git-hooks-403</guid>
      <description>&lt;p&gt;&lt;strong&gt;Protecting sensitive data in code is crucial&lt;/strong&gt;, especially in times when breaches are increasingly common. An example? In 2024, &lt;a href="https://www.gitguardian.com/files/the-state-of-secrets-sprawl-report-2024" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; saw a 28% rise in secret leaks! Passwords, API keys, and other sensitive data must be safeguarded, and this is where &lt;strong&gt;Talisman&lt;/strong&gt; comes to the rescue.&lt;/p&gt;

&lt;h3&gt;
  
  
  🤖 What is Talisman?
&lt;/h3&gt;

&lt;p&gt;Talisman is a tool that acts as a "guardian" for your repository, detecting and blocking the inclusion of secrets before they are saved in a commit. It works through &lt;strong&gt;Git Hooks&lt;/strong&gt; — scripts that automatically perform checks with each commit.&lt;/p&gt;

&lt;h3&gt;
  
  
  🚀 Installation and Setup
&lt;/h3&gt;

&lt;p&gt;Installation is straightforward, and Talisman can be configured to monitor all your Git repositories. &lt;strong&gt;Quick commands:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;--silent&lt;/span&gt; https://raw.githubusercontent.com/thoughtworks/talisman/main/global_install_scripts/install.bash &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /tmp/install_talisman.bash &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; /bin/bash /tmp/install_talisman.bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After installation, Talisman checks for any attempt to include secrets in the code, alerting and allowing corrective actions before sensitive data is published.&lt;/p&gt;

&lt;h3&gt;
  
  
  ⚡ Extra Tips
&lt;/h3&gt;

&lt;p&gt;In addition to Talisman, other tools like &lt;strong&gt;pre-commit&lt;/strong&gt; and &lt;strong&gt;Husky&lt;/strong&gt; offer hook integrations that help ensure quality in your workflow. Every commit undergoes a check, preventing security issues from reaching the repository.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔐 Conclusion
&lt;/h3&gt;

&lt;p&gt;Implementing Talisman is a smart step for any dev concerned with the security of their code. With it, &lt;strong&gt;you ensure that passwords and API keys don’t end up in the wrong hands&lt;/strong&gt;. So, you can code with peace of mind — Talisman is looking after the secrets! 😉&lt;/p&gt;

</description>
      <category>devops</category>
      <category>security</category>
      <category>secrets</category>
      <category>git</category>
    </item>
  </channel>
</rss>
