Urgent.News

What's breaking now, across thousands of outlets.

Tech

I almost rebuilt a project for the wrong reason, a 20 minute audit caught it

I have an iPhone-driving rig. An ESP32 board plugs into the phone over USB and plays human, screen taps, button presses, the works, so my local agent can actually operate the phone instead of just talking about it. The rig works. It has worked for months. So naturally my first instinct was to rebuild the whole thing from scratch. The reason I gave myself was security. The codebase came from a…

A project's security concerns led to an ambitious but flawed plan to rebuild it from scratch. The reporter, using an iPhone-driving rig that connects an ESP32 board to the phone via USB, was uneasy about the existing codebase. The repo contained Chinese translation files, an unexamined JavaScript front end, and firmware binaries that hadn't been inspected.

Before burning a month on the rebuild, the reporter conducted a 20-minute audit of the old code. The audit checks included scanning for Chinese text, tracing outbound calls, reviewing the bundled JavaScript, and examining the firmware strings. Each check returned clean results, meaning the old code was free of Chinese text, unnecessary outbound connections, security vulnerabilities, or hidden backdoors.

The audit revealed that the old code was clean and functioning as intended. This discovery led the reporter to reevaluate the justification for rebuilding. The real reasons to build a new version involved wanting a native Mac app, improved performance, automatic calibration, and greater ownership of the codebase. These reasons are unrelated to security concerns and demonstrate that the rebuild should focus on architectural improvements rather than addressing a security issue.

By following the 20-minute audit rule, the reporter avoided rushing into a potentially flawed rebuild. The audit provided a clear picture of the old code's state, allowing the reporter to write down the actual reasons for the rebuild and ensure that the new version addresses genuine needs rather than emotional motivations.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Database Indexing – Part 1: How Indexes Help Find Data Faster

Recently, I was reading two books: Good Vibes, Good Life and The Mountain Is You . I usually forget things after some time 😅. So whenever I want to revisit something I've read, I go back to the book.

  • Database indexing improves data retrieval speed
  • PostgreSQL uses indexes to locate records quickly
  • Index Only Scan retrieves data directly from index

Node.js Marketplace Verification: 6 Secure SMS OTP Login Flow Lockout and Replay Defenses

Short answer: design a secure SMS OTP login flow by putting rate limiting, retry control, lockout, and replay protection in your Node.js backend, before and after the provider call.

  • Implement six security gates before provider call in Node.js OTP flow
  • Seller requests vehicle service report, backend enforces defenses
  • Protect provider call with idempotency key and exponential backoff

When a cert-manager Keystore Runs Behind a Password Change

cert-manager v1.21.2's API reference: "The keystore file will be updated immediately." After a password change, the keystores opened only with the old password throughout our 30-minute window.

  • Cert-manager v1.21.2 has keystore password change issue
  • Keystore entries remain encrypted for 30 minutes post-change
  • Certificate stays Ready=True, but entries stay encrypted

More from Saturday 17 October →