<?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: Muhammad Ali Mughal</title>
    <description>The latest articles on DEV Community by Muhammad Ali Mughal (@muhammadalimughal).</description>
    <link>https://dev.to/muhammadalimughal</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%2F4145544%2F4189fcb4-1949-496a-8c1a-7ec317ba6b06.jpg</url>
      <title>DEV Community: Muhammad Ali Mughal</title>
      <link>https://dev.to/muhammadalimughal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/muhammadalimughal"/>
    <language>en</language>
    <item>
      <title>Resume for Older Workers Over 50: Fix the Age Signals</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Wed, 25 Nov 2026 04:51:09 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/resume-for-older-workers-over-50-fix-the-age-signals-c5l</link>
      <guid>https://dev.to/muhammadalimughal/resume-for-older-workers-over-50-fix-the-age-signals-c5l</guid>
      <description>&lt;p&gt;If you are over 50 and your resume is not getting interviews, the problem is rarely your experience. It is usually the signals around it: a 30-year work history, a 1990s graduation year, an AOL address, "Microsoft Office Suite" as a top skill and a summary that starts with "seasoned professional with decades of experience." None of that tells a recruiter what you can do next month. All of it tells them roughly how old you are.&lt;/p&gt;

&lt;p&gt;I build &lt;a href="https://smartresumeanalyzer.com/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=resume-for-older-workers-over-50-ats" rel="noopener noreferrer"&gt;Smart Resume Analyzer&lt;/a&gt;, a free tool that checks how a resume reads to an ATS and to a job description. I wrote this with help from AI tools and checked every example myself. This guide covers one problem: writing a resume for older workers that gets read for skills, not age.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch the video version:&lt;/strong&gt; &lt;a href="https://www.youtube.com/watch?v=AbSOa078_70" rel="noopener noreferrer"&gt;Resume Tips for Older Workers (Over 50): 7 Fixes for 2026&lt;/a&gt;. This article goes further than the video, with a full before and after, a field-by-field ATS view and a 12-point checklist.&lt;/p&gt;

&lt;h2&gt;
  
  
  How should older workers write a resume that passes ATS?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Direct answer:&lt;/strong&gt; Show the last 10 to 15 years in full, compress older roles into a short "Earlier Career" line, drop graduation years, list current tools by name, and lead with recent, measurable results. Keep a plain one-column layout so the ATS parses dates and titles cleanly, and match keywords to the job description.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why age shows up on a resume before you do
&lt;/h2&gt;

&lt;p&gt;An applicant tracking system does not guess your age. It parses your file into fields, and recruiters filter and search those fields. In the US, the Age Discrimination in Employment Act protects workers 40 and older, so no legitimate employer sets an "age" filter. But people read the parsed record, and four fields carry age signals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Total experience.&lt;/strong&gt; Workday, iCIMS and Taleo applications often show your history as a list of positions with start and end dates. A list that starts in 1991 is the first thing a screener sees.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Education dates.&lt;/strong&gt; Many application forms have a graduation date field. Check whether it is marked required; often it is not.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skills text.&lt;/strong&gt; Recruiters search for current tool names. "Lotus Notes" and "Windows XP" are not searched for, and they date the page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contact details.&lt;/strong&gt; An old email domain or a landline-only phone number is a small signal, but it is free to fix.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Greenhouse and Lever tend to show the parsed resume next to the original file, so the reviewer sees your layout too. A dense two-page wall of text reads "long career" before it reads "strong career."&lt;/p&gt;

&lt;p&gt;The fix is not hiding your age. It is controlling which part of your career gets the space.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 15-year window: what to keep, compress and cut
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Career span&lt;/th&gt;
&lt;th&gt;What to show&lt;/th&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Why it works&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Last 10–15 years&lt;/td&gt;
&lt;td&gt;Full title, employer, dates, 3–6 result bullets&lt;/td&gt;
&lt;td&gt;Standard "Experience" entries&lt;/td&gt;
&lt;td&gt;This is what the job you want actually depends on&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15–25 years ago&lt;/td&gt;
&lt;td&gt;Title and employer, no bullets, optional dates&lt;/td&gt;
&lt;td&gt;One-line "Earlier Career" entries&lt;/td&gt;
&lt;td&gt;Keeps the progression visible without the timeline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25+ years ago&lt;/td&gt;
&lt;td&gt;Usually omit, unless it is directly relevant&lt;/td&gt;
&lt;td&gt;Mention in the summary if it matters&lt;/td&gt;
&lt;td&gt;Saves space for recent proof&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Education&lt;/td&gt;
&lt;td&gt;Degree, school, certification name&lt;/td&gt;
&lt;td&gt;No graduation year&lt;/td&gt;
&lt;td&gt;Degree still matches the filter; the date was never needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Certifications&lt;/td&gt;
&lt;td&gt;Current ones, with the year earned if recent&lt;/td&gt;
&lt;td&gt;Separate "Certifications" heading&lt;/td&gt;
&lt;td&gt;Recent dates signal current learning&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Notice the asymmetry: drop old dates, keep recent ones. A 2025 certification is a positive signal. A 1993 degree date tells the screener nothing useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Weak vs ATS-optimized: a full before and after
&lt;/h2&gt;

&lt;p&gt;Here is a realistic example for an operations manager applying to a logistics operations role. The details are illustrative, not a real person.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weak version:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Summary:&lt;/strong&gt; Seasoned operations professional with over 30 years of experience in a variety of industries. Proficient in Microsoft Office Suite. Excellent people skills.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Operations Manager, Midwest Distribution Co.&lt;/strong&gt; (1994 to present)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Responsible for warehouse operations&lt;/li&gt;
&lt;li&gt;Managed staff&lt;/li&gt;
&lt;li&gt;Handled vendors and inventory&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Education:&lt;/strong&gt; BS Business Administration, Ohio State University, 1989&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;ATS-optimized version:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Summary:&lt;/strong&gt; Operations manager for a 3-site distribution network. Cut order-to-ship time and moved inventory tracking from spreadsheets to a WMS. Targeting logistics operations manager roles.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Operations Manager, Midwest Distribution Co.&lt;/strong&gt; (2012 to present)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Led a WMS rollout (Manhattan Associates) across 3 warehouses, replacing spreadsheet inventory counts&lt;/li&gt;
&lt;li&gt;Reduced average order-to-ship time from 3 days to 1.5 days by re-sequencing pick waves&lt;/li&gt;
&lt;li&gt;Manage 42 staff across two shifts; hired and trained 3 shift supervisors&lt;/li&gt;
&lt;li&gt;Negotiated freight contracts with 5 carriers and built a monthly carrier scorecard in Power BI&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Earlier Career:&lt;/strong&gt; Warehouse Supervisor and Inventory Lead, Midwest Distribution Co.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Education:&lt;/strong&gt; BS Business Administration, Ohio State University&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Skills:&lt;/strong&gt; Warehouse management systems (WMS), Manhattan SCALE, Power BI, Excel (pivot tables, XLOOKUP), SAP MM, OSHA safety programs, carrier management, Lean&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What changed:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The summary names a target role and outcomes&lt;/strong&gt; instead of years. "30 years" was replaced with what those years produced.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The long tenure is split.&lt;/strong&gt; One employer since 1994 becomes a full "since 2012" entry plus an "Earlier Career" line. That is honest: it is still the same employer, and the earlier titles are listed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bullets carry numbers and tool names.&lt;/strong&gt; "Manhattan Associates," "Power BI" and "SAP MM" are what a recruiter types into search.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The graduation year is gone.&lt;/strong&gt; The degree still matches a "bachelor's degree" requirement.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Microsoft Office Suite" became specific Excel skills.&lt;/strong&gt; Generic office skills read as filler; named functions read as current.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv2tfp49hmauqy6nzothv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv2tfp49hmauqy6nzothv.jpg" alt="A focused professional workspace with a laptop, reading glasses and a notebook on a wooden desk" width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How the parser reads the long-tenure fix
&lt;/h2&gt;

&lt;p&gt;People worry that splitting one long job into "since 2012" plus "Earlier Career" will confuse the ATS. It does not, as long as you keep the structure plain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep each role on its own line with the title, employer and dates in the same order every time. Parsers pair the nearest date range with the nearest title.&lt;/li&gt;
&lt;li&gt;Use a recognized heading such as "Experience" or "Work Experience." "Career Highlights" may not be mapped to the experience field.&lt;/li&gt;
&lt;li&gt;Write "Earlier Career" entries without dates or with a single year range on the same line. Do not put dates in a separate right-hand column, which some parsers read out of order.&lt;/li&gt;
&lt;li&gt;If an application form asks you to enter every job with dates, fill in what it asks. The resume and the form serve different purposes, and the form is where accuracy counts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I covered date parsing in detail in &lt;a href="https://dev.to/muhammadalimughal/how-ats-parses-employment-dates-and-gaps-5hfa"&gt;How ATS Parses Employment Dates and Gaps&lt;/a&gt;, and the education field in &lt;a href="https://dev.to/muhammadalimughal/how-ats-parses-education-and-certifications-on-your-resume-3kbm"&gt;How ATS Parses Education and Certifications on Your Resume&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The skills section: current tools beat long lists
&lt;/h2&gt;

&lt;p&gt;The quickest win for an experienced candidate is the skills section. Compare:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dated phrasing&lt;/th&gt;
&lt;th&gt;Current, searchable phrasing&lt;/th&gt;
&lt;th&gt;Why it matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Microsoft Office Suite&lt;/td&gt;
&lt;td&gt;Excel (pivot tables, XLOOKUP), PowerPoint, Teams&lt;/td&gt;
&lt;td&gt;Recruiters search specific tools&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Computer literate&lt;/td&gt;
&lt;td&gt;Google Workspace, Slack, Zoom&lt;/td&gt;
&lt;td&gt;"Computer literate" signals the opposite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database management&lt;/td&gt;
&lt;td&gt;SQL, Salesforce reports&lt;/td&gt;
&lt;td&gt;Names the system they use&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Typing 70 WPM&lt;/td&gt;
&lt;td&gt;Remove&lt;/td&gt;
&lt;td&gt;Not searched for in most roles&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lotus Notes, WordPerfect&lt;/td&gt;
&lt;td&gt;Remove&lt;/td&gt;
&lt;td&gt;Dates the page, adds no match&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Only list a tool if you can talk about it in an interview. If you have not used Power BI, a weekend course and a small project you can describe is worth more than the keyword alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistakes that backfire
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Removing all dates.&lt;/strong&gt; A resume with no dates at all looks like it is hiding something, and the ATS may record zero experience. Keep dates on recent roles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Functional resumes.&lt;/strong&gt; Skill-grouped layouts without a job list are hard for parsers and many recruiters distrust them. Use a chronological layout with a strong summary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Underselling to look younger.&lt;/strong&gt; Calling a director role "team lead" to seem less senior can disqualify you from roles where seniority is the point.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Over-trimming.&lt;/strong&gt; If the target job asks for 15+ years, show 15+ years. Match the posting.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are also returning after time away, the gap advice in &lt;a href="https://dev.to/muhammadalimughal/returning-to-tech-after-a-long-break-a-resume-that-earns-the-interview-5fai"&gt;Returning to Tech After a Long Break&lt;/a&gt; applies to any field.&lt;/p&gt;

&lt;h2&gt;
  
  
  A 12-point checklist for resumes over 50
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Full entries only for the last 10–15 years.&lt;/li&gt;
&lt;li&gt;Older roles compressed into one "Earlier Career" line.&lt;/li&gt;
&lt;li&gt;No graduation years; recent certification years kept.&lt;/li&gt;
&lt;li&gt;A summary that names the target role and two or three outcomes, not total years.&lt;/li&gt;
&lt;li&gt;Every recent bullet has a number, a tool name or both.&lt;/li&gt;
&lt;li&gt;Skills section lists current tools by name.&lt;/li&gt;
&lt;li&gt;Dated tools and generic skills removed.&lt;/li&gt;
&lt;li&gt;Modern email address on a mainstream provider and a mobile number.&lt;/li&gt;
&lt;li&gt;LinkedIn URL included, with a recent photo or none.&lt;/li&gt;
&lt;li&gt;One-column layout with standard headings.&lt;/li&gt;
&lt;li&gt;Two pages maximum; one page if the role is junior to your last.&lt;/li&gt;
&lt;li&gt;Keywords checked against one real job description before sending.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Should I remove my graduation year from my resume?
&lt;/h3&gt;

&lt;p&gt;Yes, in most cases. The degree is what matches the requirement; the year adds an age signal and nothing else. Keep the year for degrees or certifications earned in the last few years.&lt;/p&gt;

&lt;h3&gt;
  
  
  How many years of experience should a resume show?
&lt;/h3&gt;

&lt;p&gt;Show the last 10 to 15 years in detail. Compress older roles into an "Earlier Career" line, unless the job asks for more years or an older role is directly relevant.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will an ATS reject me for being over 50?
&lt;/h3&gt;

&lt;p&gt;An ATS does not detect age, and age filters are illegal in the US for workers 40 and older. The risk is that dated signals reach a human reviewer first, which is why the resume should lead with recent results.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is a functional resume better for older workers?
&lt;/h3&gt;

&lt;p&gt;Usually not. Parsers expect a list of jobs with dates, and recruiters often distrust functional layouts. A chronological resume with a strong summary and an "Earlier Career" line does the same job more safely.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I show I am up to date with technology?
&lt;/h3&gt;

&lt;p&gt;Name the specific tools you use now, add recent certifications with their year, and put one recent project or rollout in your top bullets. Specific tool names are what recruiters search for.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I include a photo on my resume?
&lt;/h3&gt;

&lt;p&gt;Not on the resume itself in the US, UK or Canada. Use a recent, professional photo on LinkedIn instead, where it is expected.&lt;/p&gt;




&lt;h3&gt;
  
  
  Follow &amp;amp; Connect
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI (@resume-boost-ai)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TikTok:&lt;/strong&gt; &lt;a href="https://www.tiktok.com/@resumeboostai" rel="noopener noreferrer"&gt;Resume Boost AI (@resumeboostai)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X:&lt;/strong&gt; &lt;a href="https://x.com/AliMughal887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@AliMughal887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/ali111887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@ali111887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LinkedIn:&lt;/strong&gt; &lt;a href="https://www.linkedin.com/in/muhammad-ali-m-03434a120/" rel="noopener noreferrer"&gt;Muhammad Ali Mughal&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Watch on YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI&lt;/a&gt; · &lt;a href="https://www.youtube.com/@pixel-valut" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt; · &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>resume</category>
      <category>jobsearch</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Asterisk Call Recording Storage: Retention &amp; Encryption</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Tue, 24 Nov 2026 04:54:55 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/asterisk-call-recording-storage-retention-encryption-1f1m</link>
      <guid>https://dev.to/muhammadalimughal/asterisk-call-recording-storage-retention-encryption-1f1m</guid>
      <description>&lt;p&gt;Call recordings are the part of a phone system nobody plans until something goes wrong. The disk on the PBX fills up and recording stops without a warning. A customer asks for their data to be deleted and nobody knows which files are theirs. An auditor asks who can listen to calls and the honest answer is "anyone with SSH." Asterisk call recording storage is a design problem, not a checkbox.&lt;/p&gt;

&lt;p&gt;I run &lt;a href="https://looporigin.com/services/voip-pbx-solutions?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=asterisk-call-recording-storage-retention-encryption" rel="noopener noreferrer"&gt;Loop Origin&lt;/a&gt;, a software company that builds and maintains Asterisk and FreePBX phone systems and contact center software. I wrote this with help from AI tools and checked every command and config myself. This guide covers one problem: storing Asterisk call recordings so they stay small, searchable, encrypted and deleted on schedule.&lt;/p&gt;

&lt;h2&gt;
  
  
  How should I store Asterisk call recordings?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Direct answer:&lt;/strong&gt; Record with MixMonitor to local disk, then run a post-recording script that compresses each file (for example to Opus or MP3), encrypts it, uploads it to object storage and records the location in your database. Enforce retention with storage lifecycle rules, serve playback through short-lived signed URLs, and alert when the local spool grows.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Asterisk records, and where it goes wrong
&lt;/h2&gt;

&lt;p&gt;In most installs the &lt;code&gt;MixMonitor&lt;/code&gt; application does the recording. It writes a single mixed file of both call legs while the call runs. FreePBX, by default, stores these under &lt;code&gt;/var/spool/asterisk/monitor/YYYY/MM/DD/&lt;/code&gt; and writes the file name into the &lt;code&gt;recordingfile&lt;/code&gt; column of the CDR table, so its reports can play them back.&lt;/p&gt;

&lt;p&gt;That default is fine for a small office. It breaks at contact center volume for four reasons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Size.&lt;/strong&gt; Uncompressed 8 kHz, 16-bit mono WAV is 128 kbit/s, about 0.96 MB per minute. It adds up fast.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One disk.&lt;/strong&gt; Recordings, logs, the database and the OS all share the PBX disk. When it fills, recording fails and other services can fail with it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No retention.&lt;/strong&gt; Nothing deletes old files unless someone writes a cron job, and that job usually ignores legal holds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flat access.&lt;/strong&gt; Anyone with shell or web admin access can read every call.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The storage math, worked as an example
&lt;/h2&gt;

&lt;p&gt;Here is an example for a 20-agent team that handles about 300 recorded minutes per agent per working day (6,000 minutes a day, 22 working days a month). The bitrates are the codec settings, so the sizes follow directly; plug in your own minutes.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Bitrate (mono)&lt;/th&gt;
&lt;th&gt;Per minute&lt;/th&gt;
&lt;th&gt;Per day (6,000 min)&lt;/th&gt;
&lt;th&gt;Per month (22 days)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;WAV, 8 kHz 16-bit PCM&lt;/td&gt;
&lt;td&gt;128 kbit/s&lt;/td&gt;
&lt;td&gt;~0.96 MB&lt;/td&gt;
&lt;td&gt;~5.8 GB&lt;/td&gt;
&lt;td&gt;~127 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MP3&lt;/td&gt;
&lt;td&gt;32 kbit/s&lt;/td&gt;
&lt;td&gt;~0.24 MB&lt;/td&gt;
&lt;td&gt;~1.4 GB&lt;/td&gt;
&lt;td&gt;~32 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Opus&lt;/td&gt;
&lt;td&gt;16 kbit/s&lt;/td&gt;
&lt;td&gt;~0.12 MB&lt;/td&gt;
&lt;td&gt;~0.7 GB&lt;/td&gt;
&lt;td&gt;~16 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For phone-quality audio (8 kHz to begin with), speech at 16 to 32 kbit/s is usually clear enough for QA and disputes. Test a few real calls with your QA team before you commit to a bitrate. Keep the format your playback tools and any speech analytics vendor can read.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pipeline: record local, process, ship, index
&lt;/h2&gt;

&lt;p&gt;Recording directly to network storage is tempting, but a slow NFS mount can stall the audio write path during a call. Record to local disk, then move the finished file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: record only the useful part
&lt;/h3&gt;

&lt;p&gt;In a custom dialplan, the &lt;code&gt;b&lt;/code&gt; option starts writing only when the call is bridged, so ringing and queue hold music are not stored:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;exten =&amp;gt; _X.,1,Set(REC=${STRFTIME(${EPOCH},,%Y/%m/%d)}/${UNIQUEID})
 same =&amp;gt; n,Set(MIXMONITOR_FILENAME=/var/spool/asterisk/monitor/${REC}.wav)
 same =&amp;gt; n,MixMonitor(${MIXMONITOR_FILENAME},b,/usr/local/bin/rec-post.sh ${UNIQUEID} ${MIXMONITOR_FILENAME})
 same =&amp;gt; n,Dial(PJSIP/${EXTEN},30)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The third argument to MixMonitor is a command Asterisk runs after the recording file is closed. On FreePBX, use the "Post Call Recording Script" field in Advanced Settings instead of editing generated dialplan.&lt;/p&gt;

&lt;p&gt;Naming files by &lt;code&gt;UNIQUEID&lt;/code&gt; instead of caller ID avoids odd characters in paths and gives you a key that already exists in the CDR.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: compress, encrypt, upload, index
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="c"&gt;# /usr/local/bin/rec-post.sh &amp;lt;uniqueid&amp;gt; &amp;lt;wav_path&amp;gt;&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt; -euo pipefail
&lt;span class="nv"&gt;UID_&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$1"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;WAV&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$2"&lt;/span&gt;
&lt;span class="nv"&gt;OUT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"${WAV%.wav}.opus"&lt;/span&gt;
ffmpeg -nostdin -loglevel error -i &lt;span class="s2"&gt;"$WAV"&lt;/span&gt; -ac 1 -c:a libopus -b:a 16k &lt;span class="s2"&gt;"$OUT"&lt;/span&gt;
&lt;span class="c"&gt;# client-side encryption with age; the private key never lives on the PBX&lt;/span&gt;
age -r &lt;span class="s2"&gt;"$(cat /etc/rec/recipient.pub)"&lt;/span&gt; -o &lt;span class="s2"&gt;"$OUT.age"&lt;/span&gt; &lt;span class="s2"&gt;"$OUT"&lt;/span&gt;
&lt;span class="nv"&gt;KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"recordings/$(date -u +%Y/%m/%d)/$UID_.opus.age"&lt;/span&gt;
aws s3 cp &lt;span class="s2"&gt;"$OUT.age"&lt;/span&gt; &lt;span class="s2"&gt;"s3://callrec-prod/$KEY"&lt;/span&gt; --only-show-errors
mysql callrec -e &lt;span class="s2"&gt;"INSERT INTO recordings (uniqueid, object_key, created_at) VALUES ('$UID_', '$KEY', UTC_TIMESTAMP())"&lt;/span&gt;
rm -f &lt;span class="s2"&gt;"$WAV"&lt;/span&gt; &lt;span class="s2"&gt;"$OUT"&lt;/span&gt; &lt;span class="s2"&gt;"$OUT.age"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The order matters. Delete the local WAV only after the upload and the database insert both succeed; with &lt;code&gt;set -e&lt;/code&gt; the script stops on the first failure and leaves the file for a retry job to pick up. Run the script as the &lt;code&gt;asterisk&lt;/code&gt; user with only the permissions it needs, and keep credentials in an instance role or a root-owned file, not in the dialplan.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg6w60p70vtv4sh4bfhr1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg6w60p70vtv4sh4bfhr1.jpg" alt="A server rack with blinking status lights in a data center" width="799" height="427"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;AI-generated image.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: retry what failed
&lt;/h3&gt;

&lt;p&gt;A small cron job every 10 minutes looks for &lt;code&gt;.wav&lt;/code&gt; files older than 15 minutes in the spool and re-runs the post script. Anything still there after an hour should page someone, because it means uploads are failing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing where recordings live
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Durability&lt;/th&gt;
&lt;th&gt;Retention control&lt;/th&gt;
&lt;th&gt;Access control&lt;/th&gt;
&lt;th&gt;Good for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Local PBX disk&lt;/td&gt;
&lt;td&gt;One disk, unless you add backups&lt;/td&gt;
&lt;td&gt;Manual cron jobs&lt;/td&gt;
&lt;td&gt;Shell and web admin users&lt;/td&gt;
&lt;td&gt;Small offices, short retention&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NAS / NFS share&lt;/td&gt;
&lt;td&gt;Depends on the NAS and its backups&lt;/td&gt;
&lt;td&gt;Manual or NAS snapshot policies&lt;/td&gt;
&lt;td&gt;Share permissions&lt;/td&gt;
&lt;td&gt;On-site teams with existing storage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;S3-compatible object storage&lt;/td&gt;
&lt;td&gt;Replicated by the provider&lt;/td&gt;
&lt;td&gt;Lifecycle rules, Object Lock for holds&lt;/td&gt;
&lt;td&gt;Per-bucket IAM, signed URLs&lt;/td&gt;
&lt;td&gt;Contact centers, compliance, multiple sites&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For most contact centers, object storage wins because retention and access become configuration instead of scripts you have to remember to maintain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Retention and deletion without surprises
&lt;/h2&gt;

