Lokesh Ram Chand

The Build Log

Engineering notes by Lokesh Ram Chand · 23 dispatches

More Dispatches

A Secret-Redaction Fix That Redacted the Secret Out of Existence

· 2 min read · Go, CNCF, KubeVirt, CI/CD, Security, Open Source

The KubeVirt cloud runner in cncf/automation hid its JIT config so well that the runner never received it. I made it substitute the value again and still keep it out of the logs.

One Flag Was Printing a Runner Secret Into CI Logs

· 2 min read · Go, CNCF, CI/CD, Security, Open Source

The OCI cloud runner in cncf/automation ran its start script with bash -x, which traced the GitHub Actions JIT config into the logs. Removing one flag fixed it.

Why 5.0 Wasn't an Integer in Apicurio's Prompt Templates

· 2 min read · Java, Apicurio Registry, Jackson, Open Source, Debugging

An integer prompt-template variable with a default of 5.0 failed its own type check in Apicurio Registry, because Jackson reads every decimal literal as a Double.

When a Profiling Archive Includes Nodes It Never Reached

· 2 min read · Go, Milvus, Observability, Open Source, Debugging

Birdwatcher's pprof command archived 0-byte entries for unreachable Milvus nodes and printed the same success message for them. Here's my fix.

A Typo That Hid a Whole Command, and the Crash Behind It

· 2 min read · Go, Milvus, Reflection, Open Source, Debugging

Birdwatcher's verify-segment command was fully written but never registered, because its method was named VerifySegmentCommnad. Fixing the typo exposed a startup panic.

Auditing My Own Portfolio Like Someone Else's Codebase

· 2 min read · Security, Vue, Web Performance, Open Source

I ran a security and production audit on this site. It found an XSS hole in the blog, two vulnerable dependencies, a dead permalink and missing security headers.

When Success Doesn't Mean It Worked

· 2 min read · Go, Milvus, etcd, Protobuf, Debugging, Open Source

A repair command in Birdwatcher, Milvus's diagnostic tool, could report success while writing corrupted protobuf bytes to etcd. Here's how I found and fixed it.

The Stub That Made Birdwatcher's Restore Write Nothing

· 2 min read · Go, Milvus, etcd, Open Source, Debugging

FileAuditKV.MultiSave in Birdwatcher always returned 'not implemented'. That broke one repair command outright and made restore silently write zero keys.

A Validator That Crashed Instead of Saying No

· 2 min read · Python, Milvus, pymilvus, Validation, Open Source

pymilvus's binary-vector check raised a raw TypeError on None values instead of returning False. Swapping two lines fixed it.

Hardening a 15-Phase AI API for Pre-Production

· 3 min read · Machine Learning, FastAPI, MongoDB, Docker, Security, Production Readiness

What my pre-production audit of Velar found: zero indexes, a root container, a concurrency race, and two security bumps that broke things.

Deleting One Environment Shouldn't Delete a Shared API Key

· 2 min read · PostgreSQL, TypeScript, Nango, Databases, Open Source

A Postgres trigger in Nango hard-deleted an API key whenever any of its environments was removed, even if the key still belonged to others. I made it relation-aware.

A Flaky Test That Was Really a Same-Millisecond Bug

· 2 min read · TypeScript, Node.js, Testing, Open Source, Debugging

roster's v1 to v2 HITL migration refused valid history whenever two events landed in the same millisecond. The ledger already had a sequence number that fixed it.

Why I Didn't Just Use ChatGPT for Transaction Parsing

· 2 min read · Machine Learning, FastAPI, MongoDB, System Architecture, LLM

I put three cheap, deterministic layers in front of the LLM in Velar, and gave the pipeline permission to say 'I don't know.'

Designing a Memory State Machine for ML Predictions

· 2 min read · Machine Learning, FastAPI, MongoDB, System Architecture, Engineering

How I made merchant trust an explicit state in Velar, the race condition I almost shipped, and the decay question I still haven't answered.

Owning the Stack: Building My Personal Cloud

· 2 min read · Architecture, Self-Hosting, Cloud

Why I built my own cloud on Proxmox, and what I learned getting a static IP, a reverse proxy, Keycloak and monitoring running at home.