Menu

Post image 1
Post image 2
1 / 2
0

My test suite was green. My software was lying to me.

DEV Community: go·Saint Zero Day·2 days ago
#bzZVmLvl
#dev#fullscreen#every#real#endpoint#article
Reading 0:00
15s threshold

My CI was green. 1,885 tests, 66 packages, zero failures. go vet clean. The build was a single self-contained binary. By every signal a Go project gives you, it worked. Then I pointed it at something real, and watched it lie to my face. This is the story of six bugs I found in my own security platform — ZDS Core — by refusing to trust a green checkmark. Five of the six belonged to the same scary family: the code reported success and stored nothing. No error. No stack trace. A 200 OK and an empty database. If you ship anything that ingests data from the outside world, you have at least one of these right now. Let me show you what they look like. The setup: test against reality, not fixtures ZDS Core is a security platform written in Go — vulnerability scanning, an endpoint agent, EDR integrations, vuln-data feeds, compliance exports, the works. My unit tests were thorough. They were also, I realized, all talking to fixtures and in-memory SQLite. They proved my logic.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More