&lt;p&gt;Set retention by rule, not by memory:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lifecycle expiration.&lt;/strong&gt; An S3 lifecycle rule on the &lt;code&gt;recordings/&lt;/code&gt; prefix can delete objects after a set number of days. Put the number in your recording policy, chosen with your legal adviser, because rules differ by country and industry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Legal holds.&lt;/strong&gt; S3 Object Lock (on providers that support it) can block deletion of specific recordings that are part of a dispute, even when lifecycle rules would remove them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delete requests.&lt;/strong&gt; Because every file is indexed by &lt;code&gt;uniqueid&lt;/code&gt;, you can find all calls for a customer through the CDR, delete those objects and mark the rows deleted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Card payments.&lt;/strong&gt; Do not record card numbers or security codes. When an agent opens a payment screen, mute the recording through the AMI &lt;code&gt;MixMonitorMute&lt;/code&gt; action and unmute when the payment step closes, or route payments to a separate IVR.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Encryption and playback access
&lt;/h2&gt;

&lt;p&gt;Encrypt in two places. Server-side encryption on the bucket protects against lost disks at the provider. Client-side encryption (age or GPG, as in the script) means that even someone who reads the bucket cannot play the files without the private key, which lives only on the playback service.&lt;/p&gt;

&lt;p&gt;For playback, your CRM or QA tool asks a small service for a recording by &lt;code&gt;uniqueid&lt;/code&gt;. That service checks the user's role, logs the access, downloads and decrypts the file, and streams it or returns a URL that expires in a few minutes. I covered the CRM side of this, including call logs, in &lt;a href="https://dev.to/muhammadalimughal/asterisk-crm-integration-screen-pops-click-to-dial-logs-4c4d"&gt;Asterisk CRM integration: screen pops, click-to-dial and logs&lt;/a&gt;. If you are still choosing the platform, start with &lt;a href="https://dev.to/muhammadalimughal/planning-a-voip-phone-system-for-a-small-business-an-asterisk-and-freepbx-checklist-5cn7"&gt;planning a VoIP phone system for a small business&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure modes I watch for
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spool growth.&lt;/strong&gt; Alert when &lt;code&gt;/var/spool/asterisk/monitor&lt;/code&gt; passes a size or age threshold. It is the first sign uploads have stopped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silent no-record.&lt;/strong&gt; A dialplan change removes MixMonitor from a queue. Compare daily CDR answered calls with indexed recordings; a sudden gap is a bug.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clock and path drift.&lt;/strong&gt; Use UTC in object keys so daylight saving changes do not create duplicate or missing folders.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Key loss.&lt;/strong&gt; Back up the private decryption key separately and test a restore. Encrypted recordings with no key are deleted recordings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transcoding load.&lt;/strong&gt; ffmpeg on a busy PBX competes with calls for CPU. At high volume, upload the WAV to a worker queue and transcode there.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Implementation checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Write a recording policy: what is recorded, consent announcement, retention days, who may listen.&lt;/li&gt;
&lt;li&gt;Record with MixMonitor using the &lt;code&gt;b&lt;/code&gt; option and &lt;code&gt;UNIQUEID&lt;/code&gt; file names.&lt;/li&gt;
&lt;li&gt;Add a post-recording script: compress, encrypt, upload, index, then delete locally.&lt;/li&gt;
&lt;li&gt;Add a retry job and an alert on old files in the spool.&lt;/li&gt;
&lt;li&gt;Create the bucket with server-side encryption, a lifecycle rule and, if needed, Object Lock.&lt;/li&gt;
&lt;li&gt;Mute recording during card payments.&lt;/li&gt;
&lt;li&gt;Serve playback only through a service that checks roles and logs access.&lt;/li&gt;
&lt;li&gt;Reconcile CDR answered calls against indexed recordings daily.&lt;/li&gt;
&lt;li&gt;Test a restore and a deletion request end to end every quarter.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is WAV or MP3 better for Asterisk recordings?
&lt;/h3&gt;

&lt;p&gt;Record to WAV for reliability, then convert after the call. Store Opus or MP3 for long-term retention; both cut storage by roughly four to eight times compared with WAV at the bitrates above.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can MixMonitor write straight to S3?
&lt;/h3&gt;

&lt;p&gt;Not natively. Record locally, then upload in the post-recording command. Mounting S3 as a file system for live writes adds latency and failure modes to the call path.&lt;/p&gt;

&lt;h3&gt;
  
  
  How long should I keep call recordings?
&lt;/h3&gt;

&lt;p&gt;It depends on your country, industry and contracts. Agree a number with your legal adviser, write it into the policy and enforce it with lifecycle rules.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I stop recording card details?
&lt;/h3&gt;

&lt;p&gt;Mute MixMonitor with the AMI MixMonitorMute action while the payment step runs, or send the caller to a separate payment IVR that is not recorded.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does FreePBX still show recordings after I move them?
&lt;/h3&gt;

&lt;p&gt;Not by default, because its CDR reports read local paths. Point playback at your own service keyed by uniqueid, or keep a short local cache window for FreePBX's built-in player.&lt;/p&gt;

&lt;h3&gt;
  
  
  What about recording WebRTC agents?
&lt;/h3&gt;

&lt;p&gt;Recording happens on the Asterisk bridge, so browser agents are recorded the same way. See my notes on &lt;a href="https://dev.to/muhammadalimughal/voip-sip-trunking-custom-webrtc-contact-center-architecture-reducing-call-latency-jitter--4375"&gt;WebRTC contact center architecture&lt;/a&gt; for the media path.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;Record locally, ship quickly, and let configuration handle the rest. Compress after the call, encrypt before upload, index by uniqueid, delete by lifecycle rule, and alert the moment the local spool starts to grow.&lt;/p&gt;




&lt;h3&gt;
  
  
  Follow &amp;amp; Connect
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LinkedIn:&lt;/strong&gt; &lt;a href="https://www.linkedin.com/company/loop-origin" rel="noopener noreferrer"&gt;Loop Origin&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X:&lt;/strong&gt; &lt;a href="https://x.com/AliMughal887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@AliMughal887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/LoopOrigin" rel="noopener noreferrer"&gt;Loop Origin (@LoopOrigin)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Watch on YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI&lt;/a&gt; · &lt;a href="https://www.youtube.com/@pixel-valut" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt; · &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt;&lt;/p&gt;

</description>
      <category>voip</category>
      <category>devops</category>
      <category>security</category>
      <category>linux</category>
    </item>
    <item>
      <title>Teacher Career Change Resume: Words ATS Will Match</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Tue, 24 Nov 2026 04:54:15 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/teacher-career-change-resume-words-ats-will-match-3ejc</link>
      <guid>https://dev.to/muhammadalimughal/teacher-career-change-resume-words-ats-will-match-3ejc</guid>
      <description>&lt;p&gt;If you are a teacher moving into corporate work, your resume is probably not failing because you lack skills. It is failing because it is written in school language. "Differentiated instruction," "classroom management" and "IEP compliance" are real, demanding skills, but a recruiter hiring an instructional designer, a customer success manager or a trainer searches for different words. The ATS matches what they type, not what you meant.&lt;/p&gt;

&lt;p&gt;I build &lt;a href="https://smartresumeanalyzer.com/job-description-keyword-finder?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=teacher-career-change-resume-ats" rel="noopener noreferrer"&gt;Smart Resume Analyzer&lt;/a&gt;, a free tool that compares a resume with a job description. I wrote this with help from AI tools and checked every example myself. This guide covers one problem: writing a teacher career change resume that an ATS and a corporate recruiter can both read.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch the video version:&lt;/strong&gt; &lt;a href="https://www.tiktok.com/@resumeboostai/video/7710972507712458036" rel="noopener noreferrer"&gt;Teacher career change resume: swap these 5 words (Resume Fixes, Part 2)&lt;/a&gt;. This article goes further than the video, with a full before and after, a translation table by target role and a checklist.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I write a teacher career change resume that passes ATS?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Direct answer:&lt;/strong&gt; Translate classroom terms into the words the target job description uses, keep a standard reverse-chronological layout with a plain "Experience" heading, and put measurable outcomes (students, courses, scores, programs) in each bullet. Keep "Teacher" as your real title, and add a short target-role summary at the top instead of renaming the job.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why teacher resumes get filtered out
&lt;/h2&gt;

&lt;p&gt;An applicant tracking system does two jobs that matter here. First it parses your file into fields: name, contact, job titles, employers, dates, education and a block of skills and text. Then recruiters search that parsed text with keywords and filters. Workday, Greenhouse, Lever, iCIMS and Taleo all handle this differently in detail, but the shared principle is simple: the words have to be on the page in a form a search can find.&lt;/p&gt;

&lt;p&gt;Teacher resumes break the second step, not the first. The layout usually parses fine. The vocabulary does not match:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A corporate trainer posting asks for "facilitation," "onboarding," "LMS" and "stakeholder communication."&lt;/li&gt;
&lt;li&gt;The teacher resume says "lesson delivery," "new staff mentoring," "Google Classroom" and "parent conferences."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Same skills, zero keyword overlap. A recruiter who searches "onboarding" and "LMS" never sees you.&lt;/p&gt;

&lt;p&gt;The fix is not to hide that you taught. Recruiters read the title, and a vague title like "Learning Professional" looks evasive. The fix is to keep the truthful title and translate the bullets.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five teacher words to swap first
&lt;/h2&gt;

&lt;p&gt;These five show up on almost every teacher resume I review, and each has a corporate equivalent that job descriptions actually use. Only use the translation when it is true for you.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Classroom term&lt;/th&gt;
&lt;th&gt;Corporate equivalent&lt;/th&gt;
&lt;th&gt;Where it fits best&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Lesson planning&lt;/td&gt;
&lt;td&gt;Curriculum design, content development&lt;/td&gt;
&lt;td&gt;Instructional design, L&amp;amp;D&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Classroom management&lt;/td&gt;
&lt;td&gt;Group facilitation, managing 25-30 stakeholders&lt;/td&gt;
&lt;td&gt;Training, customer success&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parent-teacher conferences&lt;/td&gt;
&lt;td&gt;Stakeholder communication, client meetings&lt;/td&gt;
&lt;td&gt;Customer success, account management&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Differentiated instruction&lt;/td&gt;
&lt;td&gt;Personalized training paths, needs analysis&lt;/td&gt;
&lt;td&gt;Instructional design, enablement&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grading and data tracking&lt;/td&gt;
&lt;td&gt;Performance analysis, reporting in Excel or Sheets&lt;/td&gt;
&lt;td&gt;Operations, L&amp;amp;D analytics&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Notice the right column uses nouns a recruiter would type into a search box. "Curriculum design" is a searchable skill. "Lesson planning" is too, but mostly in education job boards.&lt;/p&gt;

&lt;h2&gt;
  
  
  Weak vs ATS-optimized: a full rewrite
&lt;/h2&gt;

&lt;p&gt;Here is a realistic middle school teacher bullet set, rewritten for an instructional designer role. The facts stay the same; the language moves to the target job.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weak (school language):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Teacher, Lincoln Middle School                    2019 - Present
- Planned and delivered engaging lessons for 7th grade science
- Used differentiated instruction to meet diverse learner needs
- Managed classroom behavior and maintained a positive environment
- Communicated with parents regularly
- Used Google Classroom and other technology
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;ATS-optimized (instructional design language):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Science Teacher, Lincoln Middle School            2019 - Present
- Designed and delivered a 36-week science curriculum for 150 students
  a year, built from state standards into weekly learning objectives
- Built personalized learning paths and assessments for 3 skill levels,
  using pre-test data to run needs analysis each unit
- Facilitated daily sessions for groups of 25-30, adapting delivery
  based on live feedback and check-for-understanding data
- Created 40+ self-paced modules in Google Classroom (LMS), including
  video, quizzes and rubrics; adopted by 4 other teachers in my department
- Ran quarterly stakeholder meetings with parents and administrators to
  report progress and agree on intervention plans
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use your own real numbers. If you do not know how many modules you built, count them in your LMS before you write the bullet; never estimate upward. The point of numbers is that a recruiter can picture the scale of your work.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fni47jeyg2it7hzg31hnz.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fni47jeyg2it7hzg31hnz.jpg" alt="A desk with an open laptop, notebooks and a coffee mug by a window"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;AI-generated image.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Translate for the specific role, not "corporate" in general
&lt;/h2&gt;

&lt;p&gt;"Corporate" is not a job. The words that matter change by target role, so pick one or two roles and tailor each version. A quick guide:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target role&lt;/th&gt;
&lt;th&gt;Keywords to look for in the posting&lt;/th&gt;
&lt;th&gt;Teacher evidence that maps&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Instructional designer&lt;/td&gt;
&lt;td&gt;ADDIE, storyboarding, e-learning, Articulate, LMS, learning objectives&lt;/td&gt;
&lt;td&gt;Unit plans, digital modules, assessments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Corporate trainer / L&amp;amp;D&lt;/td&gt;
&lt;td&gt;Facilitation, onboarding, train-the-trainer, needs analysis&lt;/td&gt;
&lt;td&gt;Teaching, mentoring new teachers, PD sessions you ran&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Customer success manager&lt;/td&gt;
&lt;td&gt;Onboarding, retention, renewals, stakeholder management&lt;/td&gt;
&lt;td&gt;Parent communication, student progress plans&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EdTech sales or account manager&lt;/td&gt;
&lt;td&gt;Product demos, relationship building, pipeline&lt;/td&gt;
&lt;td&gt;Running demos of tools for staff, family events&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project coordinator&lt;/td&gt;
&lt;td&gt;Scheduling, timelines, cross-functional, reporting&lt;/td&gt;
&lt;td&gt;Organizing trips, events, testing schedules&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Only claim a tool you have used. If a posting lists Articulate Storyline and you have only built in Google Slides, list what you have and consider a short free trial project before applying; then you can honestly say you used it.&lt;/p&gt;

&lt;p&gt;For a related skills problem, I wrote about &lt;a href="https://dev.to/muhammadalimughal/translating-internal-tool-names-into-skills-recruiters-recognize-4nn2"&gt;translating internal tool names into skills recruiters recognize&lt;/a&gt;, which uses the same idea: write the term the searcher uses.&lt;/p&gt;
&lt;h2&gt;
  
  
  Your title, summary and headings
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Keep "Teacher" as the job title.&lt;/strong&gt; Add the subject if it helps ("Science Teacher"). Background checks and reference calls will confirm the title, and inventing "Learning Experience Designer" for a classroom role causes trouble later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use the summary to state the target.&lt;/strong&gt; Two or three lines at the top do the repositioning:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Instructional designer with 6 years designing and delivering curriculum
for 150+ learners a year. Builds self-paced modules, assessments and
learning paths in LMS platforms. Moving from K-12 teaching to corporate L&amp;amp;D.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My earlier piece on &lt;a href="https://dev.to/muhammadalimughal/resume-summary-vs-objective-what-ats-and-recruiters-read-4n28"&gt;resume summary vs objective&lt;/a&gt; explains why a summary works better than an objective for career changers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keep standard headings.&lt;/strong&gt; Use "Experience," "Education," "Skills" and "Certifications." Creative headings like "My Teaching Journey" can confuse parsers; see &lt;a href="https://dev.to/muhammadalimughal/resume-section-headings-what-ats-parsers-recognize-4jgn"&gt;resume section headings ATS parsers recognize&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Spell out acronyms once.&lt;/strong&gt; Write "Individualized Education Program (IEP)" and "Professional Development (PD)" the first time. Corporate recruiters may not know them, and a search on either form should find you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Certifications and training that help
&lt;/h2&gt;

&lt;p&gt;Your teaching license is still worth listing: it proves training and vetting. Put it under "Certifications" with the issuing state. If you have finished a relevant course (for example, a recognized instructional design or project management certificate), list the exact name and issuer so it matches searches. Do not list courses you have only started unless you mark them "in progress" with an expected date.&lt;/p&gt;

&lt;h2&gt;
  
  
  Diagnostic checklist before you apply
&lt;/h2&gt;

&lt;p&gt;Run this on each tailored version:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pick one target job posting and copy its full text.&lt;/li&gt;
&lt;li&gt;Highlight every skill noun and tool in it.&lt;/li&gt;
&lt;li&gt;Check each highlighted word: is it on your resume, in the same form, where true?&lt;/li&gt;
&lt;li&gt;Replace school-only terms with the posting's term (keep both if useful, like "LMS (Google Classroom)").&lt;/li&gt;
&lt;li&gt;Keep "Teacher" as the title; put the target role in the summary.&lt;/li&gt;
&lt;li&gt;Make every bullet start with a verb and include a scale or result.&lt;/li&gt;
&lt;li&gt;Use standard headings and a single-column layout; no text boxes or tables for key content.&lt;/li&gt;
&lt;li&gt;Spell out each education acronym once.&lt;/li&gt;
&lt;li&gt;Export as .docx or a text-based PDF, then copy-paste the file into a plain text editor to confirm the text order is right.&lt;/li&gt;
&lt;li&gt;Compare the final version with the posting in a keyword tool and fix any missing must-have terms you can honestly claim.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Should I remove "Teacher" from my resume title?
&lt;/h3&gt;

&lt;p&gt;No. Keep your real title so background checks match. Put the role you want in the summary and use translated bullets to show the skills.&lt;/p&gt;

&lt;h3&gt;
  
  
  How many corporate keywords should I add?
&lt;/h3&gt;

&lt;p&gt;Add the ones the posting asks for that you can honestly back up with an example. A handful of must-have terms in context beats a long, stuffed skills list.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a separate resume for each target role?
&lt;/h3&gt;

&lt;p&gt;Yes, at least one per role type. An instructional design version and a customer success version use different keywords and different leading bullets.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I list student test scores?
&lt;/h3&gt;

&lt;p&gt;Only if they are accurate and you can explain them. Scale (students, courses, modules) is often more useful to corporate recruiters than test averages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is a functional resume better for career changers?
&lt;/h3&gt;

&lt;p&gt;Usually not. Many parsers and recruiters expect reverse-chronological dates. Keep the standard format and let the summary and bullets do the translating.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where should volunteer or side projects go?
&lt;/h3&gt;

&lt;p&gt;If they show target skills, such as a training video you built, list them under "Projects" with a short result line. Keep them factual and dated.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;Keep your title, change your vocabulary. Every classroom skill has a corporate name, and recruiters search for that name. Translate each bullet into the language of one specific job posting, add real scale, and test the result against that posting before you apply.&lt;/p&gt;




&lt;h3&gt;
  
  
  Follow &amp;amp; Connect
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI (@resume-boost-ai)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TikTok:&lt;/strong&gt; &lt;a href="https://www.tiktok.com/@resumeboostai" rel="noopener noreferrer"&gt;Resume Boost AI (@resumeboostai)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X:&lt;/strong&gt; &lt;a href="https://x.com/AliMughal887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@AliMughal887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/ali111887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@ali111887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LinkedIn:&lt;/strong&gt; &lt;a href="https://www.linkedin.com/in/muhammad-ali-m-03434a120/" rel="noopener noreferrer"&gt;Muhammad Ali Mughal&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Watch on YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI&lt;/a&gt; · &lt;a href="https://www.youtube.com/@pixel-valut" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt; · &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>resume</category>
      <category>jobsearch</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Double Charges and Double Submits: Finding Race Conditions in Laravel</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Mon, 23 Nov 2026 07:07:16 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/double-charges-and-double-submits-finding-race-conditions-in-laravel-3j6i</link>
      <guid>https://dev.to/muhammadalimughal/double-charges-and-double-submits-finding-race-conditions-in-laravel-3j6i</guid>
      <description>&lt;p&gt;&lt;strong&gt;Quick answer:&lt;/strong&gt; A race condition in a Laravel app almost always looks like read, then decide, then write, with nothing stopping a second request from reading the same old value in between. Find them by searching for check-then-act code around money, stock and status fields, prove them with parallel requests, and fix them with a database transaction plus &lt;code&gt;lockForUpdate()&lt;/code&gt;, an atomic update, or a unique constraint.&lt;/p&gt;

&lt;p&gt;I'm Muhammad Ali Mughal, a Principal Software Engineer in Karachi, and I build Laravel and custom web apps at &lt;a href="https://looporigin.com/?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=laravel-race-conditions-double-charges" rel="noopener noreferrer"&gt;Loop Origin&lt;/a&gt;. One of the most-read #laravel posts on DEV this week was titled &lt;em&gt;"The race condition that prints free money, and how I stopped it in my Laravel payment gateway"&lt;/em&gt;, and another popular #webdev post warned against unbounded &lt;code&gt;Promise.all&lt;/code&gt; fan-out crashing APIs. Both are the same lesson: code that is correct for one request at a time can be wrong for two at once.&lt;/p&gt;

&lt;p&gt;This post starts a new series on race conditions in production Laravel apps. I wrote it with help from AI tools and checked the code against the Laravel 11/12 documentation and MySQL 8 / PostgreSQL locking behaviour.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;📚 Series Navigation — Race Conditions in Production Laravel&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Part 1 (This Post):&lt;/strong&gt; Double Charges and Double Submits: Finding Race Conditions in Laravel&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 2:&lt;/strong&gt; lockForUpdate, Cache::lock or a Unique Index? Picking the Right Guard &lt;em&gt;(coming next)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 3:&lt;/strong&gt; Lost Updates: Optimistic Locking With Version Columns&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 4:&lt;/strong&gt; Bounded Concurrency: Stop Unbounded Fan-Out in PHP and Node&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 5:&lt;/strong&gt; Stock, Seats and Quotas Without Overselling&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 6:&lt;/strong&gt; Reproducing Races in Tests Before Your Users Do&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Related earlier posts:&lt;/em&gt; &lt;a href="https://dev.to/muhammadalimughal/idempotent-jobs-exactly-once-effects-designing-safe-retries-6hh"&gt;Idempotent Jobs &amp;amp; Exactly-Once Effects: Designing Safe Retries&lt;/a&gt; · &lt;a href="https://dev.to/muhammadalimughal/multi-tier-caching-stampede-protection-with-redisvalkey-singleflight-locks-swr-34hk"&gt;Multi-Tier Caching &amp;amp; Stampede Protection&lt;/a&gt; · &lt;a href="https://dev.to/muhammadalimughal/zero-downtime-database-migrations-in-laravel-nodejs-saas-expand-contract-lock-timeouts-6lp"&gt;Zero-Downtime Database Migrations in Laravel &amp;amp; Node.js SaaS&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faj127ojlcqjij2hrb3i0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faj127ojlcqjij2hrb3i0.jpg" alt="Locked metal cash box on an office desk, AI-generated" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of almost every race
&lt;/h2&gt;

