<?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: Hanna Dev</title>
    <description>The latest articles on DEV Community by Hanna Dev (@hannadevtools).</description>
    <link>https://dev.to/hannadevtools</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%2F4045142%2Fa6063546-d842-4509-b3e4-c410fbedd5c1.png</url>
      <title>DEV Community: Hanna Dev</title>
      <link>https://dev.to/hannadevtools</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hannadevtools"/>
    <language>en</language>
    <item>
      <title>A HAR file is an auth dump: a 30-second safe-sharing checklist</title>
      <dc:creator>Hanna Dev</dc:creator>
      <pubDate>Fri, 24 Jul 2026 08:27:58 +0000</pubDate>
      <link>https://dev.to/hannadevtools/a-har-file-is-an-auth-dump-a-30-second-safe-sharing-checklist-2h25</link>
      <guid>https://dev.to/hannadevtools/a-har-file-is-an-auth-dump-a-30-second-safe-sharing-checklist-2h25</guid>
      <description>&lt;p&gt;When support asks for a HAR file, the request sounds harmless: reproduce the bug, export a log, attach it to a ticket.&lt;/p&gt;

&lt;p&gt;But a HAR is not just a performance trace. It can be a snapshot of an authenticated browser session.&lt;/p&gt;

&lt;p&gt;Depending on the page and workflow, it may contain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Authorization&lt;/code&gt; headers and API keys&lt;/li&gt;
&lt;li&gt;session cookies, including values from cookies that JavaScript cannot read&lt;/li&gt;
&lt;li&gt;access tokens in query strings or request bodies&lt;/li&gt;
&lt;li&gt;email addresses, account IDs, internal hostnames, and document URLs&lt;/li&gt;
&lt;li&gt;request and response payloads with actual user data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That makes "send me the HAR" closer to "send me a temporary auth dump" than "send me a screenshot."&lt;/p&gt;

&lt;h2&gt;
  
  
  The 30-second checklist
&lt;/h2&gt;

&lt;p&gt;Before attaching a HAR to any ticket, chat, or public issue:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Capture the smallest possible reproduction.&lt;/strong&gt; Open a fresh tab, start recording immediately before the failing action, and stop immediately after it. Fewer requests mean fewer secrets and less noise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prefer a disposable or test account.&lt;/strong&gt; If you must use a real session, plan to revoke it after capture.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inspect the risky surfaces.&lt;/strong&gt; Search request headers, cookies, query parameters, POST bodies, and response bodies—not only URLs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redact values without destroying structure.&lt;/strong&gt; Support usually needs header names, status codes, timings, initiators, and the request sequence. Replace secret values consistently instead of deleting whole objects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify the sanitized copy.&lt;/strong&gt; Search it again for emails, bearer tokens, cookie values, API-key prefixes, and identifiers you already know.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask what is actually required.&lt;/strong&gt; A support engineer may need one failed request and its response, not the entire browsing session.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Revoke what can be revoked.&lt;/strong&gt; Logging out, rotating a key, or expiring the captured session is cheap insurance.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why manual redaction fails
&lt;/h2&gt;

&lt;p&gt;A quick global search-and-replace can miss encoded or repeated values. Deleting every &lt;code&gt;Cookie&lt;/code&gt;, &lt;code&gt;Authorization&lt;/code&gt;, or response body can also remove the evidence needed to diagnose the incident.&lt;/p&gt;

&lt;p&gt;The useful target is not "a clean-looking JSON file." It is a &lt;strong&gt;shareable copy that preserves diagnostic shape while reducing credential exposure&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For example, this still tells an engineer what happened:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Authorization: [REDACTED: bearer_token]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This often does not:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;entire header object deleted&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Consistent placeholders also help: if the same account ID occurs in three requests, replacing it with the same token preserves correlation without exposing the original value.&lt;/p&gt;

&lt;h2&gt;
  
  
  A safer support workflow
&lt;/h2&gt;

&lt;p&gt;My preferred sequence is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;capture → minimize → detect → redact → verify → share → revoke&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The important design constraint is location. A sanitizer should not require uploading the sensitive original to an unknown server before it can make the file safe.&lt;/p&gt;

&lt;p&gt;I built a small browser-only experiment called &lt;strong&gt;ReqRescue&lt;/strong&gt; around that constraint. The current version reads the HAR in your browser tab, ranks likely incident evidence, and prepares a sanitized export. There is no account and the synthetic demo needs no real HAR.&lt;/p&gt;

&lt;p&gt;If you have 15 seconds, &lt;a href="https://reqrescue.funt1k.chatgpt.site/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=har_safe_sharing" rel="noopener noreferrer"&gt;run the synthetic demo&lt;/a&gt; and answer one question: &lt;strong&gt;does the top-ranked finding show enough evidence and confidence to suggest a useful next action?&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Important limit
&lt;/h2&gt;

&lt;p&gt;Secret detection is heuristic, not a mathematical guarantee. Encodings, proprietary token formats, and application-specific identifiers can evade any generic detector. Always review the sanitized output before sharing it, and never upload secrets to a tool you do not trust.&lt;/p&gt;

&lt;p&gt;What secret pattern or support workflow should a local HAR sanitizer handle next?&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>devops</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
