<?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: Afzal Hassan</title>
    <description>The latest articles on DEV Community by Afzal Hassan (@iemafzalhassan).</description>
    <link>https://dev.to/iemafzalhassan</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%2F1128570%2Fbc365452-24d5-4b32-bba3-d7ba53c3ca91.png</url>
      <title>DEV Community: Afzal Hassan</title>
      <link>https://dev.to/iemafzalhassan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iemafzalhassan"/>
    <language>en</language>
    <item>
      <title>Enabling FIPS on UAT Postgres servers meant moving off MD5 passwords</title>
      <dc:creator>Afzal Hassan</dc:creator>
      <pubDate>Mon, 12 Oct 2026 21:05:07 +0000</pubDate>
      <link>https://dev.to/iemafzalhassan/enabling-fips-on-uat-postgres-servers-meant-moving-off-md5-passwords-3620</link>
      <guid>https://dev.to/iemafzalhassan/enabling-fips-on-uat-postgres-servers-meant-moving-off-md5-passwords-3620</guid>
      <description>&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;We needed FIPS mode enabled on our UAT database servers, running RHEL 9.5. The reason was an RBI audit point, so it was not optional.&lt;/p&gt;

&lt;p&gt;The first attempt to enable FIPS did not stick, and the reason was on the database side: our Postgres databases were still using the older MD5 password hashing method, which is not compatible with FIPS mode.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this mattered more than a usual config change
&lt;/h2&gt;

&lt;p&gt;These are not isolated databases. Our UAT Keycloak identity provider runs on them, and the dependency chain goes like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If Postgres is down, Keycloak does not run.&lt;/li&gt;
&lt;li&gt;If Keycloak is down, Superset does not run.&lt;/li&gt;
&lt;li&gt;If Vault is down, all the application pods end up stuck in CrashLoopBackOff.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So a password hashing change on the database silently sits upstream of the identity provider, the BI tool, and every application pod.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;p&gt;The order of operations turned out to be the whole trick:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Change the password hashing from MD5 to SCRAM.&lt;/li&gt;
&lt;li&gt;Reformat the existing passwords and add them back under the new scheme.&lt;/li&gt;
&lt;li&gt;Enable FIPS again, and this time it worked.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Verifying it
&lt;/h2&gt;

&lt;p&gt;After the change I confirmed FIPS mode was actually active using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;fips &lt;span class="nb"&gt;enable&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;p&gt;I would have checked what authentication and crypto settings the services on the host depend on before enabling FIPS, not after. FIPS is not a single-server change when the server is upstream of Keycloak, Superset and Vault. Mapping the dependency chain first would have made the MD5-to-SCRAM step obvious from the start instead of a fix after the fact.&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>rhel</category>
      <category>fips</category>
      <category>security</category>
    </item>
  </channel>
</rss>