&lt;p&gt;Here is a wallet withdrawal I found in a client codebase. It passed every test.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;withdraw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Request&lt;/span&gt; &lt;span class="nv"&gt;$request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Wallet&lt;/span&gt; &lt;span class="nv"&gt;$wallet&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$amount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nv"&gt;$request&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;input&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'amount'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$wallet&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;          &lt;span class="c1"&gt;// 1. read + decide&lt;/span&gt;
        &lt;span class="nf"&gt;abort&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;422&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Insufficient balance'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nv"&gt;$wallet&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$wallet&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// 2. compute from stale value&lt;/span&gt;
    &lt;span class="nv"&gt;$wallet&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                               &lt;span class="c1"&gt;// 3. write&lt;/span&gt;

    &lt;span class="nc"&gt;Payout&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'wallet_id'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$wallet&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'amount'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;noContent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Send two requests for 100 against a balance of 100 at the same moment. Both read 100, both pass the check, both write 0, and two payouts are created. The user withdrew 200 from a 100 balance. Nothing threw an error, and the final balance even looks right.&lt;/p&gt;

&lt;p&gt;That's the pattern: &lt;strong&gt;read, decide, write&lt;/strong&gt;, with a gap between the read and the write. Under PHP-FPM or Octane, every request is its own worker, so the gap is real whenever two requests arrive close together. Double-clicks, mobile retries on flaky networks, webhook redeliveries and impatient users pressing back and resubmitting all produce exactly that timing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where I look first
&lt;/h2&gt;

&lt;p&gt;When I audit a Laravel app for races, I search for these patterns:&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="c"&gt;# check-then-act on numeric fields&lt;/span&gt;
grep -rnE &lt;span class="s2"&gt;"if \(\$[a-z]+-&amp;gt;(balance|stock|quantity|credits|seats|remaining)"&lt;/span&gt; app/

&lt;span class="c"&gt;# read-modify-write instead of atomic increments&lt;/span&gt;
grep -rnE &lt;span class="s2"&gt;"-&amp;gt;(balance|stock|credits)\s*=\s*\$[a-z]+-&amp;gt;(balance|stock|credits)\s*[-+]"&lt;/span&gt; app/

&lt;span class="c"&gt;# "does it exist? then create it"&lt;/span&gt;
grep -rnE &lt;span class="s2"&gt;"if \(!?\s*[A-Z][a-zA-Z]+::where\(.*\)-&amp;gt;exists\(\)\)"&lt;/span&gt; app/

&lt;span class="c"&gt;# status transitions without a guard&lt;/span&gt;
grep -rnE &lt;span class="s2"&gt;"-&amp;gt;status\s*=\s*'(paid|confirmed|approved|shipped)'"&lt;/span&gt; app/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every hit is a candidate, not a bug. The question for each one is: what happens if two requests run this block at the same time?&lt;/p&gt;

&lt;p&gt;The usual hotspots are payments and refunds, wallet or credit balances, coupon redemption, inventory and seat booking, "create if not exists" for user-level records, and order status changes triggered by both a webhook and a redirect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Proving it before fixing it
&lt;/h2&gt;

&lt;p&gt;I always reproduce a race before fixing it, because the fix is easy to get subtly wrong. You don't need a load-testing tool; parallel curl is enough on a local or staging copy you own:&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="c"&gt;# 20 concurrent withdrawals of 100 against a wallet holding 100&lt;/span&gt;
seq 20 &lt;span class="o"&gt;|&lt;/span&gt; xargs -P 20 -I&lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; curl -s -o /dev/null -w &lt;span class="s2"&gt;"%{http_code}\n"&lt;/span&gt; \
  -X POST http://localhost:8000/api/wallets/1/withdraw \
  -H &lt;span class="s2"&gt;"Authorization: Bearer $TEST_TOKEN"&lt;/span&gt; -d &lt;span class="nv"&gt;amount&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;100 &lt;span class="o"&gt;|&lt;/span&gt; sort &lt;span class="o"&gt;|&lt;/span&gt; uniq -c

php artisan tinker --execute=&lt;span class="s2"&gt;"echo App\Models\Payout::where('wallet_id',1)-&amp;gt;count();"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the payout count is more than 1, you've proved the bug. Run it a few times; races are timing-dependent and may need several attempts on a fast machine. Part 6 turns this into an automated test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three fixes, and when each one fits
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Fix 1: transaction plus row lock.&lt;/strong&gt; Lock the row you read, so the second request waits until the first commits, then reads the new value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;withdraw&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Request&lt;/span&gt; &lt;span class="nv"&gt;$request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nv"&gt;$walletId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$amount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nv"&gt;$request&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;input&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'amount'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="no"&gt;DB&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;transaction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$walletId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$wallet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Wallet&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;whereKey&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$walletId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;lockForUpdate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;firstOrFail&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$wallet&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nf"&gt;abort&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;422&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Insufficient balance'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="nv"&gt;$wallet&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;decrement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'balance'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nc"&gt;Payout&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'wallet_id'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$wallet&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'amount'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;noContent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note the model is loaded inside the transaction with the lock. Locking a model that was already route-model-bound outside the transaction does nothing for the earlier read.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix 2: a single atomic conditional update.&lt;/strong&gt; When the logic is simple, push the check into the &lt;code&gt;UPDATE&lt;/code&gt; itself and check affected rows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nv"&gt;$updated&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Wallet&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;whereKey&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$walletId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;where&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'balance'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'&amp;gt;='&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;decrement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'balance'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$amount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$updated&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;abort&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;422&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Insufficient balance'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The database evaluates the condition and the write as one statement, so there is no gap. Wrap it with the &lt;code&gt;Payout::create&lt;/code&gt; in a transaction so you never get one without the other.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix 3: a unique constraint.&lt;/strong&gt; For "only once" rules (one redemption per coupon per user, one payment per order), let the database refuse duplicates:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Schema&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'coupon_redemptions'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Blueprint&lt;/span&gt; &lt;span class="nv"&gt;$table&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$table&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;unique&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'coupon_id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'user_id'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;CouponRedemption&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'coupon_id'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$coupon&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'user_id'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$user&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;UniqueConstraintViolationException&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;abort&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;409&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Coupon already used'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;UniqueConstraintViolationException&lt;/code&gt; exists in Laravel 10.20+; older versions need to catch &lt;code&gt;QueryException&lt;/code&gt; and check the error code.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Guard&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;th&gt;Cost under load&lt;/th&gt;
&lt;th&gt;Common mistake&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;lockForUpdate()&lt;/code&gt; in a transaction&lt;/td&gt;
&lt;td&gt;Multi-step logic on one row (balances, order state)&lt;/td&gt;
&lt;td&gt;Requests on the same row wait in line&lt;/td&gt;
&lt;td&gt;Reading the row before the transaction starts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Atomic conditional &lt;code&gt;UPDATE&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Simple counters and thresholds&lt;/td&gt;
&lt;td&gt;Lowest; one statement&lt;/td&gt;
&lt;td&gt;Ignoring the affected-row count&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unique index&lt;/td&gt;
&lt;td&gt;"Only once" rules&lt;/td&gt;
&lt;td&gt;Very low&lt;/td&gt;
&lt;td&gt;Catching the exception too broadly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;Cache::lock()&lt;/code&gt; (Redis)&lt;/td&gt;
&lt;td&gt;Work outside the DB, like calling a payment API&lt;/td&gt;
&lt;td&gt;Low, but lock can expire&lt;/td&gt;
&lt;td&gt;Lock TTL shorter than the work&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Idempotency key&lt;/td&gt;
&lt;td&gt;Client retries and webhook redelivery&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Storing the key after the side effect, not before&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Part 2 compares these in depth, including deadlocks and what happens when a Redis lock expires mid-request.&lt;/p&gt;

&lt;h2&gt;
  
  
  The payment-gateway version
&lt;/h2&gt;

&lt;p&gt;The "free money" class of bug usually combines two flows that mark the same order paid: the user's browser returning from the gateway, and the gateway's webhook. If both run &lt;code&gt;if ($order-&amp;gt;status !== 'paid') { credit(); $order-&amp;gt;update(['status' =&amp;gt; 'paid']); }&lt;/code&gt; at once, the customer is credited twice. The fix is a guarded transition:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nv"&gt;$claimed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Order&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;whereKey&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$orderId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;where&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'status'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'pending'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'status'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'paid'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'paid_at'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$claimed&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;CreditCustomer&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;dispatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$orderId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;afterCommit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Only the request that actually moved the order from pending to paid does the side effect. The other one sees 0 affected rows and stops. If you need help reviewing payment and wallet flows like this, it's the kind of work we do in &lt;a href="https://looporigin.com/services/laravel-development?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=laravel-race-conditions-double-charges" rel="noopener noreferrer"&gt;Laravel development&lt;/a&gt; engagements.&lt;/p&gt;

&lt;h2&gt;
  
  
  Diagnostic checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Searched for check-then-act code on balances, stock, credits, seats and status fields.&lt;/li&gt;
&lt;li&gt;[ ] Every money-moving path runs in a &lt;code&gt;DB::transaction&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;[ ] Rows that are read and then updated are loaded with &lt;code&gt;lockForUpdate()&lt;/code&gt; inside the transaction.&lt;/li&gt;
&lt;li&gt;[ ] Counters use atomic &lt;code&gt;increment&lt;/code&gt;/&lt;code&gt;decrement&lt;/code&gt; with a condition, and the affected-row count is checked.&lt;/li&gt;
&lt;li&gt;[ ] "Only once" rules are backed by a unique index, not just an &lt;code&gt;exists()&lt;/code&gt; check.&lt;/li&gt;
&lt;li&gt;[ ] Status transitions use &lt;code&gt;where('status', old)-&amp;gt;update()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;[ ] Side effects (emails, credits, payouts) run only after the guarded write succeeds, using &lt;code&gt;afterCommit&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;[ ] Each suspected race was reproduced with parallel requests before and after the fix.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does PHP being single-threaded protect me?
&lt;/h3&gt;

&lt;p&gt;No. Each PHP-FPM worker or Octane worker handles its own request. Two workers run your code at the same time against the same database.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will &lt;code&gt;lockForUpdate()&lt;/code&gt; slow my app down?
&lt;/h3&gt;

&lt;p&gt;Only for requests touching the same row, which is exactly what you want serialised. Keep transactions short and never call external APIs while holding a row lock.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I just disable the submit button?
&lt;/h3&gt;

&lt;p&gt;Do it for user experience, but it's not a fix. Retries, scripts, multiple tabs and webhooks all bypass the front end.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does SQLite in tests show these bugs?
&lt;/h3&gt;

&lt;p&gt;Rarely. SQLite serialises writes differently from MySQL and PostgreSQL. Reproduce races against the same database engine you run in production.&lt;/p&gt;

&lt;h3&gt;
  
  
  What isolation level should I use?
&lt;/h3&gt;

&lt;p&gt;The MySQL InnoDB default (REPEATABLE READ) and PostgreSQL default (READ COMMITTED) both still allow these races for plain reads. Explicit locks or atomic updates are clearer than raising the isolation level everywhere.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I fix this in a legacy app without a rewrite?
&lt;/h3&gt;

&lt;p&gt;Start with the money paths: add transactions and guarded updates around them one at a time. It's a contained change. &lt;a href="https://looporigin.com/contact?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=laravel-race-conditions-double-charges" rel="noopener noreferrer"&gt;Get in touch&lt;/a&gt; if you'd like a second pair of eyes on the riskiest flows.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Part 2 compares &lt;code&gt;lockForUpdate&lt;/code&gt;, &lt;code&gt;Cache::lock&lt;/code&gt; and unique indexes side by side, including deadlocks, lock timeouts and the expired-lock trap.&lt;/p&gt;




&lt;h3&gt;
  
  
  Follow &amp;amp; Connect
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://looporigin.com/?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=laravel-race-conditions-double-charges" rel="noopener noreferrer"&gt;Loop Origin&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch on YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI&lt;/a&gt; · &lt;a href="https://www.youtube.com/@pixel-valut" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt; · &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LinkedIn:&lt;/strong&gt; &lt;a href="https://www.linkedin.com/company/loop-origin" rel="noopener noreferrer"&gt;Loop Origin&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X:&lt;/strong&gt; &lt;a href="https://x.com/AliMughal887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@AliMughal887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/LoopOrigin" rel="noopener noreferrer"&gt;Loop Origin (@LoopOrigin)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>webdev</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Scanning Repos and CI Logs for Secrets With Regex and Entropy</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Mon, 23 Nov 2026 07:06:57 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/scanning-repos-and-ci-logs-for-secrets-with-regex-and-entropy-agk</link>
      <guid>https://dev.to/muhammadalimughal/scanning-repos-and-ci-logs-for-secrets-with-regex-and-entropy-agk</guid>
      <description>&lt;p&gt;&lt;strong&gt;Quick answer:&lt;/strong&gt; Good secret scanning combines two signals. Regex rules catch tokens with a known format (AWS keys, GitHub tokens, Stripe keys, private key headers) with very few false positives. Shannon entropy catches random-looking strings that no rule knows about. Scan the full Git history, not just the latest commit, and scan CI logs and artifacts too, because that is where secrets leak most quietly.&lt;/p&gt;

&lt;p&gt;I'm Muhammad Ali Mughal, a Principal Software Engineer in Karachi. I build the free developer tools at &lt;a href="https://pixelvalut.com/tools/?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=secret-scanning-regex-entropy" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt;. In Part 1 we handled the first hour after a leak. This part is about finding leaks you don't know about yet, in repositories and pipelines you own. I wrote it with help from AI tools and checked the patterns against provider documentation and gitleaks' default rules.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;📚 Series Navigation — Leaked Secrets: Detect, Rotate, Recover&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Part 1:&lt;/strong&gt; &lt;a href="https://dev.to/muhammadalimughal/you-leaked-an-api-key-in-git-the-first-60-minutes-ba0"&gt;You Leaked an API Key in Git: The First 60 Minutes&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 2 (This Post):&lt;/strong&gt; Scanning Repos and CI Logs for Secrets With Regex and Entropy&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 3:&lt;/strong&gt; Rotating Secrets Without Downtime: Dual Keys and Overlap Windows &lt;em&gt;(coming next)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 4:&lt;/strong&gt; Secrets in Container Images and Build Logs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 5:&lt;/strong&gt; Pre-Commit and CI Guards That Stop the Next Leak&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 6:&lt;/strong&gt; Post-Incident Review: Proving a Leaked Key Was Never Used&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Related earlier posts:&lt;/em&gt; &lt;a href="https://dev.to/muhammadalimughal/webhook-security-in-production-hmac-sha256-signatures-timestamp-drift-replay-protection-4f8a"&gt;Webhook Security in Production: HMAC-SHA256 Signatures&lt;/a&gt; · &lt;a href="https://dev.to/muhammadalimughal/break-glass-accounts-sso-audit-logs-2ph8"&gt;Break-Glass Accounts &amp;amp; SSO Audit Logs&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fczznf7hej1l0y7zgn19v.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fczznf7hej1l0y7zgn19v.jpg" alt="Server rack with green status lights in a dim data center aisle, AI-generated" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where secrets actually hide
&lt;/h2&gt;

&lt;p&gt;When I audit a client's repositories, the main branch is rarely the problem. These places are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Old commits.&lt;/strong&gt; A key added and removed two years ago is still in history and still valid more often than you'd expect.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI logs.&lt;/strong&gt; A &lt;code&gt;set -x&lt;/code&gt;, a debug &lt;code&gt;env&lt;/code&gt; dump, or a failing curl that prints its own headers writes the secret to logs that many people can read and that are kept for months.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Config samples.&lt;/strong&gt; &lt;code&gt;.env.example&lt;/code&gt; files where someone pasted the real value "just for now".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test fixtures and notebooks.&lt;/strong&gt; Recorded HTTP responses, Jupyter outputs and Postman exports.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build artifacts.&lt;/strong&gt; Bundled front-end JavaScript with a server key baked in at build time (Part 4 goes deeper).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A scanner that only checks staged files misses all of these.&lt;/p&gt;

&lt;h2&gt;
  
  
  Signal one: format-aware regex rules
&lt;/h2&gt;

