Lokesh Ram Chand

The Build Log

Engineering notes by Lokesh Ram Chand · 23 dispatches

More Dispatches

One Flag Was Printing a Runner Secret Into CI Logs

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

The OCI runner in cncf/automation ran its start script with bash -x, tracing 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 defaulting to 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 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 audited this site's security. 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 corrupt protobuf bytes to etcd. 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

A FastAPI pre-production checklist from a real audit: MongoDB indexes, a non-root Docker image, an atomic upsert, and two dependency bumps that broke.

Deleting One Environment Shouldn't Delete a Shared API Key

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

A Postgres trigger in Nango hard-deleted an API key when any one of its environments was removed, even if others used it. I made the trigger 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 rejected valid history whenever two events landed in the same millisecond. The ledger's sequence number already fixed it.

Why I Didn't Just Use ChatGPT for Transaction Parsing

· 3 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.