&lt;p&gt;Many providers publish token formats with fixed prefixes, which makes them easy to match precisely. A few rules I always include:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Secret type&lt;/th&gt;
&lt;th&gt;Example pattern (simplified)&lt;/th&gt;
&lt;th&gt;False-positive risk&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AWS access key ID&lt;/td&gt;
&lt;td&gt;&lt;code&gt;A[KS]IA[0-9A-Z]{16}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Pair with a nearby 40-char secret for confidence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub token&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gh[pousr]_[A-Za-z0-9]{36,}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Very low&lt;/td&gt;
&lt;td&gt;Prefixes identify token type&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stripe secret key&lt;/td&gt;
&lt;td&gt;&lt;code&gt;sk_live_[0-9a-zA-Z]{24,}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Very low&lt;/td&gt;
&lt;td&gt;Add a matching &lt;code&gt;sk_test_&lt;/code&gt; rule at lower severity&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Slack token&lt;/td&gt;
&lt;td&gt;&lt;code&gt;xox[baprs]-[0-9A-Za-z-]{10,}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Includes bot and user tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Private key block&lt;/td&gt;
&lt;td&gt;&lt;code&gt;-----BEGIN [A-Z ]*PRIVATE KEY-----&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Very low&lt;/td&gt;
&lt;td&gt;Always a finding&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JWT&lt;/td&gt;
&lt;td&gt;&lt;code&gt;eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Many are expired test tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generic assignment&lt;/td&gt;
&lt;td&gt;&lt;code&gt;api_?key\s*[:=]\s*['"][^'"]{16,}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Needs entropy filter&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I test every rule against known-good and known-bad samples before adding it. The &lt;a href="https://pixelvalut.com/tools/regex-tester?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=secret-scanning-regex-entropy" rel="noopener noreferrer"&gt;PixelValut Regex Tester&lt;/a&gt; is handy for this: paste a sample config and see exactly what each pattern catches. Use fake values that only look like real ones, never a live key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Signal two: Shannon entropy
&lt;/h2&gt;

&lt;p&gt;Custom internal tokens, random passwords and many SaaS keys have no prefix. What they share is randomness. Shannon entropy measures how unpredictable each character is. English words and variable names score low; random base64 or hex strings score high.&lt;/p&gt;

&lt;p&gt;Rough guide from my own scans:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Normal identifiers and words: about 2.5–3.5 bits per character&lt;/li&gt;
&lt;li&gt;Hex secrets (32+ chars): about 3.7–4.0&lt;/li&gt;
&lt;li&gt;Base64 secrets (20+ chars): about 4.5–6.0&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The thresholds depend on the alphabet, so I compute entropy separately for hex-only and base64-like strings.&lt;/p&gt;

&lt;h2&gt;
  
  
  A small scanner you can run today
&lt;/h2&gt;

&lt;p&gt;This scans every line ever added in Git history, applies rules, then falls back to entropy for long random-looking strings. It's intentionally short so you can read and adapt it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;collections&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Counter&lt;/span&gt;

&lt;span class="no"&gt;RULES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"aws_key_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\b(AKIA|ASIA)[0-9A-Z]{16}\b"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"github_token"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\bgh[pousr]_[A-Za-z0-9]{36,}\b"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"stripe_secret"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\bsk_(live|test)_[0-9a-zA-Z]{24,}\b"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"private_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"-----BEGIN [A-Z ]*PRIVATE KEY-----"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="no"&gt;CANDIDATE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"['\"=:\s]([A-Za-z0-9+/_\-]{24,})['\"\s]?"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="no"&gt;ALLOW&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"(EXAMPLE|dummy|test_fixture|0{16,})"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;I&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;entropy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;counts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Counter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log2&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;counts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;values&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;scan_history&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;log&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"git"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"log"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-p"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"--all"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"--no-color"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"--unified=0"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;capture_output&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errors&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"replace"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdout&lt;/span&gt;
    &lt;span class="n"&gt;commit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;splitlines&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"commit "&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;commit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"+"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"+++"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="no"&gt;ALLOW&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rx&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;RULES&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;rx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="n"&gt;commit&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;CANDIDATE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;finditer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;tok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;group&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;limit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;3.7&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"[0-9a-f]+"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mf"&gt;4.5&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;entropy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="n"&gt;commit&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"entropy {entropy(tok):.2f}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;findings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;scan_history&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;findings&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sep&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;" | "&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;findings&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two notes. First, print only a truncated line, and never send findings to a third-party service; your scan output is now sensitive. Second, for real CI use I'd run an established tool such as gitleaks or trufflehog and keep a script like this for custom internal token formats they don't know.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scanning CI logs
&lt;/h2&gt;

&lt;p&gt;Most CI platforms let you download logs through their API. I pull the last 30 days of logs for each repo and run the same rules over them. For GitHub Actions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gh run list --limit 100 --json databaseId -q &lt;span class="s1"&gt;'.[].databaseId'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; id&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  gh run view &lt;span class="s2"&gt;"$id"&lt;/span&gt; --log &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"logs/run-$id.txt"&lt;/span&gt; 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null
&lt;span class="k"&gt;done&lt;/span&gt;
python3 scan_files.py logs/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitHub masks registered secrets as &lt;code&gt;***&lt;/code&gt; in logs, but only exact values it knows about. A secret that was base64-encoded, URL-encoded or split across lines gets printed in full. That's why I also decode suspicious base64 blobs during review; the &lt;a href="https://pixelvalut.com/tools/base64?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=secret-scanning-regex-entropy" rel="noopener noreferrer"&gt;Base64 tool&lt;/a&gt; works locally in the browser for a quick look, but only use it on values you've already decided to rotate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping false positives manageable
&lt;/h2&gt;

&lt;p&gt;A scanner nobody trusts gets ignored. What has worked for me:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Allowlist by path and pattern&lt;/strong&gt;, not by disabling rules: &lt;code&gt;tests/fixtures/&lt;/code&gt;, lockfiles, and known example values.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fingerprint accepted findings.&lt;/strong&gt; Store a hash of the finding (file + rule + matched value hash), not the value, so known false positives don't come back every run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separate severities.&lt;/strong&gt; Provider-format hits block the build; entropy-only hits create a review task.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review weekly at first.&lt;/strong&gt; After two or three weeks of tuning, noise usually drops a lot.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Diagnostic checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Full history of every repo (&lt;code&gt;--all&lt;/code&gt;, including old branches and tags) scanned at least once.&lt;/li&gt;
&lt;li&gt;[ ] Provider-format rules for every service you actually use.&lt;/li&gt;
&lt;li&gt;[ ] Entropy check with separate thresholds for hex and base64.&lt;/li&gt;
&lt;li&gt;[ ] CI logs for the last 30+ days scanned, plus artifacts.&lt;/li&gt;
&lt;li&gt;[ ] Findings stored as hashes, not raw values.&lt;/li&gt;
&lt;li&gt;[ ] Every confirmed finding triggers the Part 1 rotation runbook.&lt;/li&gt;
&lt;li&gt;[ ] Allowlist reviewed and justified, no blanket ignores.&lt;/li&gt;
&lt;li&gt;[ ] Scan scheduled to run again, not only once.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Should I use gitleaks, trufflehog or my own script?
&lt;/h3&gt;

&lt;p&gt;Use an established tool as your main scanner. They have hundreds of tested rules, and trufflehog can verify whether some keys are live. Keep a small custom script for internal token formats.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does scanning the history mean I have to rewrite it?
&lt;/h3&gt;

&lt;p&gt;No. Rotate first. Rewriting history is optional cleanup and only worth it for some cases, as Part 1 explained.&lt;/p&gt;

&lt;h3&gt;
  
  
  What entropy threshold should I use?
&lt;/h3&gt;

&lt;p&gt;Start with about 4.5 for base64-like strings and 3.7 for hex, at 24+ characters, then tune on your own repos.&lt;/p&gt;

&lt;h3&gt;
  
  
  Are JWTs in tests a problem?
&lt;/h3&gt;

&lt;p&gt;Usually not if they're signed with a test key and expired. Check the &lt;code&gt;exp&lt;/code&gt; claim with a &lt;a href="https://pixelvalut.com/tools/jwt-decoder?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=secret-scanning-regex-entropy" rel="noopener noreferrer"&gt;JWT decoder&lt;/a&gt; and allowlist them by path.&lt;/p&gt;

&lt;h3&gt;
  
  
  How often should I scan?
&lt;/h3&gt;

&lt;p&gt;Every push in CI for new commits, plus a full history and log scan weekly or monthly.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is it safe to paste findings into an AI assistant to triage?
&lt;/h3&gt;

&lt;p&gt;Don't paste real secret values anywhere. Share the rule name, file path and a masked value.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Part 3 covers rotating secrets without downtime, using dual keys and overlap windows so a rotation never becomes an outage.&lt;/p&gt;




&lt;h3&gt;
  
  
  Follow &amp;amp; Connect
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://pixelvalut.com/tools/?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=secret-scanning-regex-entropy" rel="noopener noreferrer"&gt;PixelValut Tools&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch on YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI&lt;/a&gt; · &lt;a href="https://www.youtube.com/@pixel-valut" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt; · &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TikTok:&lt;/strong&gt; &lt;a href="https://www.tiktok.com/@pixelvalut007" rel="noopener noreferrer"&gt;PixelValut (@pixelvalut007)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X:&lt;/strong&gt; &lt;a href="https://x.com/AliMughal887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@AliMughal887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/ali111887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@ali111887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LinkedIn:&lt;/strong&gt; &lt;a href="https://www.linkedin.com/in/muhammad-ali-m-03434a120/" rel="noopener noreferrer"&gt;Muhammad Ali Mughal&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>security</category>
      <category>devops</category>
      <category>git</category>
      <category>python</category>
    </item>
    <item>
      <title>Translating Internal Tool Names Into Skills Recruiters Recognize</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Mon, 23 Nov 2026 07:06:33 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/translating-internal-tool-names-into-skills-recruiters-recognize-4nn2</link>
      <guid>https://dev.to/muhammadalimughal/translating-internal-tool-names-into-skills-recruiters-recognize-4nn2</guid>
      <description>&lt;p&gt;&lt;strong&gt;Quick answer:&lt;/strong&gt; Recruiters and ATS filters search for public skill names, not your company's internal codenames. For every in-house tool on your resume, name the public category it belongs to (feature-flag service, CI pipeline, data warehouse), the real technologies underneath it, and the measurable result. Keep the internal name only as a short label, never as the keyword.&lt;/p&gt;

&lt;p&gt;I'm Muhammad Ali Mughal, a Principal Software Engineer in Karachi, and I build &lt;a href="https://smartresumeanalyzer.com/?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=internal-tool-names-to-skills" rel="noopener noreferrer"&gt;Smart Resume Analyzer&lt;/a&gt;. After nine years across insurtech, fintech and SaaS teams, my own first resume draft was full of words nobody outside those companies could read: "Owned the Beacon rollout", "migrated services to Hermes", "built dashboards in Prism". Every one of those was real, important work. None of it was searchable.&lt;/p&gt;

&lt;p&gt;This is Part 2 of a series on plain-language resumes. Part 1 dealt with acronyms. This part deals with the bigger version of the same problem: internal platform names. I wrote it with help from AI tools and checked the examples against real resumes I have reviewed (anonymised).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;📚 Series Navigation — Plain-Language Resumes for Tech Roles&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Part 1:&lt;/strong&gt; &lt;a href="https://dev.to/muhammadalimughal/killed-by-acronyms-when-to-spell-out-tech-terms-on-a-resume-3apn"&gt;Killed by Acronyms: When to Spell Out Tech Terms on a Resume&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 2 (This Post):&lt;/strong&gt; Translating Internal Tool Names Into Skills Recruiters Recognize&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 3:&lt;/strong&gt; Cutting Buzzwords: Replacing Vague Verbs With Evidence &lt;em&gt;(coming next)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 4:&lt;/strong&gt; Writing for a Non-Technical First Screener&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 5:&lt;/strong&gt; Readability Checks: Sentence Length, Bullet Density, Scan Paths&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 6:&lt;/strong&gt; One Resume, Two Readers: The Final Plain-Language Review&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Related earlier posts:&lt;/em&gt; &lt;a href="https://dev.to/muhammadalimughal/tailoring-without-lying-mapping-job-description-keywords-to-real-evidence-2il6"&gt;Tailoring Without Lying: Mapping Job Description Keywords to Real Evidence&lt;/a&gt; · &lt;a href="https://dev.to/muhammadalimughal/a-resume-that-stays-ready-before-you-need-it-od7"&gt;A Resume That Stays Ready Before You Need It&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5d28ah5t91cfd1pim8x2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5d28ah5t91cfd1pim8x2.jpg" alt="Stack of reference dictionaries beside a laptop on a library table, AI-generated" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why internal names fail twice
&lt;/h2&gt;

&lt;p&gt;An internal tool name fails with both readers of your resume.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The ATS.&lt;/strong&gt; Applicant tracking systems rank you mostly on overlap between your text and the job description. A job post asks for "feature flags", "LaunchDarkly or similar", "CI/CD", "Kafka". If your bullet says "Owned the Beacon rollout", there is zero overlap. The parser does not know Beacon is a feature-flag service built on Redis and gRPC. You get no credit for the exact skill the role needs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The recruiter.&lt;/strong&gt; A first-round recruiter spends seconds on each resume and usually is not an engineer. A name they don't recognise reads as noise, and noise makes the whole bullet skippable. Worse, a resume full of codenames can look like you only know one company's way of doing things, which is the opposite of what you want to signal.&lt;/p&gt;

&lt;p&gt;The fix is not to delete the work. It is to translate it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three-layer translation
&lt;/h2&gt;

&lt;p&gt;For every internal tool, I write the bullet in three layers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Category&lt;/strong&gt;: what kind of thing it is, in words any engineer would use (feature-flag service, deployment pipeline, event bus, internal admin panel, data warehouse).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stack&lt;/strong&gt;: the public technologies inside it (Redis, PostgreSQL, Kafka, Terraform, GitHub Actions, React).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outcome&lt;/strong&gt;: what changed because of your work, with a number where you have one.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The internal name becomes optional. If it helps an interviewer who might know the company, add it in parentheses once.&lt;/p&gt;

&lt;h3&gt;
  
  
  Before and after
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;BEFORE
- Owned the Beacon rollout across all squads
- Migrated 14 services to Hermes
- Built Prism dashboards for the ops team

AFTER
- Built and rolled out an in-house feature-flag service (Redis, gRPC, React admin UI;
  internally "Beacon") used by 9 teams, cutting risky deploy rollbacks by 60%
- Migrated 14 services from REST polling to a Kafka-based event bus, reducing
  order-sync delay from ~5 minutes to under 10 seconds
- Built operations dashboards in Grafana on PostgreSQL and Prometheus data,
  replacing a weekly manual Excel report
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The after version is longer, but every extra word is a searchable skill or a result. That's the trade you want.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building your own translation table
&lt;/h2&gt;

&lt;p&gt;Before rewriting, I make a private table of every internal name I've used in the last few years. It takes about twenty minutes and saves hours of rewording later.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Internal name&lt;/th&gt;
&lt;th&gt;Public category&lt;/th&gt;
&lt;th&gt;Real stack underneath&lt;/th&gt;
&lt;th&gt;Matching job-post keywords&lt;/th&gt;
&lt;th&gt;Your evidence&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Beacon&lt;/td&gt;
&lt;td&gt;Feature-flag / progressive delivery service&lt;/td&gt;
&lt;td&gt;Redis, gRPC, React&lt;/td&gt;
&lt;td&gt;feature flags, canary releases, LaunchDarkly&lt;/td&gt;
&lt;td&gt;9 teams, 60% fewer rollbacks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hermes&lt;/td&gt;
&lt;td&gt;Event bus / message streaming&lt;/td&gt;
&lt;td&gt;Kafka, Avro, Schema Registry&lt;/td&gt;
&lt;td&gt;Kafka, event-driven architecture, pub/sub&lt;/td&gt;
&lt;td&gt;14 services migrated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prism&lt;/td&gt;
&lt;td&gt;Observability dashboards&lt;/td&gt;
&lt;td&gt;Grafana, Prometheus, PostgreSQL&lt;/td&gt;
&lt;td&gt;monitoring, Grafana, SLOs&lt;/td&gt;
&lt;td&gt;replaced weekly manual report&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Forge&lt;/td&gt;
&lt;td&gt;CI/CD pipeline platform&lt;/td&gt;
&lt;td&gt;GitHub Actions, Docker, Terraform&lt;/td&gt;
&lt;td&gt;CI/CD, infrastructure as code&lt;/td&gt;
&lt;td&gt;build time 22 → 8 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Atlas&lt;/td&gt;
&lt;td&gt;Internal admin / back-office app&lt;/td&gt;
&lt;td&gt;Laravel, Vue 3, MySQL&lt;/td&gt;
&lt;td&gt;admin dashboard, Laravel, Vue.js&lt;/td&gt;
&lt;td&gt;used by 40 support agents&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The fourth column is the important one. Fill it from real job descriptions for roles you want, not from memory. Paste two or three target postings into the &lt;a href="https://smartresumeanalyzer.com/job-description-keyword-finder?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=internal-tool-names-to-skills" rel="noopener noreferrer"&gt;Job Description Keyword Finder&lt;/a&gt; and copy the skill terms that match work you genuinely did.&lt;/p&gt;

&lt;h2&gt;
  
  
  A small script to find codenames in your draft
&lt;/h2&gt;

&lt;p&gt;Codenames hide in plain sight because you've said them every day for years. I run a tiny check that flags capitalised words that aren't in a list of known public technologies. It is crude, but it catches most of them.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;

&lt;span class="no"&gt;KNOWN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"laravel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"php"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"vue"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"react"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"kafka"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"redis"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"postgresql"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"mysql"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"docker"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"kubernetes"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"terraform"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"aws"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"gcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"azure"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"grafana"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"prometheus"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"github"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"jenkins"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"node"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"typescript"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="no"&gt;COMMON&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"built"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"led"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"owned"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"migrated"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"designed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"reduced"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"the"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"a"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;suspect_codenames&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;words&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\b[A-Z][a-zA-Z0-9]{2,}\b"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;words&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;lw&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;lw&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;KNOWN&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;lw&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;COMMON&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;resume&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"resume.txt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;suspect_codenames&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resume&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"check:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Anything it prints is either a company name, a person, a place, or a codename. The codenames are the ones to translate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rules I follow when translating
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Never inflate the category.&lt;/strong&gt; If "Beacon" was a config toggle in a database table, call it a "configuration toggle system", not a "progressive delivery platform". Interviewers will ask follow-ups, and the gap between the bullet and your answer is where trust is lost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Name the vendor equivalent only as comparison.&lt;/strong&gt; "an in-house feature-flag service (similar to LaunchDarkly)" is honest and helps keyword matching. "Used LaunchDarkly" when you didn't is not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keep stack words you actually touched.&lt;/strong&gt; If the platform team owned Kafka and you only published events to it, say "published order events to a Kafka-based event bus", not "ran Kafka clusters".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One internal name per bullet, at most.&lt;/strong&gt; Two codenames in one line is unreadable for everyone outside the company.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check the skills section too.&lt;/strong&gt; Internal names often sneak into a skills list ("Hermes, Beacon, Forge"). A skills section should be public technologies only.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checking the result against a real posting
&lt;/h2&gt;

&lt;p&gt;Once the draft is translated, I compare it to one target job description. The &lt;a href="https://smartresumeanalyzer.com/tools/skill-gap-analyzer?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=internal-tool-names-to-skills" rel="noopener noreferrer"&gt;Skill Gap Analyzer&lt;/a&gt; shows which required skills now appear in the resume and which are still missing. Usually two things happen: overlap jumps, because skills that were hidden behind codenames are now visible, and one or two real gaps appear that you can address honestly in a cover letter or a side project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Diagnostic checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Every internal product or platform name is either translated or removed.&lt;/li&gt;
&lt;li&gt;[ ] Each translated bullet has a category, at least one public technology, and an outcome.&lt;/li&gt;
&lt;li&gt;[ ] The skills section lists only public technologies.&lt;/li&gt;
&lt;li&gt;[ ] No bullet claims a vendor tool you didn't actually use.&lt;/li&gt;
&lt;li&gt;[ ] Categories match what the tool really was, not a bigger-sounding version.&lt;/li&gt;
&lt;li&gt;[ ] At most one internal name per bullet, in parentheses.&lt;/li&gt;
&lt;li&gt;[ ] Keywords from two or three target job posts appear where your evidence supports them.&lt;/li&gt;
&lt;li&gt;[ ] A non-engineer friend can tell what each bullet means after one read.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Should I remove internal names completely?
&lt;/h3&gt;

&lt;p&gt;Not always. If you're applying to a company where people may know your previous employer's tools, a short parenthetical helps in the interview. Just never rely on the name to carry the meaning.&lt;/p&gt;

&lt;h3&gt;
  
  
  What if the internal tool has no public equivalent?
&lt;/h3&gt;

&lt;p&gt;Describe what it does in plain words: "an internal rules engine that calculates insurance premiums from 40+ risk factors". The category is "rules engine" and the domain words (insurance, pricing) are searchable too.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is it okay to say "similar to" a vendor product?
&lt;/h3&gt;

&lt;p&gt;Yes, as long as it is a fair comparison. It helps recruiters understand scale and type. Don't stretch it: a cron-based script is not "similar to Airflow".&lt;/p&gt;

&lt;h3&gt;
  
  
  Will translating make my resume too long?
&lt;/h3&gt;

&lt;p&gt;Usually by a line or two per role. Cut weaker bullets instead of shortening the strong translated ones. Part 5 covers bullet density.&lt;/p&gt;

&lt;h3&gt;
  
  
  What about NDAs or confidential project names?
&lt;/h3&gt;

&lt;p&gt;Translating actually helps here. Public categories and technologies reveal much less than codenames. Avoid client names and anything your contract marks confidential.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I know the ATS now reads it correctly?
&lt;/h3&gt;

&lt;p&gt;Run the text through an &lt;a href="https://smartresumeanalyzer.com/ats-resume-checker?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=internal-tool-names-to-skills" rel="noopener noreferrer"&gt;ATS resume checker&lt;/a&gt; and look at the extracted skills. If your translated technologies show up as skills, the parser sees them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Part 3 tackles buzzwords: replacing "spearheaded", "drove synergies" and "leveraged" with evidence that holds up in an interview.&lt;/p&gt;




&lt;h3&gt;
  
  
  Follow &amp;amp; Connect
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://smartresumeanalyzer.com/?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=internal-tool-names-to-skills" rel="noopener noreferrer"&gt;Smart Resume Analyzer&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch on YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI&lt;/a&gt; · &lt;a href="https://www.youtube.com/@pixel-valut" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt; · &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TikTok:&lt;/strong&gt; &lt;a href="https://www.tiktok.com/@resumeboostai" rel="noopener noreferrer"&gt;Resume Boost AI (@resumeboostai)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X:&lt;/strong&gt; &lt;a href="https://x.com/AliMughal887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@AliMughal887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/ali111887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@ali111887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LinkedIn:&lt;/strong&gt; &lt;a href="https://www.linkedin.com/in/muhammad-ali-m-03434a120/" rel="noopener noreferrer"&gt;Muhammad Ali Mughal&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>career</category>
      <category>resume</category>
      <category>jobsearch</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Laravel Scheduler Not Running? Catch Silent Cron Failures</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Mon, 23 Nov 2026 04:47:47 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/laravel-scheduler-not-running-catch-silent-cron-failures-2nif</link>
      <guid>https://dev.to/muhammadalimughal/laravel-scheduler-not-running-catch-silent-cron-failures-2nif</guid>
      <description>&lt;p&gt;The most expensive production bugs I see in Laravel apps do not throw errors. They simply stop. The scheduler has not run since a server move three weeks ago, so invoices never synced, trial reminders never went out and the nightly report everyone stopped reading is quietly empty. Nothing alerted, because nothing failed. It just never ran.&lt;/p&gt;

&lt;p&gt;I run &lt;a href="https://looporigin.com/services/server-setup-maintenance?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=laravel-scheduler-not-running-silent-cron-failures" rel="noopener noreferrer"&gt;Loop Origin&lt;/a&gt;, a software company that builds and maintains custom Laravel applications and the servers under them. I wrote this with help from AI tools and checked every command and config myself. This guide covers one problem: a Laravel scheduler that is not running, and how to catch silent cron and queue failures before your customers or your finance team do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why is my Laravel scheduler not running, and how do I catch it?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Direct answer:&lt;/strong&gt; Laravel's scheduler only runs when a system cron calls &lt;code&gt;php artisan schedule:run&lt;/code&gt; every minute. If that cron line, the PHP binary, a stale overlap lock or maintenance mode breaks, tasks stop silently. Catch it with an external heartbeat: each task pings a monitor on success, and the monitor alerts when a ping is late.&lt;/p&gt;

&lt;h2&gt;
  
  
  The core mistake: monitoring from inside the thing that died
&lt;/h2&gt;

&lt;p&gt;Most teams' first fix is a scheduled job that checks the other scheduled jobs. It feels sensible, and it fails in exactly the case that matters: when the scheduler itself is dead, the checker is dead too. The same goes for "we log every run": a missing log line is not an alert.&lt;/p&gt;

&lt;p&gt;The pattern that works is a dead man's switch. Every important task reports "I ran and finished" to something outside the server. That outside system knows each task's expected interval and raises an alert when a report is late. Silence becomes the signal.&lt;/p&gt;

&lt;h2&gt;
  
  
  The usual causes, from most to least common
&lt;/h2&gt;

&lt;p&gt;These are the failure modes I check first on an inherited codebase:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The cron line never made it to the new server.&lt;/strong&gt; The app was moved to a new VPS or a fresh container image, and nobody re-added &lt;code&gt;* * * * * cd /var/www/app &amp;amp;&amp;amp; php artisan schedule:run &amp;gt;&amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;/code&gt; to the right user's crontab.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cron runs as a different user or PHP binary.&lt;/strong&gt; The crontab lives under root, so &lt;code&gt;storage/logs&lt;/code&gt; becomes root-owned and web requests start failing; or &lt;code&gt;php&lt;/code&gt; on cron's minimal PATH points to an older version than PHP-FPM uses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A stale overlap lock.&lt;/strong&gt; &lt;code&gt;withoutOverlapping()&lt;/code&gt; holds a mutex in the cache. If the server crashes mid-run, the lock can survive, and by default it expires after 24 hours, so the task is skipped all day without an error. &lt;code&gt;php artisan schedule:clear-cache&lt;/code&gt; clears it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maintenance mode left on.&lt;/strong&gt; A failed deploy leaves the app down; scheduled tasks do not run in maintenance mode unless marked &lt;code&gt;evenInMaintenanceMode()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;onOneServer()&lt;/code&gt; without a shared cache.&lt;/strong&gt; It needs a central cache store (Redis, Memcached, database or DynamoDB). With file cache on two servers, both run the task, and you get duplicates instead of silence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Timezones and daylight saving.&lt;/strong&gt; A task scheduled for 2:30 AM in a timezone that observes daylight saving can be skipped or run twice on the changeover days. Schedule critical work in UTC or outside the changeover window.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Queue workers running old code.&lt;/strong&gt; The scheduler dispatched the job, but Supervisor workers were never restarted after a deploy (&lt;code&gt;php artisan queue:restart&lt;/code&gt;), so they fail on a renamed class and everything lands in &lt;code&gt;failed_jobs&lt;/code&gt;, which nobody reads.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Monitoring options compared
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Catches "never ran"&lt;/th&gt;
&lt;th&gt;Catches "ran and failed"&lt;/th&gt;
&lt;th&gt;Catches "stuck or slow"&lt;/th&gt;
&lt;th&gt;Setup effort&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Grepping logs manually&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Only if someone looks&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;None, and that is the problem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;emailOutputOnFailure()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes, by email&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Internal "check the checker" job&lt;/td&gt;
&lt;td&gt;No (dies with the scheduler)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Partly&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;External heartbeat (Healthchecks.io, Cronitor, Better Stack, Sentry Crons)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes, with a fail ping&lt;/td&gt;
&lt;td&gt;Yes, with a start ping and a max duration&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Queue depth and wait-time alerts (Horizon waits, &lt;code&gt;queue:monitor&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Not for cron&lt;/td&gt;
&lt;td&gt;Indirectly&lt;/td&gt;
&lt;td&gt;Yes, for queues&lt;/td&gt;
&lt;td&gt;Low to medium&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You need the last two together: heartbeats for the scheduler and its tasks, queue alerts for the jobs those tasks dispatch.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F068ibkaphk8iqlcsk0nn.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F068ibkaphk8iqlcsk0nn.jpg" alt="A laptop and a wall display showing abstract graphs" width="799" height="427"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;AI-generated image.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Production setup: heartbeats on every task that matters
&lt;/h2&gt;

&lt;p&gt;In Laravel 11 and later, schedules live in &lt;code&gt;routes/console.php&lt;/code&gt;. The scheduler has ping hooks built in, so you do not need a package:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;Illuminate&lt;/span&gt;\&lt;span class="nc"&gt;Support&lt;/span&gt;\&lt;span class="nc"&gt;Facades&lt;/span&gt;\&lt;span class="nc"&gt;Schedule&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// 1. Scheduler pulse: proves cron + schedule:run are alive at all&lt;/span&gt;
&lt;span class="nc"&gt;Schedule&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;name&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'scheduler-pulse'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;everyMinute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;pingOnSuccess&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;config&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'heartbeats.scheduler'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// 2. A business-critical task with its own heartbeat&lt;/span&gt;
&lt;span class="nc"&gt;Schedule&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;command&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'invoices:sync'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;everyFiveMinutes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;withoutOverlapping&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;          &lt;span class="c1"&gt;// lock expires after 15 min, not 24 h&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;onOneServer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                   &lt;span class="c1"&gt;// requires a shared cache store (e.g. Redis)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;pingBefore&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;config&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'heartbeats.invoices_sync'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'/start'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;pingOnSuccess&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;config&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'heartbeats.invoices_sync'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;pingOnFailure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;config&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'heartbeats.invoices_sync'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'/fail'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;/start&lt;/code&gt; and &lt;code&gt;/fail&lt;/code&gt; suffixes follow Healthchecks.io's ping URL convention; check your monitor's documentation for its own. Store the URLs in config, not in code, so staging does not ping production monitors. Give the overlap lock an expiry slightly longer than the task's worst normal runtime, so a crash costs you 15 minutes rather than a day.&lt;/p&gt;

&lt;p&gt;On the monitor side, set each check's period to the schedule interval and a grace time that covers normal variance. A five-minute sync with a ten-minute grace alerts you within about fifteen minutes of the last good run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Queues: alert on wait time, not just failures
&lt;/h2&gt;

&lt;p&gt;A task that dispatches 500 jobs to a stalled queue looks healthy to the scheduler. Watch the queue itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="c1"&gt;// routes/console.php: emit QueueBusy when the default queue backs up&lt;/span&gt;
&lt;span class="nc"&gt;Schedule&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;command&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'queue:monitor redis:default --max=500'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;everyMinute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// app/Providers/AppServiceProvider.php&lt;/span&gt;
&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;Illuminate&lt;/span&gt;\&lt;span class="nc"&gt;Queue&lt;/span&gt;\&lt;span class="nc"&gt;Events&lt;/span&gt;\&lt;span class="nc"&gt;QueueBusy&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;Illuminate&lt;/span&gt;\&lt;span class="nc"&gt;Support&lt;/span&gt;\&lt;span class="nc"&gt;Facades&lt;/span&gt;\&lt;span class="nc"&gt;Event&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;Illuminate&lt;/span&gt;\&lt;span class="nc"&gt;Support&lt;/span&gt;\&lt;span class="nc"&gt;Facades&lt;/span&gt;\&lt;span class="nc"&gt;Log&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nc"&gt;Event&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;listen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;QueueBusy&lt;/span&gt; &lt;span class="nv"&gt;$event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;Log&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;critical&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Queue backed up'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'connection'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$event&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;connection&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'queue'&lt;/span&gt;      &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$event&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'size'&lt;/span&gt;       &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$event&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you use Horizon, set the &lt;code&gt;waits&lt;/code&gt; thresholds in &lt;code&gt;config/horizon.php&lt;/code&gt; and route its long-wait notifications to Slack or email. Also schedule a daily count of &lt;code&gt;failed_jobs&lt;/code&gt; that alerts above zero for critical queues; a growing failed table is a silent outage. My guide on &lt;a href="https://dev.to/muhammadalimughal/running-laravel-queues-in-production-redis-supervisor-retries-and-failed-jobs-278m"&gt;running Laravel queues in production&lt;/a&gt; covers Supervisor, retries and the failed jobs workflow in depth.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploy steps that prevent the next silent stop
&lt;/h2&gt;

&lt;p&gt;Add these to your deploy script or runbook so the failure modes above cannot come back:&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="c"&gt;# after code is in place&lt;/span&gt;
php artisan down --retry=60
php artisan migrate --force
php artisan config:cache &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; php artisan route:cache
php artisan queue:restart          &lt;span class="c"&gt;# workers pick up new code&lt;/span&gt;
php artisan up                     &lt;span class="c"&gt;# never leave maintenance mode on by accident&lt;/span&gt;
php artisan schedule:list          &lt;span class="c"&gt;# confirm tasks and next run times&lt;/span&gt;
crontab -l -u www-data &lt;span class="o"&gt;|&lt;/span&gt; grep -q &lt;span class="s1"&gt;'schedule:run'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'MISSING SCHEDULER CRON'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run cron as the same user as PHP-FPM (often &lt;code&gt;www-data&lt;/code&gt;), use an absolute PHP path in the crontab if the server has several versions, and keep the crontab in your infrastructure code so a new server gets it automatically. My &lt;a href="https://dev.to/muhammadalimughal/linux-vps-hardening-checklist-for-laravel-servers-4g88"&gt;Linux VPS hardening checklist for Laravel servers&lt;/a&gt; covers the user and permission side.&lt;/p&gt;

&lt;h2&gt;
  
  
  Silent-failure checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;A scheduler pulse task pings an external monitor every minute.&lt;/li&gt;
&lt;li&gt;Every business-critical task has its own heartbeat with start, success and fail pings.&lt;/li&gt;
&lt;li&gt;Each heartbeat has a period and a grace time that match the schedule.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;withoutOverlapping()&lt;/code&gt; has an explicit expiry close to the task's worst runtime.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;onOneServer()&lt;/code&gt; is used only with a shared cache store.&lt;/li&gt;
&lt;li&gt;Critical tasks avoid daylight-saving changeover hours, or run in UTC.&lt;/li&gt;
&lt;li&gt;Queue size or wait-time alerts exist for every queue a scheduled task feeds.&lt;/li&gt;
&lt;li&gt;A daily check alerts when &lt;code&gt;failed_jobs&lt;/code&gt; grows for critical queues.&lt;/li&gt;
&lt;li&gt;Deploys run &lt;code&gt;queue:restart&lt;/code&gt; and finish with &lt;code&gt;php artisan up&lt;/code&gt; and &lt;code&gt;schedule:list&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The crontab is defined in infrastructure code and verified on every new server.&lt;/li&gt;
&lt;li&gt;Alerts go to a channel a named person watches, with a short runbook link.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is the same thinking behind reliable integrations: my posts on the &lt;a href="https://dev.to/muhammadalimughal/transactional-outbox-pattern-in-laravel-saas-2020"&gt;transactional outbox pattern in Laravel&lt;/a&gt; and &lt;a href="https://dev.to/muhammadalimughal/quickbooks-xero-invoice-sync-without-duplicates-2lae"&gt;QuickBooks and Xero invoice sync&lt;/a&gt; both depend on a scheduler and workers that you can prove are running. If you would rather hand this off, this is the kind of work we cover in &lt;a href="https://looporigin.com/services/laravel-development?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=laravel-scheduler-not-running-silent-cron-failures" rel="noopener noreferrer"&gt;Laravel maintenance and development&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQs
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;How do I check if the Laravel scheduler is running?&lt;/strong&gt;&lt;br&gt;
Run &lt;code&gt;php artisan schedule:list&lt;/code&gt; to see tasks and next run times, check &lt;code&gt;crontab -l&lt;/code&gt; for the correct user, and look for a recent ping on your scheduler pulse monitor. A pulse that stopped is the clearest answer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does php artisan schedule:clear-cache do?&lt;/strong&gt;&lt;br&gt;
It deletes the mutex locks created by &lt;code&gt;withoutOverlapping()&lt;/code&gt;. Use it when a task stopped running after a crash or a killed process left its lock behind.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I use schedule:work in production?&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;schedule:work&lt;/code&gt; is meant for local development. In production, use a system cron entry calling &lt;code&gt;schedule:run&lt;/code&gt; every minute, or a dedicated scheduler process managed by your container platform.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does my scheduled task run twice?&lt;/strong&gt;&lt;br&gt;
Usually because two servers run the scheduler without &lt;code&gt;onOneServer()&lt;/code&gt; and a shared cache store, or because a daylight-saving change repeated the hour. Fix the cache store first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need a paid service for cron heartbeats?&lt;/strong&gt;&lt;br&gt;
Not necessarily. Healthchecks.io is open source and can be self-hosted, and several hosted monitors offer free tiers; check current plans. The key is that the monitor runs outside the server it watches.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does this apply to Laravel 10 and older?&lt;/strong&gt;&lt;br&gt;
Yes. The ping methods and &lt;code&gt;withoutOverlapping()&lt;/code&gt; work the same way; only the location differs, since older versions define the schedule in &lt;code&gt;app/Console/Kernel.php&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrap-up
&lt;/h2&gt;

&lt;p&gt;A scheduler that is not running never throws an exception, so error tracking will never tell you. Make silence loud: an external heartbeat for the scheduler and every critical task, wait-time alerts on the queues behind them, and a deploy script that cannot leave the app down or the workers stale. It is an hour of setup that saves the week you would otherwise spend explaining missing invoices.&lt;/p&gt;

&lt;p&gt;What is the longest a scheduled job silently stopped in an app you inherited? Tell me in the comments.&lt;/p&gt;




&lt;h3&gt;
  
  
  Follow &amp;amp; Connect
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LinkedIn:&lt;/strong&gt; &lt;a href="https://www.linkedin.com/company/loop-origin" rel="noopener noreferrer"&gt;Loop Origin&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X:&lt;/strong&gt; &lt;a href="https://x.com/AliMughal887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@AliMughal887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/LoopOrigin" rel="noopener noreferrer"&gt;Loop Origin (@LoopOrigin)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Watch on YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI&lt;/a&gt; · &lt;a href="https://www.youtube.com/@pixel-valut" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt; · &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>devops</category>
      <category>webdev</category>
    </item>
    <item>
      <title>New Grad Nurse Resume: How to List Clinicals for ATS</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Mon, 23 Nov 2026 04:47:11 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/new-grad-nurse-resume-how-to-list-clinicals-for-ats-47c6</link>
      <guid>https://dev.to/muhammadalimughal/new-grad-nurse-resume-how-to-list-clinicals-for-ats-47c6</guid>
      <description>&lt;p&gt;A new grad nurse resume usually gets ignored for one boring reason: the clinical rotations, which are the only real nursing experience a new graduate has, are written as a vague paragraph that neither an applicant tracking system nor a nurse recruiter can scan. Fix how you list clinicals and your credential line, and the same experience starts to read like experience.&lt;/p&gt;

&lt;p&gt;I build &lt;a href="https://smartresumeanalyzer.com/job-description-keyword-finder?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=new-grad-nurse-resume-clinicals-ats" rel="noopener noreferrer"&gt;Smart Resume Analyzer&lt;/a&gt;, a set of tools that show how ATS software reads a resume against a job post. I wrote this with help from AI tools and checked every example and source myself. This guide answers one search question: how to write a new grad nurse resume, with clinical rotations, BSN and RN listed so both the ATS and the recruiter can read them.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Watch the short version:&lt;/strong&gt; &lt;a href="https://www.tiktok.com/@resumeboostai/video/7710802152947469575" rel="noopener noreferrer"&gt;New grad nurse resume: how to list clinicals + BSN, RN&lt;/a&gt; on my Resume Boost AI TikTok. This article adds the parser view, a full before/after, a keyword table and a pre-submit checklist the 90-second video has no room for.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How should a new grad nurse list clinicals on a resume?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Direct answer:&lt;/strong&gt; Put clinical rotations in their own "Clinical Experience" section near the top. Write one entry per rotation with the facility, the unit, total hours and dates, like a job. Add bullets only for your preceptorship or capstone. Put your credentials after your name with the degree first: "BSN, RN".&lt;/p&gt;

&lt;h2&gt;
  
  
  Why clinicals get lost
&lt;/h2&gt;

&lt;p&gt;Most nursing students write clinicals the way their program described them: "Completed clinical rotations in med-surg, pediatrics, OB and psych at various hospitals, providing patient care under supervision." That sentence is honest, but it hides everything a reader needs.&lt;/p&gt;

&lt;p&gt;A recruiter for a nurse residency wants to know three things fast: which units you have actually worked on, for how long, and whether any of them match the unit that is hiring. UC Davis Health's nurse residency application instructions, for example, ask applicants to list clinical rotations with the hospital name, the department or unit, the total number of hours and the time frame (&lt;a href="https://hr.ucdavis.edu/jobs/nursing/residency/apply" rel="noopener noreferrer"&gt;UC Davis Health&lt;/a&gt;). UNT Health's nursing resume guide lists "omitting clinical hours or unit types" and vague phrases like "provided patient care" among the common mistakes (&lt;a href="https://www.unthealth.edu/students/career-center/26-CON-3966%20-%20Career-Readiness-Center-Resume-CV-Guides.pdf" rel="noopener noreferrer"&gt;UNT Health career guide&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The ATS has a related problem. Hospital careers sites run on platforms such as Workday, Oracle Taleo, iCIMS or Greenhouse (my guide on &lt;a href="https://dev.to/muhammadalimughal/which-ats-is-this-job-using-how-to-tell-from-the-job-link-and-what-to-do-differently-1ldb"&gt;telling which ATS a job uses from the link&lt;/a&gt; shows how to check). Their parsers try to split your resume into entries with an organization, a title and dates. One long paragraph with four units and "various hospitals" gives the parser nothing to split, so your best experience may land in a single blob or in the wrong field. In Workday, that blob is what pre-fills the work history form you then have to fix by hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  The credential line most new grads write backwards
&lt;/h2&gt;

&lt;p&gt;The American Nurses Credentialing Center recommends this order for nursing credentials: highest earned degree, then licensure, then state designations or requirements, then national certifications, then awards and other recognition. The degree comes first because it is permanent (&lt;a href="https://www.nursingworld.org/certification/how-to-display-your-credentials/" rel="noopener noreferrer"&gt;ANCC: how to display your credentials&lt;/a&gt;).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;Write it like this&lt;/th&gt;
&lt;th&gt;Avoid&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Licensed, BSN&lt;/td&gt;
&lt;td&gt;Jordan Lee, BSN, RN&lt;/td&gt;
&lt;td&gt;Jordan Lee, RN, BSN&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Graduated, NCLEX not yet passed&lt;/td&gt;
&lt;td&gt;Jordan Lee, BSN, with "NCLEX-RN scheduled: [month year]" in the summary&lt;/td&gt;
&lt;td&gt;Jordan Lee, BSN, RN (before you hold the license)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ADN, enrolled in RN-to-BSN&lt;/td&gt;
&lt;td&gt;Jordan Lee, ADN, RN, plus "BSN expected [month year]" under Education&lt;/td&gt;
&lt;td&gt;Jordan Lee, BSN (in progress)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Licensed, with a national certification later&lt;/td&gt;
&lt;td&gt;Jordan Lee, BSN, RN, CCRN&lt;/td&gt;
&lt;td&gt;Certifications before the degree&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two rules matter more than the order. First, never put "RN" after your name until you hold the license. Second, put your license and certifications in a plain "Licenses &amp;amp; Certifications" section as text, one per line, so the parser and the recruiter can both find "BLS" or "ACLS" as written in the job post. Note the issuing body, for example "Basic Life Support (BLS), American Heart Association, expires [month year]".&lt;/p&gt;

&lt;h2&gt;
  
  
  Weak vs. ATS-optimized: a full before and after
&lt;/h2&gt;

&lt;p&gt;Here is a fictional example ("Jordan Lee (Example)"). The hours and unit names are example data, not a real candidate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weak&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Clinical Experience: Completed clinical rotations in Med-Surg, Pediatrics, OB, Psych and ICU at various hospitals. Provided patient care, administered medications, documented in EHR and worked with the healthcare team.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;ATS-optimized&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Clinical Experience&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Student Nurse, Senior Preceptorship&lt;/strong&gt;, Riverside Medical Center, Cardiac Telemetry Unit | 180 hours | Jan 2026 – Apr 2026&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Managed care for 3–4 telemetry patients per shift under an RN preceptor, including head-to-toe assessments and rhythm strip review&lt;/li&gt;
&lt;li&gt;Administered oral, IV and subcutaneous medications and documented in Epic&lt;/li&gt;
&lt;li&gt;Delivered discharge teaching on heart failure diet and medications, using teach-back&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Student Nurse, Clinical Rotation&lt;/strong&gt;, Riverside Medical Center, Medical-Surgical Unit | 120 hours | Aug 2025 – Dec 2025&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Student Nurse, Clinical Rotation&lt;/strong&gt;, Lakeview Children's Hospital, Pediatrics | 90 hours | Jan 2025 – Apr 2025&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Student Nurse, Clinical Rotation&lt;/strong&gt;, Lakeview Women's Center, Labor &amp;amp; Delivery | 90 hours | Aug 2024 – Dec 2024&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The second version gives every rotation a title, an organization and dates, which is exactly the shape a parser is built to recognize. It names the unit, which is what the recruiter scans for. It keeps four rotations to one line each and saves bullets for the preceptorship, where you carried a real patient load. Only claim the tools and skills you actually used: if your school used a different EHR, name that one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjmvi8wvxxgju3negdl5r.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjmvi8wvxxgju3negdl5r.jpg" alt="A quiet hospital corridor with a nurses station" width="799" height="427"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;AI-generated image.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Which keywords matter on a new grad nurse resume
&lt;/h2&gt;

&lt;p&gt;Keywords should come from the specific posting, not a generic list. Paste the job description and your resume into a keyword tool, or read the posting with a highlighter, and check which terms you can honestly show. A typical med-surg or telemetry residency post uses terms like these:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Keyword in the posting&lt;/th&gt;
&lt;th&gt;Where to show it&lt;/th&gt;
&lt;th&gt;Example wording&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Patient assessment&lt;/td&gt;
&lt;td&gt;Preceptorship bullet&lt;/td&gt;
&lt;td&gt;"head-to-toe assessments on 3–4 patients per shift"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Medication administration&lt;/td&gt;
&lt;td&gt;Preceptorship bullet&lt;/td&gt;
&lt;td&gt;"oral, IV and subcutaneous medications"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EHR / Epic / Cerner&lt;/td&gt;
&lt;td&gt;Bullet and skills line&lt;/td&gt;
&lt;td&gt;"documented in Epic"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Telemetry / cardiac&lt;/td&gt;
&lt;td&gt;Unit name and bullet&lt;/td&gt;
&lt;td&gt;"Cardiac Telemetry Unit", "rhythm strip review"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patient education&lt;/td&gt;
&lt;td&gt;Bullet&lt;/td&gt;
&lt;td&gt;"discharge teaching using teach-back"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BLS / ACLS / PALS&lt;/td&gt;
&lt;td&gt;Licenses &amp;amp; Certifications&lt;/td&gt;
&lt;td&gt;"BLS, American Heart Association, exp. 2028"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nurse residency / new graduate&lt;/td&gt;
&lt;td&gt;Summary&lt;/td&gt;
&lt;td&gt;"New graduate BSN applying to the 2026 nurse residency"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A keyword tool gives you a text-coverage number, not a verdict. It tells you which words appear on both pages. It cannot tell you whether a nurse manager will like your preceptorship story, so use it to find missing terms you genuinely have, then stop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recommended section order
&lt;/h2&gt;

&lt;p&gt;For a new graduate RN applying to a residency or first job, this order puts the evidence where scanners look first:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Name with credentials (degree first), city and state, phone, email&lt;/li&gt;
&lt;li&gt;Summary: two lines naming your degree, license status and target unit&lt;/li&gt;
&lt;li&gt;Licenses &amp;amp; Certifications&lt;/li&gt;
&lt;li&gt;Clinical Experience (preceptorship first, then rotations, most recent first)&lt;/li&gt;
&lt;li&gt;Education (school, degree, graduation month and year; honors if you have them)&lt;/li&gt;
&lt;li&gt;Work Experience (CNA, tech, patient care, or any job, briefly)&lt;/li&gt;
&lt;li&gt;Skills (EHR systems, languages, equipment you used)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you worked as a CNA or patient care tech, that is a real asset. List it under Work Experience with a title and dates; it often matters more to a hiring unit than generic leadership bullets. My earlier guide on &lt;a href="https://dev.to/muhammadalimughal/how-ats-parses-internships-and-part-time-work-42fg"&gt;how ATS parses internships, co-ops and part-time work&lt;/a&gt; covers how to label those roles so they are not mistaken for full-time jobs.&lt;/p&gt;

&lt;h2&gt;
  
  
  10-step checklist before you hit submit
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Credentials after your name are in degree-first order, and "RN" appears only if you hold the license.&lt;/li&gt;
&lt;li&gt;"Clinical Experience" is its own heading, placed above Education.&lt;/li&gt;
&lt;li&gt;Every rotation has a title, facility, unit, hours and month-year dates.&lt;/li&gt;
&lt;li&gt;Bullets appear only under the preceptorship or capstone, not under every rotation.&lt;/li&gt;
&lt;li&gt;Unit names match the posting's wording where true ("Medical-Surgical", "Telemetry").&lt;/li&gt;
&lt;li&gt;Licenses and certifications are plain text, one per line, with the issuing body and expiry.&lt;/li&gt;
&lt;li&gt;The file is single-column with standard headings: no tables, text boxes or icons for contact details.&lt;/li&gt;
&lt;li&gt;Dates use one format everywhere ("Jan 2026 – Apr 2026").&lt;/li&gt;
&lt;li&gt;You checked keyword overlap against this posting and added only terms you can back up.&lt;/li&gt;
&lt;li&gt;After uploading to Workday or another portal, you reviewed every pre-filled field and fixed what the parser got wrong. My &lt;a href="https://dev.to/muhammadalimughal/workday-application-status-what-in-process-means-jek"&gt;Workday "In Process" guide&lt;/a&gt; explains what happens after you apply.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Want a quick read on how a parser sees your file? Run it through the &lt;a href="https://smartresumeanalyzer.com/ats-resume-checker?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=new-grad-nurse-resume-clinicals-ats" rel="noopener noreferrer"&gt;ATS resume checker&lt;/a&gt; before you submit.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQs
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Should clinical rotations go under Experience or Education?&lt;/strong&gt;&lt;br&gt;
Give them their own "Clinical Experience" section above Education. For a new grad, clinicals are the experience, and a separate heading makes them easy for both the parser and the recruiter to find.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I list every clinical rotation?&lt;/strong&gt;&lt;br&gt;
Usually yes, one line each, because hiring managers look for unit exposure. If space is tight, keep the preceptorship and the rotations closest to the units you are applying to.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I write RN after my name before I pass the NCLEX?&lt;/strong&gt;&lt;br&gt;
No. Use "BSN" alone and state "NCLEX-RN scheduled: [month year]" in your summary. Add "RN" only once you hold the license.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it BSN, RN or RN, BSN?&lt;/strong&gt;&lt;br&gt;
The ANCC recommends the highest earned degree first, then licensure: "BSN, RN". Many employers accept either, but the degree-first order is the documented standard.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I include clinical hours?&lt;/strong&gt;&lt;br&gt;
Yes, if you have them. Residency programs such as UC Davis Health ask for total hours per rotation, and hours are one of the few numbers a new grad can honestly show.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does a one-page limit apply to new grad nurse resumes?&lt;/strong&gt;&lt;br&gt;
One page is common for new grads and usually enough with one-line rotations. Do not cut the preceptorship detail or certifications just to hit a page count.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrap-up
&lt;/h2&gt;

&lt;p&gt;A new grad nurse resume is not short on experience. It is short on structure. Name the unit, the hours and the dates for every rotation, keep your credentials degree-first, and let the preceptorship carry the detail. That one change makes your clinicals readable by the ATS and by the nurse manager who decides on the interview.&lt;/p&gt;

&lt;p&gt;Which unit are you applying to first? Tell me in the comments and I will cover its keywords next.&lt;/p&gt;




&lt;h3&gt;
  
  
  Follow &amp;amp; Connect
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI (@resume-boost-ai)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TikTok:&lt;/strong&gt; &lt;a href="https://www.tiktok.com/@resumeboostai" rel="noopener noreferrer"&gt;Resume Boost AI (@resumeboostai)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X:&lt;/strong&gt; &lt;a href="https://x.com/AliMughal887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@AliMughal887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/ali111887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@ali111887)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LinkedIn:&lt;/strong&gt; &lt;a href="https://www.linkedin.com/in/muhammad-ali-m-03434a120/" rel="noopener noreferrer"&gt;Muhammad Ali Mughal&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Watch on YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI&lt;/a&gt; · &lt;a href="https://www.youtube.com/@pixel-valut" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt; · &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>resume</category>
      <category>jobsearch</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Decommissioning the Old App: Shadow Traffic, Flags &amp; Final Cutover</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Sun, 22 Nov 2026 16:27:11 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/decommissioning-the-old-app-shadow-traffic-flags-final-cutover-1ni6</link>
      <guid>https://dev.to/muhammadalimughal/decommissioning-the-old-app-shadow-traffic-flags-final-cutover-1ni6</guid>
      <description>&lt;p&gt;&lt;strong&gt;Quick answer:&lt;/strong&gt; Decommission a legacy PHP app in four stages: measure which routes still get traffic, mirror real requests to the new code and diff the responses, move each remaining route behind a percentage feature flag, then cut over with a read-only period and a rollback window. Only delete servers, cron jobs and DNS after logs show zero legacy traffic for weeks.&lt;/p&gt;

&lt;p&gt;This is the finale of the series. In Part 1 we put a Laravel app in front of the legacy code with the strangler fig pattern. Parts 2 to 5 untangled modules, upgraded PHP, moved auth and sessions, and replaced FTP deploys with a pipeline. At this point most traffic already goes to the new code, and that is exactly where many projects stall. The old app keeps running "just in case", and two years later you are still patching a PHP 7.2 server because one admin report lives there.&lt;/p&gt;

&lt;p&gt;I'm Muhammad Ali Mughal, a Principal Software Engineer in Karachi, and at &lt;a href="https://looporigin.com/?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=decommissioning-legacy-app-cutover" rel="noopener noreferrer"&gt;Loop Origin&lt;/a&gt; we take inherited apps through this last mile regularly. I wrote this with help from AI tools and checked the configuration against the Nginx, Laravel Pennant and Laravel documentation.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;📚 Series Navigation — Modernizing Legacy PHP Without a Rewrite&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Part 1:&lt;/strong&gt; &lt;a href="https://dev.to/muhammadalimughal/strangler-fig-for-legacy-php-run-old-and-new-side-by-side-56mm"&gt;Strangler Fig for Legacy PHP: Run Old and New Side by Side&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 2:&lt;/strong&gt; &lt;a href="https://dev.to/muhammadalimughal/untangling-dependency-cycles-in-a-modular-laravel-monolith-nl7"&gt;Untangling Dependency Cycles in a Modular Laravel Monolith&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 3:&lt;/strong&gt; &lt;a href="https://dev.to/muhammadalimughal/upgrading-old-php-versions-safely-with-rector-and-ci-3093"&gt;Upgrading Old PHP Versions Safely With Rector and CI&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 4:&lt;/strong&gt; &lt;a href="https://dev.to/muhammadalimughal/replacing-legacy-auth-sessions-without-logging-everyone-out-10p5"&gt;Replacing Legacy Auth &amp;amp; Sessions Without Logging Everyone Out&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 5:&lt;/strong&gt; &lt;a href="https://dev.to/muhammadalimughal/from-ftp-deploys-and-cron-scripts-to-a-real-pipeline-2dck"&gt;From FTP Deploys and Cron Scripts to a Real Pipeline&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 6 (This Post, Finale):&lt;/strong&gt; Decommissioning the Old App: Shadow Traffic, Flags &amp;amp; Final Cutover&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Related earlier post:&lt;/em&gt; &lt;a href="https://dev.to/muhammadalimughal/config-feature-flags-that-quietly-diverged-across-environments-4m38"&gt;Config &amp;amp; Feature Flags That Quietly Diverged Across Environments&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk90r05q284vatfbsguby.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk90r05q284vatfbsguby.jpg" alt="Electrical breaker panel in an industrial room, AI-generated" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 1: find out what still hits the old app
&lt;/h2&gt;

&lt;p&gt;You cannot turn off what you cannot see. Start by logging every request the proxy still sends to the legacy upstream, with a tag you can count.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight nginx"&gt;&lt;code&gt;&lt;span class="n"&gt;log_format&lt;/span&gt; &lt;span class="n"&gt;upstream_tag&lt;/span&gt; &lt;span class="s1"&gt;'$time_iso8601 $request_method $uri $status $upstream_addr route=$route_owner'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;map&lt;/span&gt; $&lt;span class="n"&gt;uri&lt;/span&gt; $&lt;span class="n"&gt;route_owner&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;default&lt;/span&gt;              &lt;span class="n"&gt;legacy&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="o"&gt;~^/&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;              &lt;span class="nb"&gt;new&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="o"&gt;~^/&lt;/span&gt;&lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;          &lt;span class="nb"&gt;new&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="o"&gt;~^/&lt;/span&gt;&lt;span class="n"&gt;admin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;reports&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;    &lt;span class="n"&gt;legacy&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;access_log&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;nginx&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;routing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt; &lt;span class="n"&gt;upstream_tag&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;location&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;if ($route_owner&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;new&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;proxy_pass&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//laravel_app; break; }&lt;/span&gt;
        &lt;span class="n"&gt;proxy_pass&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//legacy_app;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;endraw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;After&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;week&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="n"&gt;bash&lt;/span&gt;
&lt;span class="n"&gt;grep&lt;/span&gt; &lt;span class="s1"&gt;'route=legacy'&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;nginx&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;routing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'{print $3}'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;sed&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;E&lt;/span&gt; &lt;span class="s1"&gt;'s/[0-9]+/:id/g'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;sort&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;uniq&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;sort&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;rn&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;head&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;
&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;endraw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;This&lt;/span&gt; &lt;span class="n"&gt;list&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;usually&lt;/span&gt; &lt;span class="n"&gt;shorter&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;weirder&lt;/span&gt; &lt;span class="n"&gt;than&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="no"&gt;CSV&lt;/span&gt; &lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="n"&gt;one&lt;/span&gt; &lt;span class="n"&gt;finance&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="n"&gt;runs&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="nc"&gt;Mondays&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;webhook&lt;/span&gt; &lt;span class="n"&gt;endpoint&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;partner&lt;/span&gt; &lt;span class="n"&gt;still&lt;/span&gt; &lt;span class="n"&gt;calls&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;cron&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;triggered&lt;/span&gt; &lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;image&lt;/span&gt; &lt;span class="n"&gt;paths&lt;/span&gt; &lt;span class="n"&gt;hard&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;coded&lt;/span&gt; &lt;span class="n"&gt;in&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="n"&gt;emails&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Each&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="n"&gt;becomes&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;ticket&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;migrate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;redirect&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;deliberately&lt;/span&gt; &lt;span class="n"&gt;retire&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="nc"&gt;Do&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;forget&lt;/span&gt; &lt;span class="n"&gt;traffic&lt;/span&gt; &lt;span class="n"&gt;that&lt;/span&gt; &lt;span class="n"&gt;never&lt;/span&gt; &lt;span class="n"&gt;passes&lt;/span&gt; &lt;span class="n"&gt;through&lt;/span&gt; &lt;span class="nc"&gt;Nginx&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cron&lt;/span&gt; &lt;span class="n"&gt;jobs&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;box&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Part&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="n"&gt;moved&lt;/span&gt; &lt;span class="n"&gt;most&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="n"&gt;them&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;direct&lt;/span&gt; &lt;span class="n"&gt;database&lt;/span&gt; &lt;span class="n"&gt;writers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;other&lt;/span&gt; &lt;span class="n"&gt;servers&lt;/span&gt; &lt;span class="n"&gt;calling&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;host&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt; &lt;span class="no"&gt;IP&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;## Stage 2: shadow traffic to prove parity
&lt;/span&gt;
&lt;span class="nc"&gt;For&lt;/span&gt; &lt;span class="n"&gt;routes&lt;/span&gt; &lt;span class="n"&gt;that&lt;/span&gt; &lt;span class="n"&gt;matter&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;such&lt;/span&gt; &lt;span class="n"&gt;as&lt;/span&gt; &lt;span class="n"&gt;reports&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pricing&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;anything&lt;/span&gt; &lt;span class="n"&gt;that&lt;/span&gt; &lt;span class="n"&gt;returns&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;I&lt;/span&gt; &lt;span class="n"&gt;mirror&lt;/span&gt; &lt;span class="nb"&gt;real&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="nb"&gt;new&lt;/span&gt; &lt;span class="n"&gt;implementation&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;compare&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="n"&gt;before&lt;/span&gt; &lt;span class="n"&gt;switching&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Nginx&lt;/span&gt;&lt;span class="s1"&gt;'s {% raw %}`mirror` module sends a copy of each request and discards the mirror'&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;so&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="n"&gt;only&lt;/span&gt; &lt;span class="n"&gt;ever&lt;/span&gt; &lt;span class="n"&gt;see&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="n"&gt;nginx&lt;/span&gt;
&lt;span class="n"&gt;location&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;admin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;reports&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;mirror&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;_shadow&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;mirror_request_body&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;proxy_pass&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//legacy_app;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="na"&gt;location&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;_shadow&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;proxy_set_header&lt;/span&gt; &lt;span class="no"&gt;X&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Shadow&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Request&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;proxy_pass&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//laravel_app$request_uri;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;endraw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;Two&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt; &lt;span class="n"&gt;keep&lt;/span&gt; &lt;span class="n"&gt;this&lt;/span&gt; &lt;span class="n"&gt;safe&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;

&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="nc"&gt;Only&lt;/span&gt; &lt;span class="n"&gt;mirror&lt;/span&gt; &lt;span class="n"&gt;reads&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="no"&gt;A&lt;/span&gt; &lt;span class="n"&gt;mirrored&lt;/span&gt; &lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="n"&gt;runs&lt;/span&gt; &lt;span class="n"&gt;twice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;In&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="nb"&gt;new&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reject&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;no&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;op&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt; &lt;span class="n"&gt;shadow&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt; &lt;span class="n"&gt;that&lt;/span&gt; &lt;span class="n"&gt;would&lt;/span&gt; &lt;span class="n"&gt;write&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;never&lt;/span&gt; &lt;span class="n"&gt;send&lt;/span&gt; &lt;span class="n"&gt;emails&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;charges&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;webhooks&lt;/span&gt; &lt;span class="n"&gt;from&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="nc"&gt;Compare&lt;/span&gt; &lt;span class="n"&gt;in&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="nb"&gt;new&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt; &lt;span class="n"&gt;eye&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="nb"&gt;new&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="n"&gt;can&lt;/span&gt; &lt;span class="n"&gt;call&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;endpoint&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;read&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;cached&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt; &lt;span class="n"&gt;differences&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="c1"&gt;// app/Http/Middleware/ShadowCompare.php (new app)&lt;/span&gt;
&lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;handle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Request&lt;/span&gt; $&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Closure&lt;/span&gt; $&lt;span class="n"&gt;next&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;$response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; $&lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;$&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;$&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;header&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'X-Shadow-Request'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nf"&gt;abort_unless&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;$&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;isMethodSafe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;405&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="na"&gt;$legacy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Http&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;config&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'legacy.url'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;$&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getRequestUri&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="na"&gt;$same&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; $&lt;span class="n"&gt;this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;normalise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;$&lt;span class="n"&gt;legacy&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;body&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; $&lt;span class="n"&gt;this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;normalise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;$&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getContent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nc"&gt;Log&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;channel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'shadow'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'shadow-compare'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="s1"&gt;'path'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; $&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'same'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; $&lt;span class="n"&gt;same&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s1"&gt;'legacy_status'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; $&lt;span class="n"&gt;legacy&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'new_status'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; $&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getStatusCode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; $&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;endraw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`normalise()`&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;endraw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;strips&lt;/span&gt; &lt;span class="n"&gt;timestamps&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;CSRF&lt;/span&gt; &lt;span class="n"&gt;tokens&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;whitespace&lt;/span&gt; &lt;span class="n"&gt;so&lt;/span&gt; &lt;span class="n"&gt;you&lt;/span&gt; &lt;span class="n"&gt;compare&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;markup&lt;/span&gt; &lt;span class="n"&gt;noise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;When&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;route&lt;/span&gt; &lt;span class="n"&gt;shows&lt;/span&gt; &lt;span class="n"&gt;matching&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;week&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;real&lt;/span&gt; &lt;span class="n"&gt;traffic&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;including&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;end&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;finance&lt;/span&gt; &lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;ready&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;## Stage 3: flags for the last routes
&lt;/span&gt;
&lt;span class="nc"&gt;Switching&lt;/span&gt; &lt;span class="n"&gt;proxy&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt; &lt;span class="n"&gt;per&lt;/span&gt; &lt;span class="n"&gt;route&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;fine&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;large&lt;/span&gt; &lt;span class="n"&gt;chunks&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;For&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;last&lt;/span&gt; &lt;span class="n"&gt;risky&lt;/span&gt; &lt;span class="n"&gt;pieces&lt;/span&gt; &lt;span class="no"&gt;I&lt;/span&gt; &lt;span class="n"&gt;prefer&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;feature&lt;/span&gt; &lt;span class="n"&gt;flag&lt;/span&gt; &lt;span class="n"&gt;inside&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="nb"&gt;new&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;so&lt;/span&gt; &lt;span class="no"&gt;I&lt;/span&gt; &lt;span class="n"&gt;can&lt;/span&gt; &lt;span class="n"&gt;move&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;percentage&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;one&lt;/span&gt; &lt;span class="n"&gt;internal&lt;/span&gt; &lt;span class="n"&gt;team&lt;/span&gt; &lt;span class="n"&gt;first&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;roll&lt;/span&gt; &lt;span class="n"&gt;back&lt;/span&gt; &lt;span class="n"&gt;without&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;deploy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;With&lt;/span&gt; &lt;span class="nc"&gt;Laravel&lt;/span&gt; &lt;span class="nc"&gt;Pennant&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="c1"&gt;// AppServiceProvider::boot()&lt;/span&gt;
&lt;span class="nc"&gt;Feature&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;define&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'reports-v2'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fn&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;User&lt;/span&gt; $&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;$user-&amp;gt;isInternal()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;default&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;Lottery&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;odds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;// 10% of other users&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Route&lt;/span&gt;
&lt;span class="nc"&gt;Route&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/admin/reports/{report}'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Report&lt;/span&gt; $&lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Feature&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;active&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'reports-v2'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nf"&gt;app&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;ReportController&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;class&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;$&lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;away&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;config&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'legacy.url'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"/admin/reports/{$report-&amp;gt;id}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;endraw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;Pennant&lt;/span&gt; &lt;span class="n"&gt;stores&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="n"&gt;per&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;so&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="n"&gt;does&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;flip&lt;/span&gt; &lt;span class="n"&gt;between&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nb"&gt;new&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="n"&gt;every&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Raise&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;percentage&lt;/span&gt; &lt;span class="n"&gt;in&lt;/span&gt; &lt;span class="n"&gt;steps&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;watch&lt;/span&gt; &lt;span class="kt"&gt;error&lt;/span&gt; &lt;span class="n"&gt;rates&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;support&lt;/span&gt; &lt;span class="n"&gt;tickets&lt;/span&gt; &lt;span class="n"&gt;between&lt;/span&gt; &lt;span class="n"&gt;each&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;## Stage 4: the cutover
&lt;/span&gt;
&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Step&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Duration&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Done&lt;/span&gt; &lt;span class="n"&gt;when&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Rollback&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
&lt;span class="o"&gt;|---|---|---|---|&lt;/span&gt;
&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Announce&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;freeze&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;changes&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="n"&gt;week&lt;/span&gt; &lt;span class="n"&gt;before&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;No&lt;/span&gt; &lt;span class="n"&gt;more&lt;/span&gt; &lt;span class="n"&gt;deploys&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Set&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;only&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;–&lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Legacy&lt;/span&gt; &lt;span class="n"&gt;write&lt;/span&gt; &lt;span class="n"&gt;attempts&lt;/span&gt; &lt;span class="n"&gt;logged&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="n"&gt;zero&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Remove&lt;/span&gt; &lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;only&lt;/span&gt; &lt;span class="n"&gt;flag&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Point&lt;/span&gt; &lt;span class="n"&gt;all&lt;/span&gt; &lt;span class="n"&gt;routes&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="nb"&gt;new&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Minutes&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Routing&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt; &lt;span class="n"&gt;shows&lt;/span&gt; &lt;span class="n"&gt;no&lt;/span&gt; &lt;span class="s2"&gt;"legacy"&lt;/span&gt; &lt;span class="n"&gt;tags&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Restore&lt;/span&gt; &lt;span class="n"&gt;previous&lt;/span&gt; &lt;span class="nc"&gt;Nginx&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Keep&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="n"&gt;running&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;idle&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;–&lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="n"&gt;weeks&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Zero&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;end&lt;/span&gt; &lt;span class="n"&gt;passed&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Re&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;enable&lt;/span&gt; &lt;span class="n"&gt;upstream&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Archive&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nb"&gt;delete&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="n"&gt;day&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Backups&lt;/span&gt; &lt;span class="n"&gt;verified&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="n"&gt;removed&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Restore&lt;/span&gt; &lt;span class="n"&gt;from&lt;/span&gt; &lt;span class="n"&gt;archive&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;

&lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;only&lt;/span&gt; &lt;span class="n"&gt;period&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt; &lt;span class="n"&gt;people&lt;/span&gt; &lt;span class="n"&gt;skip&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;regret&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;It&lt;/span&gt; &lt;span class="n"&gt;flushes&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="n"&gt;hidden&lt;/span&gt; &lt;span class="n"&gt;writers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;partner&lt;/span&gt; &lt;span class="n"&gt;integration&lt;/span&gt; &lt;span class="n"&gt;posting&lt;/span&gt; &lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;forgotten&lt;/span&gt; &lt;span class="n"&gt;admin&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="no"&gt;A&lt;/span&gt; &lt;span class="n"&gt;simple&lt;/span&gt; &lt;span class="n"&gt;guard&lt;/span&gt; &lt;span class="n"&gt;in&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;front&lt;/span&gt; &lt;span class="n"&gt;controller&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;enough&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="c1"&gt;// legacy/index.php, top of file&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;getenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'LEGACY_READ_ONLY'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; $&lt;span class="n"&gt;_SERVER&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'REQUEST_METHOD'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s1"&gt;'GET'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;error_log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'LEGACY WRITE BLOCKED: '&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;$&lt;span class="n"&gt;_SERVER&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'REQUEST_URI'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;http_response_code&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;503&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'This page has moved. Please use the new app.'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;~~~&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;endraw&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;## After cutover: actually delete things
&lt;/span&gt;
&lt;span class="nc"&gt;Decommissioning&lt;/span&gt; &lt;span class="n"&gt;means&lt;/span&gt; &lt;span class="n"&gt;removal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;just&lt;/span&gt; &lt;span class="s2"&gt;"unused"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Before&lt;/span&gt; &lt;span class="n"&gt;deleting&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;archive&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;final&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tag&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;repo&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;take&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;test&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;restore&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;database&lt;/span&gt; &lt;span class="n"&gt;snapshot&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;export&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt; &lt;span class="n"&gt;files&lt;/span&gt; &lt;span class="n"&gt;only&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="n"&gt;stored&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Then&lt;/span&gt; &lt;span class="n"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;in&lt;/span&gt; &lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;proxy&lt;/span&gt; &lt;span class="n"&gt;upstream&lt;/span&gt; &lt;span class="n"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;cron&lt;/span&gt; &lt;span class="n"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;DNS&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;hostnames&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dangling&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="n"&gt;can&lt;/span&gt; &lt;span class="n"&gt;become&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;takeover&lt;/span&gt; &lt;span class="n"&gt;risk&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;firewall&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;credentials&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="n"&gt;used&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rotate&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt; &lt;span class="n"&gt;shared&lt;/span&gt; &lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="nb"&gt;new&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;finally&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="n"&gt;itself&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;## Decommissioning checklist
&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="nc"&gt;One&lt;/span&gt; &lt;span class="n"&gt;week&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="n"&gt;routing&lt;/span&gt; &lt;span class="n"&gt;logs&lt;/span&gt; &lt;span class="n"&gt;reviewed&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;every&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="n"&gt;has&lt;/span&gt; &lt;span class="n"&gt;an&lt;/span&gt; &lt;span class="n"&gt;owner&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;decision&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="nc"&gt;Non&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;HTTP&lt;/span&gt; &lt;span class="n"&gt;dependencies&lt;/span&gt; &lt;span class="n"&gt;listed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cron&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;direct&lt;/span&gt; &lt;span class="no"&gt;DB&lt;/span&gt; &lt;span class="n"&gt;writers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;IP&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;based&lt;/span&gt; &lt;span class="n"&gt;callers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="nc"&gt;Shadow&lt;/span&gt; &lt;span class="n"&gt;comparisons&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="n"&gt;read&lt;/span&gt; &lt;span class="n"&gt;routes&lt;/span&gt; &lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;including&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="nc"&gt;Remaining&lt;/span&gt; &lt;span class="n"&gt;routes&lt;/span&gt; &lt;span class="n"&gt;moved&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt; &lt;span class="n"&gt;percentage&lt;/span&gt; &lt;span class="n"&gt;flag&lt;/span&gt; &lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="n"&gt;rollback&lt;/span&gt; &lt;span class="n"&gt;tested&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="nc"&gt;Legacy&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;only&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="n"&gt;least&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;few&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="n"&gt;zero&lt;/span&gt; &lt;span class="n"&gt;blocked&lt;/span&gt; &lt;span class="n"&gt;writes&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="nc"&gt;Legacy&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="n"&gt;idle&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;–&lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="n"&gt;weeks&lt;/span&gt; &lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="n"&gt;zero&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="nc"&gt;Code&lt;/span&gt; &lt;span class="n"&gt;tagged&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;DB&lt;/span&gt; &lt;span class="n"&gt;snapshot&lt;/span&gt; &lt;span class="n"&gt;restored&lt;/span&gt; &lt;span class="n"&gt;successfully&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;files&lt;/span&gt; &lt;span class="n"&gt;exported&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="no"&gt;DNS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cron&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;firewall&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;credentials&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;servers&lt;/span&gt; &lt;span class="n"&gt;removed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;## FAQ
&lt;/span&gt;
&lt;span class="c1"&gt;### How long should the whole decommission take?
&lt;/span&gt;&lt;span class="nc"&gt;For&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;typical&lt;/span&gt; &lt;span class="n"&gt;mid&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;sized&lt;/span&gt; &lt;span class="n"&gt;business&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;four&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;eight&lt;/span&gt; &lt;span class="n"&gt;weeks&lt;/span&gt; &lt;span class="n"&gt;from&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;first&lt;/span&gt; &lt;span class="n"&gt;routing&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;deleting&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;most&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="n"&gt;waiting&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;see&lt;/span&gt; &lt;span class="n"&gt;rare&lt;/span&gt; &lt;span class="n"&gt;traffic&lt;/span&gt; &lt;span class="n"&gt;such&lt;/span&gt; &lt;span class="n"&gt;as&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;end&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;quarterly&lt;/span&gt; &lt;span class="n"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;### Is Nginx mirroring safe for production load?
&lt;/span&gt;&lt;span class="nc"&gt;It&lt;/span&gt; &lt;span class="n"&gt;doubles&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;mirrored&lt;/span&gt; &lt;span class="n"&gt;locations&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;so&lt;/span&gt; &lt;span class="n"&gt;mirror&lt;/span&gt; &lt;span class="n"&gt;selected&lt;/span&gt; &lt;span class="n"&gt;read&lt;/span&gt; &lt;span class="n"&gt;routes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;whole&lt;/span&gt; &lt;span class="n"&gt;site&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;give&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;shadow&lt;/span&gt; &lt;span class="n"&gt;upstream&lt;/span&gt; &lt;span class="n"&gt;short&lt;/span&gt; &lt;span class="n"&gt;timeouts&lt;/span&gt; &lt;span class="n"&gt;so&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="n"&gt;cannot&lt;/span&gt; &lt;span class="n"&gt;slow&lt;/span&gt; &lt;span class="n"&gt;down&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;### What if shadow results never match exactly?
&lt;/span&gt;&lt;span class="nc"&gt;Look&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;differences&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Often&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;legacy&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="n"&gt;had&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;bug&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rounding&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timezone&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;that&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="n"&gt;rely&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Decide&lt;/span&gt; &lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;business&lt;/span&gt; &lt;span class="n"&gt;which&lt;/span&gt; &lt;span class="n"&gt;behaviour&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;correct&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;document&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="n"&gt;before&lt;/span&gt; &lt;span class="n"&gt;switching&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;### Can I do this without Laravel Pennant?
&lt;/span&gt;&lt;span class="nc"&gt;Yes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;flag&lt;/span&gt; &lt;span class="n"&gt;system&lt;/span&gt; &lt;span class="n"&gt;works&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;even&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="n"&gt;plus&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="no"&gt;ID&lt;/span&gt; &lt;span class="n"&gt;hash&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Pennant&lt;/span&gt; &lt;span class="n"&gt;just&lt;/span&gt; &lt;span class="n"&gt;makes&lt;/span&gt; &lt;span class="n"&gt;per&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="n"&gt;stickiness&lt;/span&gt; &lt;span class="n"&gt;easy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;### What about SEO for public legacy URLs?
&lt;/span&gt;&lt;span class="nc"&gt;Map&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="nc"&gt;URLs&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="nb"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ones&lt;/span&gt; &lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="n"&gt;permanent&lt;/span&gt; &lt;span class="mi"&gt;301&lt;/span&gt; &lt;span class="n"&gt;redirects&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;keep&lt;/span&gt; &lt;span class="n"&gt;them&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="n"&gt;least&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Check&lt;/span&gt; &lt;span class="n"&gt;search&lt;/span&gt; &lt;span class="n"&gt;console&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="mi"&gt;404s&lt;/span&gt; &lt;span class="n"&gt;after&lt;/span&gt; &lt;span class="n"&gt;cutover&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;### When is it safe to delete the legacy database?
&lt;/span&gt;&lt;span class="nc"&gt;After&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;snapshot&lt;/span&gt; &lt;span class="n"&gt;restore&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;tested&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;retention&lt;/span&gt; &lt;span class="n"&gt;requirements&lt;/span&gt; &lt;span class="n"&gt;are&lt;/span&gt; &lt;span class="nb"&gt;clear&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Some&lt;/span&gt; &lt;span class="n"&gt;industries&lt;/span&gt; &lt;span class="n"&gt;need&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;archive&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;cold&lt;/span&gt; &lt;span class="n"&gt;storage&lt;/span&gt; &lt;span class="n"&gt;rather&lt;/span&gt; &lt;span class="n"&gt;than&lt;/span&gt; &lt;span class="n"&gt;deleting&lt;/span&gt; &lt;span class="n"&gt;outright&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;

&lt;span class="c1"&gt;## Series wrap-up
&lt;/span&gt;
&lt;span class="na"&gt;Across six parts we ran old and new side by side, fixed module boundaries, upgraded PHP, moved auth, built a deploy pipeline, and finally turned the old app off. None of it needed a big-bang rewrite. If you have an inherited PHP system and want help taking it through this, see our [custom web application development](https://looporigin.com/services/custom-web-application-development?utm_source&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;devto&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;utm_medium&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;series&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;utm_campaign&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;decommissioning&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;legacy&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;cutover&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;work&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;contact&lt;/span&gt; &lt;span class="nc"&gt;Loop&lt;/span&gt; &lt;span class="nc"&gt;Origin&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//looporigin.com/contact?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=decommissioning-legacy-app-cutover) to talk about your app.&lt;/span&gt;

&lt;span class="o"&gt;---&lt;/span&gt;

&lt;span class="c1"&gt;### Follow &amp;amp; Connect
&lt;/span&gt;
&lt;span class="na"&gt;- **Website:** [Loop Origin](https://looporigin.com/?utm_source&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;devto&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;utm_medium&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;series&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;utm_campaign&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;decommissioning&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;legacy&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;cutover&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="nc"&gt;Watch&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="nc"&gt;YouTube&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Resume&lt;/span&gt; &lt;span class="nc"&gt;Boost&lt;/span&gt; &lt;span class="no"&gt;AI&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//www.youtube.com/@resume-boost-ai) · [PixelValut](https://www.youtube.com/@pixel-valut) · [Daily AI News By Ali](https://www.youtube.com/@AIDailyNewsByAli)&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="nc"&gt;LinkedIn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Loop&lt;/span&gt; &lt;span class="nc"&gt;Origin&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//www.linkedin.com/company/loop-origin)&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="no"&gt;X&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Muhammad&lt;/span&gt; &lt;span class="nc"&gt;Ali&lt;/span&gt; &lt;span class="nc"&gt;Mughal&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nd"&gt;@AliMughal887&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//x.com/AliMughal887)&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="nc"&gt;GitHub&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Loop&lt;/span&gt; &lt;span class="nc"&gt;Origin&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nd"&gt;@LoopOrigin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//github.com/LoopOrigin)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>php</category>
      <category>laravel</category>
      <category>architecture</category>
      <category>webdev</category>
    </item>
    <item>
      <title>You Leaked an API Key in Git: The First 60 Minutes</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Sun, 22 Nov 2026 16:26:49 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/you-leaked-an-api-key-in-git-the-first-60-minutes-ba0</link>
      <guid>https://dev.to/muhammadalimughal/you-leaked-an-api-key-in-git-the-first-60-minutes-ba0</guid>
      <description>&lt;p&gt;&lt;strong&gt;Quick answer:&lt;/strong&gt; When an API key lands in Git, revoke or rotate it first, within minutes, because public repositories are scanned by bots almost immediately. Then check the provider's logs for use since the commit time, find every place the key was copied, and only after that clean history. Rewriting history never un-leaks a secret; rotation does.&lt;/p&gt;

&lt;p&gt;This week one of the most-discussed #security posts on DEV was titled &lt;em&gt;"My Agent Scrubbed a Leaked API Key by Force-Pushing main. It Made Everything Worse."&lt;/em&gt; The instinct it describes is very common: you see the key in a commit and your first move is to make the commit disappear. That feels like fixing it. It is not, and a rushed force-push can break every teammate's clone and CI while the key is still valid.&lt;/p&gt;

&lt;p&gt;I'm Muhammad Ali Mughal, a Principal Software Engineer in Karachi. I build the free developer tools at &lt;a href="https://pixelvalut.com/tools/?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=leaked-api-key-first-60-minutes" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt; and have handled several of these incidents for clients. This post starts a new series on leaked secrets: detecting them, rotating them and recovering cleanly. I wrote it with help from AI tools and checked the commands against the Git, GitHub and git-filter-repo documentation. Everything here is about your own repositories and keys.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;📚 Series Navigation — Leaked Secrets: Detect, Rotate, Recover&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Part 1 (This Post):&lt;/strong&gt; You Leaked an API Key in Git: The First 60 Minutes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 2:&lt;/strong&gt; Scanning Repos and CI Logs for Secrets With Regex and Entropy &lt;em&gt;(coming next)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 3:&lt;/strong&gt; Rotating Secrets Without Downtime: Dual Keys and Overlap Windows&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 4:&lt;/strong&gt; Secrets in Container Images and Build Logs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 5:&lt;/strong&gt; Pre-Commit and CI Guards That Stop the Next Leak&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 6:&lt;/strong&gt; Post-Incident Review: Proving a Leaked Key Was Never Used&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Related earlier posts:&lt;/em&gt; &lt;a href="https://dev.to/muhammadalimughal/leaked-tls-private-keys-proving-compromise-finding-every-affected-cert-rotating-safely-19m3"&gt;Leaked TLS Private Keys: Proving Compromise &amp;amp; Rotating Safely&lt;/a&gt; · &lt;a href="https://dev.to/muhammadalimughal/break-glass-accounts-sso-audit-logs-2ph8"&gt;Break-Glass Accounts &amp;amp; SSO Audit Logs&lt;/a&gt; · &lt;a href="https://dev.to/muhammadalimughal/webhook-security-in-production-hmac-sha256-signatures-timestamp-drift-replay-protection-4f8a"&gt;Webhook Security in Production: HMAC-SHA256 Signatures&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft3xugmmazylrlumhai2y.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft3xugmmazylrlumhai2y.jpg" alt="Row of padlocks on a metal rack, AI-generated" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why history rewriting is step five, not step one
&lt;/h2&gt;

&lt;p&gt;Once a commit is pushed, assume the secret has been copied. Public GitHub repositories are watched by automated scanners, both GitHub's own secret scanning partners and people looking for keys to abuse. Forks, local clones, CI caches, pull request refs and mirror services all keep copies that your rewrite will not touch. Even on private repos, everyone with read access and every CI runner has seen it.&lt;/p&gt;

&lt;p&gt;So the order matters:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Minute&lt;/th&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Goal&lt;/th&gt;
&lt;th&gt;Common mistake&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0–10&lt;/td&gt;
&lt;td&gt;Revoke or rotate the key&lt;/td&gt;
&lt;td&gt;Make the leaked value useless&lt;/td&gt;
&lt;td&gt;Rewriting history first while the key still works&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10–25&lt;/td&gt;
&lt;td&gt;Check provider logs for use&lt;/td&gt;
&lt;td&gt;Know if this is a leak or a breach&lt;/td&gt;
&lt;td&gt;Assuming "nobody noticed"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25–40&lt;/td&gt;
&lt;td&gt;Find every copy and dependent system&lt;/td&gt;
&lt;td&gt;Avoid breaking prod during rotation&lt;/td&gt;
&lt;td&gt;Missing a cron job or second service using the same key&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;40–50&lt;/td&gt;
&lt;td&gt;Deploy the new key everywhere&lt;/td&gt;
&lt;td&gt;Restore service&lt;/td&gt;
&lt;td&gt;Pasting the new key into the same file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50–60&lt;/td&gt;
&lt;td&gt;Decide whether to clean history, and how&lt;/td&gt;
&lt;td&gt;Reduce future exposure&lt;/td&gt;
&lt;td&gt;Force-pushing main without telling anyone&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Minutes 0–10: kill the value
&lt;/h2&gt;

&lt;p&gt;Go to the provider's console and revoke the key, or create a new one and disable the old one. If revoking immediately would take production down and you have evidence the key has not been used yet, you can create the new key first and swap within minutes, but do not leave the old key alive for hours "until the deploy window".&lt;/p&gt;

&lt;p&gt;Note the exact time and the commit in an incident note. You will need both:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# When did the secret first land on the remote?&lt;/span&gt;
git log --all --format=&lt;span class="s1"&gt;'%H %aI %an %s'&lt;/span&gt; -S &lt;span class="s1"&gt;'sk_live_'&lt;/span&gt; -- .
&lt;span class="c"&gt;# Which branches and tags contain that commit?&lt;/span&gt;
git branch -a --contains &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;commit-sha&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
git tag --contains &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;commit-sha&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
~~~&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;

The &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`-S`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="s2"&gt;"pickaxe"&lt;/span&gt; search finds commits where the number of occurrences of the string changed, which shows you both when it was added and whether it was ever removed. Search &lt;span class="k"&gt;for&lt;/span&gt; a distinctive prefix of the key, not the whole value, so you &lt;span class="k"&gt;do&lt;/span&gt; not paste the full secret into your shell history.

&lt;span class="c"&gt;## Minutes 10–25: was it used?&lt;/span&gt;

Most serious providers expose access logs or &lt;span class="s2"&gt;"last used"&lt;/span&gt; timestamps &lt;span class="k"&gt;for&lt;/span&gt; keys. Check activity between the commit &lt;span class="k"&gt;time&lt;/span&gt; and the revocation time:

- Requests from IP ranges or regions you &lt;span class="k"&gt;do&lt;/span&gt; not use.
- Unusual endpoints: listing users, creating new keys, changing webhooks, high-volume reads.
- Billing spikes &lt;span class="o"&gt;(&lt;/span&gt;cloud and AI API keys are often abused &lt;span class="k"&gt;for&lt;/span&gt; compute or model calls&lt;span class="o"&gt;)&lt;/span&gt;.

If you see any use you cannot explain, this is now a security incident with possible data exposure. Escalate according to your process and keep the logs&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; not just rotate and move on.

If the leak was a token &lt;span class="k"&gt;in&lt;/span&gt; a JWT-shaped format, decode it locally to see its scopes and expiry before you assess the damage. The &lt;span class="o"&gt;[&lt;/span&gt;PixelValut JWT Decoder&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://pixelvalut.com/tools/jwt-decoder?utm_source=devto&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;utm_medium&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;series&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;utm_campaign&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;leaked-api-key-first-60-minutes&lt;span class="o"&gt;)&lt;/span&gt; does this &lt;span class="k"&gt;in&lt;/span&gt; the browser, but treat even a revoked token as sensitive and prefer a &lt;span class="kd"&gt;local&lt;/span&gt; tool &lt;span class="k"&gt;for&lt;/span&gt; live secrets.

&lt;span class="c"&gt;## Minutes 25–40: find every copy&lt;/span&gt;

A key &lt;span class="k"&gt;in&lt;/span&gt; one file is rarely only &lt;span class="k"&gt;in&lt;/span&gt; one file. Search the working tree, all history, and the places around the repo:&lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;

~~~bash
&lt;span class="c"&gt;# All commits, all branches, by prefix&lt;/span&gt;
git grep -n &lt;span class="s1"&gt;'sk_live_'&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;git rev-list --all&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; cut -c1-120 &lt;span class="o"&gt;|&lt;/span&gt; sort -u &lt;span class="o"&gt;|&lt;/span&gt; head
&lt;span class="c"&gt;# Other files that might reference it&lt;/span&gt;
grep -rn --exclude-dir=.git -E &lt;span class="s1"&gt;'STRIPE_(SECRET|API)_KEY'&lt;/span&gt; .
~~~&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;

Then check outside Git: CI variables, deployment platform secrets, other services that were configured by copying the same key, team password managers, and shared docs. If two services share one key, rotating it &lt;span class="k"&gt;for&lt;/span&gt; one breaks the other&lt;span class="o"&gt;;&lt;/span&gt; this is the moment to give each its own.

For building a reliable search pattern across many key formats, I &lt;span class="nb"&gt;test&lt;/span&gt; the expression against sample strings first &lt;span class="k"&gt;in&lt;/span&gt; the &lt;span class="o"&gt;[&lt;/span&gt;Regex Tester&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://pixelvalut.com/tools/regex-tester?utm_source=devto&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;utm_medium&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;series&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;utm_campaign&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;leaked-api-key-first-60-minutes&lt;span class="o"&gt;)&lt;/span&gt;. Part 2 goes deep on patterns and entropy checks.

&lt;span class="c"&gt;## Minutes 40–50: deploy the new key properly&lt;/span&gt;

Put the new key &lt;span class="k"&gt;in&lt;/span&gt; a secret store or your platform&lt;span class="s1"&gt;'s environment variables, not back in a committed config file. For a Laravel or Node app, that means {% raw %}`.env` on the server or the host'&lt;/span&gt;s secret manager, with &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`.env`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`.gitignore`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;:&lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;

~~~bash
&lt;span class="c"&gt;# Confirm .env is ignored and never tracked&lt;/span&gt;
git check-ignore -v .env
git ls-files --error-unmatch .env 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"TRACKED - remove with: git rm --cached .env"&lt;/span&gt;
~~~&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;

Restart or redeploy every service that used the old key, &lt;span class="k"&gt;then&lt;/span&gt; confirm &lt;span class="k"&gt;in&lt;/span&gt; the provider&lt;span class="s1"&gt;'s dashboard that the old key shows no new activity and the new one does.

## Minutes 50–60: should you rewrite history?

Rewriting is about reducing future exposure and keeping scanners quiet. It is optional for a key that is already revoked, and it is disruptive. Decide calmly:

- **Private repo, key revoked:** often fine to leave history and add the commit to your scanner'&lt;/span&gt;s allowlist with a note.
- **Public repo, or policy requires removal:** rewrite, but coordinate.

If you &lt;span class="k"&gt;do&lt;/span&gt; rewrite, use &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`git filter-repo`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; rather than the old &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`filter-branch`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;, on a fresh mirror clone:&lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;

~~~bash
git clone --mirror git@github.com:org/app.git app-mirror &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; app-mirror
&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'sk_live_REDACTED_PREFIX==&amp;gt;REMOVED_SECRET\n'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; ../replacements.txt
git filter-repo --replace-text ../replacements.txt
git push --force --mirror   &lt;span class="c"&gt;# only after telling the team and pausing merges&lt;/span&gt;
~~~&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;

Then everyone must re-clone or hard-reset, open pull requests need rebasing, and on GitHub you may need to contact support to purge cached views of the old commits. This is exactly why it comes last: &lt;span class="k"&gt;done&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; a panic, it creates an outage &lt;span class="k"&gt;for&lt;/span&gt; your team &lt;span class="k"&gt;while&lt;/span&gt; protecting nothing.

&lt;span class="c"&gt;## First-hour checklist&lt;/span&gt;

- &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; Key revoked or rotated, with the &lt;span class="k"&gt;time&lt;/span&gt; written down.
- &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; Commit SHA, author &lt;span class="k"&gt;time&lt;/span&gt; and push &lt;span class="k"&gt;time&lt;/span&gt; recorded.
- &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; Provider logs checked from commit &lt;span class="k"&gt;time&lt;/span&gt; to revocation time.
- &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; Any unexplained use escalated as a security incident.
- &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; Every service, CI variable and doc using the key found.
- &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; Shared keys split into one key per service.
- &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; New key stored &lt;span class="k"&gt;in&lt;/span&gt; a secret manager or ignored &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`.env`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;, never committed.
- &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; History rewrite decided deliberately, coordinated, and &lt;span class="k"&gt;done&lt;/span&gt; on a mirror clone.

&lt;span class="c"&gt;## FAQ&lt;/span&gt;

&lt;span class="c"&gt;### Is deleting the file in a new commit enough?&lt;/span&gt;
No. The secret is still &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;history&lt;/span&gt; and &lt;span class="k"&gt;in&lt;/span&gt; every clone. Deleting it only stops new readers of the latest version. Rotation is the fix.

&lt;span class="c"&gt;### Should I make the repo private immediately?&lt;/span&gt;
It does not hurt, but it does not undo exposure either. Bots may have &lt;span class="nb"&gt;read&lt;/span&gt; it within minutes. Rotate first, &lt;span class="k"&gt;then&lt;/span&gt; change visibility &lt;span class="k"&gt;if&lt;/span&gt; it makes sense.

&lt;span class="c"&gt;### What if the key cannot be rotated quickly?&lt;/span&gt;
Some legacy integrations make rotation painful. Restrict the key as much as the provider allows &lt;span class="o"&gt;(&lt;/span&gt;IP allowlist, reduced scopes&lt;span class="o"&gt;)&lt;/span&gt; right away, and treat building a rotation path as an urgent follow-up. Part 3 covers dual-key rotation.

&lt;span class="c"&gt;### Do I need to tell anyone?&lt;/span&gt;
Your team, so nobody pushes on top of a planned rewrite, and your security contact &lt;span class="k"&gt;if&lt;/span&gt; the key had access to user data. If logs show misuse involving personal data, follow your legal and contractual notification duties.

&lt;span class="c"&gt;### Will GitHub catch it for me?&lt;/span&gt;
GitHub secret scanning and push protection catch many well-known formats and may notify the provider, which sometimes revokes the key automatically. Do not rely on it &lt;span class="k"&gt;for&lt;/span&gt; custom or less common tokens.

&lt;span class="c"&gt;### My AI coding agent committed the key. Anything different?&lt;/span&gt;
The response is the same, but also check the agent&lt;span class="s1"&gt;'s configuration and logs: what files it can read, whether it echoed the secret elsewhere, and whether it has permission to force-push. It should not.

## What'&lt;/span&gt;s next

Part 2 builds a practical scanner &lt;span class="k"&gt;for&lt;/span&gt; repos and CI logs using regex and entropy checks. Until then, browse the &lt;span class="o"&gt;[&lt;/span&gt;PixelValut tools&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://pixelvalut.com/tools/?utm_source=devto&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;utm_medium&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;series&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;utm_campaign&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;leaked-api-key-first-60-minutes&lt;span class="o"&gt;)&lt;/span&gt; and use the &lt;span class="o"&gt;[&lt;/span&gt;Hash Generator&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://pixelvalut.com/tools/hash-generator?utm_source=devto&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;utm_medium&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;series&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;utm_campaign&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;leaked-api-key-first-60-minutes&lt;span class="o"&gt;)&lt;/span&gt; when you need to record a fingerprint of a leaked value &lt;span class="k"&gt;in&lt;/span&gt; an incident note without storing the value itself.

---

&lt;span class="c"&gt;### Follow &amp;amp; Connect&lt;/span&gt;

- **Website:** &lt;span class="o"&gt;[&lt;/span&gt;PixelValut Tools&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://pixelvalut.com/tools/?utm_source=devto&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;utm_medium&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;series&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;utm_campaign&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;leaked-api-key-first-60-minutes&lt;span class="o"&gt;)&lt;/span&gt;
- **Watch on YouTube:** &lt;span class="o"&gt;[&lt;/span&gt;Resume Boost AI&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://www.youtube.com/@resume-boost-ai&lt;span class="o"&gt;)&lt;/span&gt; · &lt;span class="o"&gt;[&lt;/span&gt;PixelValut&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://www.youtube.com/@pixel-valut&lt;span class="o"&gt;)&lt;/span&gt; · &lt;span class="o"&gt;[&lt;/span&gt;Daily AI News By Ali&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://www.youtube.com/@AIDailyNewsByAli&lt;span class="o"&gt;)&lt;/span&gt;
- **TikTok:** &lt;span class="o"&gt;[&lt;/span&gt;PixelValut &lt;span class="o"&gt;(&lt;/span&gt;@pixelvalut007&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://www.tiktok.com/@pixelvalut007&lt;span class="o"&gt;)&lt;/span&gt;
- **X:** &lt;span class="o"&gt;[&lt;/span&gt;Muhammad Ali Mughal &lt;span class="o"&gt;(&lt;/span&gt;@AliMughal887&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://x.com/AliMughal887&lt;span class="o"&gt;)&lt;/span&gt;
- **GitHub:** &lt;span class="o"&gt;[&lt;/span&gt;Muhammad Ali Mughal &lt;span class="o"&gt;(&lt;/span&gt;@ali111887&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://github.com/ali111887&lt;span class="o"&gt;)&lt;/span&gt;
- **LinkedIn:** &lt;span class="o"&gt;[&lt;/span&gt;Muhammad Ali Mughal&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://www.linkedin.com/in/muhammad-ali-m-03434a120/&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>security</category>
      <category>git</category>
      <category>devops</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Killed by Acronyms: When to Spell Out Tech Terms on a Resume</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Sun, 22 Nov 2026 16:26:05 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/killed-by-acronyms-when-to-spell-out-tech-terms-on-a-resume-3apn</link>
      <guid>https://dev.to/muhammadalimughal/killed-by-acronyms-when-to-spell-out-tech-terms-on-a-resume-3apn</guid>
      <description>&lt;p&gt;&lt;strong&gt;Quick answer:&lt;/strong&gt; Spell out a tech acronym once, with the short form in brackets, whenever the job post uses the long form, the term is company-internal, or a non-engineer might screen you first. Keep industry-standard short forms (SQL, AWS, API) as-is. Many ATS keyword filters match exact strings, so having both forms on the page covers both searches.&lt;/p&gt;

&lt;p&gt;A post called &lt;em&gt;"Killed by Acronyms"&lt;/em&gt; has been doing the rounds on DEV's #career tag this week, and it hit a nerve for me. I review a lot of engineering resumes, and the most common readability problem I see is not bad grammar. It is a bullet like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Led SRE for CDP; cut P1 MTTR 40% via SLO-based PD routing and IaC for K8s.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every word is accurate. A senior SRE will nod. A recruiter with 90 seconds and a req for a "Site Reliability Engineer" will not, and depending on how the hiring team set up their search, a keyword filter for "site reliability" may not match it either.&lt;/p&gt;

&lt;p&gt;I'm Muhammad Ali Mughal, a Principal Software Engineer in Karachi, and I build &lt;a href="https://smartresumeanalyzer.com/?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=resume-acronyms-spell-out" rel="noopener noreferrer"&gt;Smart Resume Analyzer&lt;/a&gt;. This post starts a new series on writing resumes that both humans and parsers can read. I wrote it with help from AI tools and checked the claims against how common ATS products describe their search.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;📚 Series Navigation — Plain-Language Resumes for Tech Roles&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Part 1 (This Post):&lt;/strong&gt; Killed by Acronyms: When to Spell Out Tech Terms on a Resume&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 2:&lt;/strong&gt; Translating Internal Tool Names Into Skills Recruiters Recognize &lt;em&gt;(coming next)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 3:&lt;/strong&gt; Cutting Buzzwords: Replacing Vague Verbs With Evidence&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 4:&lt;/strong&gt; Writing for a Non-Technical First Screener&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 5:&lt;/strong&gt; Readability Checks: Sentence Length, Bullet Density, Scan Paths&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part 6:&lt;/strong&gt; One Resume, Two Readers: The Final Plain-Language Review&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Related earlier posts:&lt;/em&gt; &lt;a href="https://dev.to/muhammadalimughal/how-ai-llm-resume-screeners-rank-engineers-in-2026-vector-matching-vs-keyword-ats-2h0p"&gt;How AI &amp;amp; LLM Resume Screeners Rank Engineers in 2026&lt;/a&gt; · &lt;a href="https://dev.to/muhammadalimughal/tailoring-without-lying-mapping-job-description-keywords-to-real-evidence-2il6"&gt;Tailoring Without Lying: Mapping Job Description Keywords to Real Evidence&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faavy91vr9fukeb8dtuyi.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faavy91vr9fukeb8dtuyi.jpg" alt="Index cards and a pen on a wooden table, AI-generated" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Who actually reads your acronyms
&lt;/h2&gt;

&lt;p&gt;Your resume usually passes through three readers, in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A search or filter.&lt;/strong&gt; Recruiters search their ATS for terms such as "Kubernetes" or "site reliability". Some tools add synonyms; many simple searches are close to exact string matches. You cannot know which kind you are facing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A recruiter or sourcer.&lt;/strong&gt; Often not an engineer. They compare your page against a list of must-haves from the hiring manager, and that list is usually written in long form.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The hiring manager or an engineer.&lt;/strong&gt; They know the short forms and will skim past spelled-out terms quickly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Acronyms only help reader three. Spelled-out terms help readers one and two and cost reader three about half a second. That trade is why my default is "spell it out once".&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule I use
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Acronym type&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;What to do&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Universal in tech&lt;/td&gt;
&lt;td&gt;SQL, API, AWS, CSS, HTTP&lt;/td&gt;
&lt;td&gt;Keep the short form&lt;/td&gt;
&lt;td&gt;Job posts and recruiters use it as-is&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Common but has a long-form twin in posts&lt;/td&gt;
&lt;td&gt;SRE, CI/CD, IaC, K8s&lt;/td&gt;
&lt;td&gt;Write both once: "Site Reliability Engineering (SRE)"&lt;/td&gt;
&lt;td&gt;Searches may use either form&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Role or certification&lt;/td&gt;
&lt;td&gt;PMP, CKA, AWS SAA&lt;/td&gt;
&lt;td&gt;Full name first, short form in brackets&lt;/td&gt;
&lt;td&gt;Certifications are often filtered by exact name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Metric jargon&lt;/td&gt;
&lt;td&gt;MTTR, SLO, p99&lt;/td&gt;
&lt;td&gt;Spell out once, then short form&lt;/td&gt;
&lt;td&gt;Recruiters need the meaning to judge impact&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Company-internal&lt;/td&gt;
&lt;td&gt;CDP, "Project Atlas", "the Hub"&lt;/td&gt;
&lt;td&gt;Replace with what it is&lt;/td&gt;
&lt;td&gt;Nobody outside your company can search for it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nicknames and slang&lt;/td&gt;
&lt;td&gt;K8s, Postgres, JS&lt;/td&gt;
&lt;td&gt;Use the official name; add the nickname only if the post uses it&lt;/td&gt;
&lt;td&gt;Official names match more searches&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The last two rows cause the most damage. "K8s" is fine on Twitter, but "Kubernetes" is what goes into a req. "CDP" might be a customer data platform at one company and a continuous delivery pipeline at another.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rewriting the example bullet
&lt;/h2&gt;

&lt;p&gt;Here is the bullet from the top, rewritten step by step.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;BEFORE
Led SRE for CDP; cut P1 MTTR 40% via SLO-based PD routing and IaC for K8s.

STEP 1 – replace internal names
Led SRE for the customer data platform; cut P1 MTTR 40% via SLO-based PD routing and IaC for K8s.

STEP 2 – spell out search terms once
Led Site Reliability Engineering (SRE) for the customer data platform; cut mean time to
recovery (MTTR) for P1 incidents 40% via SLO-based PagerDuty routing and Infrastructure
as Code (Terraform) for Kubernetes.

STEP 3 – split for readability
• Led Site Reliability Engineering (SRE) for a customer data platform serving 30+ internal teams.
• Cut mean time to recovery (MTTR) for top-severity incidents by 40% by routing PagerDuty
  alerts on service-level objectives (SLOs) instead of raw CPU thresholds.
• Moved the Kubernetes cluster setup to Infrastructure as Code with Terraform.
~~~

The numbers and facts did not change. (The "30+ teams" line is an example; only use figures you can defend in an interview.) What changed is that every term a recruiter might search for now appears in the form they are likely to type.

## Where the long form should live

You do not need to spell everything out in every bullet. I place the long forms strategically:

- **Summary:** the role title and the two or three biggest skills in full: "Site Reliability Engineer with 7 years of Kubernetes and Terraform experience."
- **First use in experience:** "Site Reliability Engineering (SRE)". After that, "SRE" alone is fine.
- **Skills section:** list the official name, and add the short form only when posts use it: "Kubernetes, Terraform (Infrastructure as Code), PostgreSQL, CI/CD (GitHub Actions)".

This gives a keyword search two or three hits for each important term without making the page read like a glossary.

## A quick script to find unexplained acronyms

I run a rough check over a plain-text export of a resume before reviewing it. It lists all-caps tokens and flags the ones that never appear next to a bracket.

~~~python
import re, sys
from collections import Counter

text = open(sys.argv[1], encoding="utf-8").read()
tokens = Counter(re.findall(r"\b[A-Z][A-Z0-9/]{1,7}s?\b", text))
universal = {"SQL", "API", "AWS", "CSS", "HTML", "HTTP", "REST", "JSON", "UI", "UX", "CI/CD"}

for tok, n in tokens.most_common():
    if tok in universal:
        continue
    explained = re.search(r"\(" + re.escape(tok) + r"\)", text)
    print(f"{tok:10} x{n:&amp;lt;3} {'ok' if explained else 'NOT EXPLAINED'}")
~~~

Save your resume as plain text, run `python acronyms.py resume.txt`, and look at every "NOT EXPLAINED" line. Some will be fine (GCP, GPU). The internal ones are the ones to fix.

## Match against the actual job post

The right form depends on the post, not on your habits. If a post says "experience with continuous integration and delivery", that phrase should appear on your page. If it says "CI/CD", use that.

My workflow:

1. Paste the job description into the [Job Description Keyword Finder](https://smartresumeanalyzer.com/job-description-keyword-finder?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=resume-acronyms-spell-out) and note which form each skill appears in.
2. Search your resume for each term in that exact form.
3. Where you have the skill but used a different form, add the post's form on first use.
4. Run the result through the [Resume Job Match](https://smartresumeanalyzer.com/resume-job-match?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=resume-acronyms-spell-out) tool to see whether the match improves.

This is not keyword stuffing. You are describing the same real experience in the words the reader is using.

## Diagnostic checklist

- [ ] No company-internal names, project codenames or team nicknames are left unexplained.
- [ ] Your target job title appears in full in the summary.
- [ ] Each important acronym is spelled out once, at first use, with the short form in brackets.
- [ ] Nicknames (K8s, Postgres, JS) are replaced by official names unless the post uses them.
- [ ] Certifications use their full official name.
- [ ] Metrics such as MTTR, SLO or p95 latency are explained once so a recruiter can judge them.
- [ ] Skills section uses the same forms as the job posts you target.
- [ ] A plain-text export still reads correctly (run it through the [ATS Resume Checker](https://smartresumeanalyzer.com/ats-resume-checker?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=resume-acronyms-spell-out)).

## FAQ

### Won't spelling things out make me look junior?
Not if you do it once. Senior engineers write for their audience; a resume that explains "SRE" once reads as clear, not junior. Over-explaining universal terms like SQL is what looks odd.

### Do modern AI screeners still need exact keywords?
Some tools use semantic matching and will connect "K8s" to "Kubernetes". Others, and many recruiter searches, do not. Having both forms costs a few characters and works for both, so I do not bet on one kind of system.

### Should I use brackets or a dash?
Brackets, "Infrastructure as Code (IaC)", are the most common and parse cleanly. Avoid slashes between long and short forms; some parsers split on them.

### What about acronyms in my job titles?
Use the title your employer used, but if it was internal or odd ("SDE III"), add the common equivalent: "Software Development Engineer III (Senior Software Engineer)". Keep it honest.

### How many acronyms are too many in one bullet?
If a bullet has more than two unexplained short forms, a recruiter will probably skim past it. Split it or spell some out.

### Does this matter for non-English job markets?
Yes, often more. Recruiters reading in a second language rely even more on full terms they can look up. Tech acronyms tend to stay in English, so spell them out in English.

## What's next

Part 2 covers internal tool names: how to turn "built on Hub, Atlas and Forge" into skills a recruiter can recognise. Until then, run your resume through the [ATS Resume Checker](https://smartresumeanalyzer.com/ats-resume-checker?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=resume-acronyms-spell-out) and count how many acronyms a stranger could not decode.

---

### Follow &amp;amp; Connect

- **Website:** [Smart Resume Analyzer](https://smartresumeanalyzer.com/?utm_source=devto&amp;amp;utm_medium=series&amp;amp;utm_campaign=resume-acronyms-spell-out)
- **Watch on YouTube:** [Resume Boost AI](https://www.youtube.com/@resume-boost-ai) · [PixelValut](https://www.youtube.com/@pixel-valut) · [Daily AI News By Ali](https://www.youtube.com/@AIDailyNewsByAli)
- **TikTok:** [Resume Boost AI (@resumeboostai)](https://www.tiktok.com/@resumeboostai)
- **X:** [Muhammad Ali Mughal (@AliMughal887)](https://x.com/AliMughal887)
- **GitHub:** [Muhammad Ali Mughal (@ali111887)](https://github.com/ali111887)
- **LinkedIn:** [Muhammad Ali Mughal](https://www.linkedin.com/in/muhammad-ali-m-03434a120/)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>career</category>
      <category>resume</category>
      <category>jobsearch</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Tencent Hy4 Open Weights: Price, License, When to Use It</title>
      <dc:creator>Muhammad Ali Mughal</dc:creator>
      <pubDate>Sun, 22 Nov 2026 14:56:54 +0000</pubDate>
      <link>https://dev.to/muhammadalimughal/tencent-hy4-open-weights-price-license-when-to-use-it-5a0n</link>
      <guid>https://dev.to/muhammadalimughal/tencent-hy4-open-weights-price-license-when-to-use-it-5a0n</guid>
      <description>&lt;p&gt;I spent last night reading the Tencent Hy4 model card, its LICENSE file and Tencent Cloud's pricing page, because the headline going around ("770B open model, Apache 2.0") is half wrong. The weights are out. The license is not Apache 2.0. If you build products on open models, that difference matters more than any benchmark chart.&lt;/p&gt;

&lt;p&gt;I wrote this with help from AI tools and checked every price and claim against the linked sources myself. The cover image is AI-generated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch the video version:&lt;/strong&gt; &lt;a href="https://youtu.be/WSA8IS7s5hw" rel="noopener noreferrer"&gt;Tencent Hy4 Open Weights: Price, What Changed, and When to Use It&lt;/a&gt; on my channel &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt;. Earlier context: &lt;a href="https://dev.to/muhammadalimughal/qwen4-max-hy4-flash-copilot-security-ai-news-nov-16-e7n"&gt;Hy4 Flash and Qwen4-Max news from Nov 16&lt;/a&gt; and &lt;a href="https://dev.to/muhammadalimughal/gemini-4-neon-price-cheaper-than-carbon-after-dec-1-4h27"&gt;my Gemini 4 Neon price breakdown&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tencent Hy4 open weights in brief
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Tencent released Hy4 weights on November 20, 2026: 770B total and 49B active parameters, a 1M-token context, on Hugging Face. It ships under the Tencent Hy License, which is derived from Apache 2.0 but is not Apache 2.0. The API costs $0.834 in and $2.501 out per 1M tokens, half price until Dec 31.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What Tencent actually released
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happened.&lt;/strong&gt; According to the &lt;a href="https://huggingface.co/tencent/Hy4" rel="noopener noreferrer"&gt;Hy4 model card on Hugging Face&lt;/a&gt;, Hy4 is a mixture-of-experts model with 770B total and 49B active parameters for text, plus a 1.23B vision encoder. It has 78 layers (1 dense, 77 MoE), 256 routed experts plus 1 shared expert with top-8 routing, a 1,048,576-token context and a 3.3B draft model (DFly2) for speculative decoding. Three checkpoints are listed: Hy4, Hy4-FP8 and an Hy4 base model that is not instruction-tuned.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aifrontierpost.com/articles/tencent-hy4-open-weights-released/" rel="noopener noreferrer"&gt;AI Frontier Post reports&lt;/a&gt; the weights were announced at 03:52 UTC on November 20. Hy4 had launched API-only on November 4, and Hy4 Flash weights came out on November 17.&lt;/p&gt;

&lt;p&gt;Tencent's own claims (internal evals, not independent tests): hallucination down from 15.76% to 5.45% versus the preview, speculative errors down from 23.1% to 5.6%, and #1 among open-weight models on a 579-task finance eval graded by 213 professionals. On Tencent's own chart, Hy4 still trails GPT 6.1 Sol on OSWorld 2.1 (78.9 vs 81.8) and on Terminal Bench 4.0 (44.4 vs 66.4).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters.&lt;/strong&gt; This is one of the largest open-weight models you can download today with a 1M context. For teams in finance or document-heavy work, the model card explicitly targets co-editing Word, Excel and PowerPoint files.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do.&lt;/strong&gt; Treat the benchmark numbers as vendor claims. If agentic coding is your main use case, Tencent's own chart says a closed model is still clearly ahead on Terminal Bench.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The license trap: "open weights" is not "Apache 2.0"
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happened.&lt;/strong&gt; &lt;a href="https://technode.com/2026/11/20/tencent-releases-hy4-model-weights-with-million-token-context/" rel="noopener noreferrer"&gt;TechNode wrote&lt;/a&gt; that the flagship is "available under the Apache 2.0 license." The &lt;a href="https://huggingface.co/tencent/Hy4/blob/main/LICENSE" rel="noopener noreferrer"&gt;LICENSE file itself&lt;/a&gt; says the Tencent Hy License v1.0 is "derived from the Apache License, Version 2.0, with modifications" and, in plain words, "This License is not the Apache License, Version 2.0."&lt;/p&gt;

&lt;p&gt;The key modification is Section 10, on model-as-a-service (MaaS). You need a separate written license from Tencent if your worldwide gross revenue goes above US$50M in any 12 months, or your product passes 100M monthly active users. Internal use is exempt (10.3), and MaaS excludes end-user products where the model is confined to specific features, and mere relaying.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters.&lt;/strong&gt; The preview was Apache 2.0, per AI Frontier Post. Many teams will assume the final release kept that license. Legal review processes that whitelist "Apache 2.0" will wave this through by mistake.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do.&lt;/strong&gt; Add the actual LICENSE file to your model registry, not the headline. If you sell an API or platform built on Hy4 and you are anywhere near those thresholds, talk to Tencent before you launch, not after.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Price, real bill math, and hardware
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happened.&lt;/strong&gt; &lt;a href="https://www.tencentcloud.com/document/product/1300/78937" rel="noopener noreferrer"&gt;Tencent Cloud TokenHub pricing&lt;/a&gt; (updated Nov 19) lists Hy4 at $0.834 input, $2.501 output and $0.042 cached input per 1M tokens, with 50% off until 23:59:59 on Dec 31, 2026, Beijing time. Hy4 Flash is listed at $0.07 / $0.281 / $0.003, with a 50% discount running until noon on Nov 30, Beijing time. &lt;a href="https://docs.litellm.ai/blog/tencent-hy4" rel="noopener noreferrer"&gt;LiteLLM's post&lt;/a&gt; confirms model ID hy4, up to 960,000 input and 64,000 output tokens.&lt;/p&gt;

&lt;p&gt;Here is my own math with those official prices, for a workload of 10M input and 2M output tokens a month, no caching:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Input / output per 1M&lt;/th&gt;
&lt;th&gt;Monthly bill (10M in, 2M out)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hy4 Flash (listed rates)&lt;/td&gt;
&lt;td&gt;$0.07 / $0.281&lt;/td&gt;
&lt;td&gt;~$1.26&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hy4 (promo, to Dec 31)&lt;/td&gt;
&lt;td&gt;$0.417 / $1.25&lt;/td&gt;
&lt;td&gt;~$6.67&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hy4 (list)&lt;/td&gt;
&lt;td&gt;$0.834 / $2.501&lt;/td&gt;
&lt;td&gt;~$13.34&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Sonnet 5.5 (per VentureBeat, Nov 18)&lt;/td&gt;
&lt;td&gt;$2 / $10&lt;/td&gt;
&lt;td&gt;$40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 4 Neon&lt;/td&gt;
&lt;td&gt;$3 / $15&lt;/td&gt;
&lt;td&gt;$60&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At list price, Hy4 costs about a fifth of Gemini 4 Neon for this workload.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Self-hosting reality check.&lt;/strong&gt; AI Frontier Post puts the download sizes at about 1.55 TB (Hy4), 0.79 TB (FP8) and 1.54 TB (base). The model card's vLLM and SGLang recipes use tensor parallel 8. Even the FP8 weights (~0.79 TB) are bigger than the 512 GB maximum memory of a Mac Studio, so "run it on one box under my desk" is off the table. The AngelSlim GGUF is labelled "for end-to-end testing purposes", not production.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Developer takeaway.&lt;/strong&gt; The model card's quickstart uses an OpenAI-compatible API with model "hy4", temperature 0.9, top_p 1.0, and a reasoning_effort switch of "no_think" or "high" (default high). That means most existing OpenAI-client code only needs a new base URL and model name. Example (illustrative; check the card for exact field placement):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;
&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:8000/v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"local"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# your vLLM/SGLang server&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"hy4"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Summarize this contract clause."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;temperature&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;top_p&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;extra_body&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"reasoning_effort"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"no_think"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# "high" is the default&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use "no_think" for cheap classification and extraction calls, and keep "high" for multi-step work.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Dragos: 2 million bait prompts found 3 breached AI providers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happened.&lt;/strong&gt; In &lt;a href="https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens" rel="noopener noreferrer"&gt;"Three breaches, endless leaks"&lt;/a&gt; (Nov 19), HD Moore at Dragos describes sending about 2 million prompts containing unique URLs and canary credentials through AI providers and routers between July and November 2026. They found evidence of compromise at three or more AI providers, "a couple hundred" AWS keys stolen in the largest breach, and bait keys tested "in some cases within a few hours." Marketplace resellers logged and kept prompts through standard logging, and some stolen requests were marked zero data retention. As the post puts it, "a privacy flag only binds the first hop."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters.&lt;/strong&gt; If your agents paste config files, logs or .env snippets into prompts, every hop between you and the model is a place those secrets can leak.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do.&lt;/strong&gt; Use a first-tier provider directly where you can, be careful with routers, avoid reseller marketplaces, turn on secret filtering, and seed your own free canary tokens (Dragos mentions Thinkst Canarytokens) so you find out fast. Short version: &lt;a href="https://youtube.com/shorts/AHwe6PYypUk" rel="noopener noreferrer"&gt;AI Prompts Leaked API Keys&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. GPT-6.2 drops reasoning when you edit chat history
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happened.&lt;/strong&gt; OpenAI's &lt;a href="https://developers.openai.com/api/docs/guides/latest-model" rel="noopener noreferrer"&gt;"Using GPT-6.2"&lt;/a&gt; guide says that starting with GPT-6.2, the Responses API drops reasoning items after mid-conversation edits to the history (prefix edits). The &lt;a href="https://developers.openai.com/api/docs/guides/keep-prefix-unchanged" rel="noopener noreferrer"&gt;"Keep the prefix unchanged"&lt;/a&gt; guide adds that the model may redo reasoning, costing more tokens, money and latency, and quality may drop.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters.&lt;/strong&gt; A lot of agent frameworks rewrite earlier messages, for example to trim context or change reasoning effort mid-session. On GPT-6.2 that silently throws away work, and per the &lt;a href="https://developers.openai.com/api/docs/guides/prompt-caching" rel="noopener noreferrer"&gt;prompt caching guide&lt;/a&gt; cache reads on GPT-6.2 Astra/Sol cost 0.05x input, so a broken prefix is expensive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do.&lt;/strong&gt; Only append. To change reasoning effort, append a configuration_update item and keep the request-level setting the same. OpenAI's input_transformations and prompt_cache_options.comparison_response_id diagnostics help you spot where a prefix changed. One-minute version: &lt;a href="https://youtube.com/shorts/yEjiEd0Y1yo" rel="noopener noreferrer"&gt;GPT-6.2 One-Line Fix&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to watch next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Independent benchmarks for Hy4 against Gemini 4 Neon and Claude Sonnet 5.5&lt;/li&gt;
&lt;li&gt;[ ] Whether Tencent clarifies the license wording after the Apache 2.0 headlines&lt;/li&gt;
&lt;li&gt;[ ] Hy4 Flash discount ending Nov 30 and Hy4 promo ending Dec 31 (rerun your cost math)&lt;/li&gt;
&lt;li&gt;[ ] Audit your agents for secrets in prompts and for prefix edits before moving to GPT-6.2&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is Tencent Hy4 open source under Apache 2.0?&lt;/strong&gt;&lt;br&gt;
No. The weights are downloadable, but the Tencent Hy License v1.0 says it is not the Apache License 2.0. Large model-as-a-service providers (over US$50M revenue or 100M MAU) need a separate written license.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much does the Hy4 API cost?&lt;/strong&gt;&lt;br&gt;
$0.834 input, $2.501 output and $0.042 cached input per 1M tokens on Tencent Cloud TokenHub, with 50% off until Dec 31, 2026 (Beijing time).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I run Hy4 locally?&lt;/strong&gt;&lt;br&gt;
Not on a single consumer machine. Even the FP8 checkpoint is about 0.79 TB, and the official vLLM/SGLang recipes use tensor parallel 8.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What changed in GPT-6.2 for chat history?&lt;/strong&gt;&lt;br&gt;
Editing earlier messages drops reasoning items. Append a configuration_update item instead of editing the request when you change reasoning effort.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where can I watch daily AI news?&lt;/strong&gt;&lt;br&gt;
On my YouTube channel &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  Follow &amp;amp; Connect
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;X:&lt;/strong&gt; &lt;a href="https://x.com/AliMughal887" rel="noopener noreferrer"&gt;@AliMughal887&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/ali111887" rel="noopener noreferrer"&gt;Muhammad Ali Mughal (@ali111887)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Watch on YouTube:&lt;/strong&gt; &lt;a href="https://www.youtube.com/@AIDailyNewsByAli" rel="noopener noreferrer"&gt;Daily AI News By Ali&lt;/a&gt; · &lt;a href="https://www.youtube.com/@resume-boost-ai" rel="noopener noreferrer"&gt;Resume Boost AI&lt;/a&gt; · &lt;a href="https://www.youtube.com/@pixel-valut" rel="noopener noreferrer"&gt;PixelValut&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>news</category>
      <category>machinelearning</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
