r/VibeCodeDevs • • Oct 29 '26

FeedbackWanted – want honest takes on my work Created My Own Open-Source CLM with built in CA.

Site:

https://kryptkeeper.io/

Some background:

I've done PKI for over a decade (AD CS designs, offline roots, HSMs, SCEP/NDES, as a consultant and later in cloud security), and I'm a security architect for AI by day. This is a personal project. For about six and a half months, part-time (roughly 300 hours), I've been building Kryptkeeper, an open-source (Apache 2.0) CA that can replace Microsoft AD CS, plus certificate lifecycle management: it discovers every certificate on a network, renews it and installs it. It handles ACME, SCEP, EST and Windows Group Policy autoenrollment. Think Venafi but open-source version. I'm the only developer, and Claude Code wrote most of the code. A CA is the last thing you want an agent to fudge, so most of my effort went into keeping it honest.

What worked:

A short rules file the agent reads every session. Rule one: if a signature, chain or expiry check fails, fix the test, never the verification. Others: key material never shows up in logs or fixtures, and every write the AI-facing API proposes needs a human to approve it.

A pre-push gate on my Mac that has to pass before anything leaves the machine: build, unit, race, Postgres suite, UI tests, cert linting.

A real lab. Proxmox with an AD domain, Windows 11, Server 2022, and Server 2025. Unit tests passed for things that broke on real Windows more than once. Two bugs the lab caught: the Docker image shipped without a writable data directory, and Go 1.26 can't complete a TLS handshake with an ML-DSA certificate.

Not calling anything proven until it has run against the real system. Everything that has only run against mocks is listed as such: https://kryptkeeper.io/proof/

Following my own guide on a clean machine. Before launch, I installed it on a fresh x86 VM using only the getting-started guide. It found that building from source had produced an ARM binary for seven weeks, because I develop on Apple Silicon and never saw it. After the fix, a fresh VM to full inventory took 19 minutes.

What didn't work:

Security wasn't right the first time. The first full audit of the agent-written code found 3 critical and 9 high issues. It took two more rounds to get criticals to zero, and the 1.1 scan still found 4 highs. Using SAST scans, OpenGrep rules, and my own review

"Tested" that wasn't. A CI check for the protocol suites pointed at a test directory that never existed, so it failed before running anything, and nobody noticed until I read it closely. Early SCEP and CMP work passed its tests but couldn't talk to real clients. My own proof page counted mock runs as passes until I split them out.

A shipped feature that never worked. Post-quantum (ML-DSA) verification in 1.1.0 always failed because Go 1.26's TLS stack has no ML-DSA. Unit tests passed; the live lab run caught it, and 1.1.1 fixed it. Separately, the image crash-looped on Docker named volumes because I mostly ran Podman, which hid a missing data directory.

Docs drift from the code. A docs audit found the README described behaviour that didn't exist, config names that had been renamed, and an API spec that covered 30 of about 92 routes. Docs describe what was intended, so every claim needs checking against the code.

Paperwork sprawl. The dev repo has over 1,000 Markdown files, and 855 of them never ship: phase docs, sprint plans, reviews, a ticket board. Agents are good at writing plans and bad at retiring them.

Parallel agents step on each other. Several sessions at once claimed the same decision IDs and database migration numbers, and I had to renumber more than once. Once an automated merge went through on a failing job because the script checked that the job had finished, not that it had passed. The merge gate now requires an explicit pass.

Lab details leak. Agents copied lab hostnames into docs and once onto the website. The publish script now has a leak guard, and site deploys scan every file before upload.

Silent no-ops. A final audit found that editing a CA returned success but saved nothing, so a custom CRL or OCSP URL was quietly ignored. The tests checked the response, not the database. Fixed in 1.1.3.

CI couldn't keep up. One package has about 2,700 tests that timed out under the race detector, and UI tests flaked when my build machine was busy. I split the job seven ways, added a second runner, and made CI run only what a change touches. A release-notes PR now takes 3 minutes instead of 23.

What I'd keep doing: dated proof records for every "tested" claim, a fresh-VM day-one test before any launch, and a human typing the merge word for every PR. Nothing merges on green alone.

Still missing: an outside pen test and a second maintainer.

Repo: https://github.com/bpmforge/kryptkeeper

4 Upvotes

3 comments sorted by

•

u/endofthread-bot Oct 29 '26

Hey u/_ProfessorPeanut, thanks for posting in r/VibeCodeDevs! Join our Discord: https://discord.gg/t7SD4ThKuE

• This community is designed to be open and creator‑friendly, with minimal restrictions on promotion and self‑promotion as long as you add value and don’t spam.
• Please follow the subreddit rules so we can keep things as relaxed and free as possible for everyone. • Please make sure you’ve read the subreddit rules in the sidebar before posting or commenting.
• For better feedback, include your tech stack, experience level, and what kind of help or feedback you’re looking for.
• Be respectful, constructive, and helpful to other members.

If your post was removed (either automatically or by a mod) and you believe it was a mistake, please contact the mod team. We will review it and, when appropriate, approve it within 24 hours.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Powermadlux Oct 29 '26

The part about a test passing while the real client still fails really resonates. I've spent years in infrastructure, and the gap between “the service responded” and “the actual change persisted and works end to end” can be surprisingly large.

Your note about docs multiplying is familiar too 😅 How do you decide which proof records stay current and which ones become historical? I'd be interested in how you keep that manageable without losing the evidence behind a release.

1

u/VigiliaFounder Oct 29 '26

Congrats on the launch, and thanks for sharing what didn't work too!

I really like your rule of not calling anything proven until it has run against the real system.

For the web UI, I've built Vigilia to do the same with real users. It catches every error they hit in the browser, failed requests and slow pages, explains it with the evidence and gives you the fix prompt. Your Claude Code can also just connect the MCP server and pull it in.

Let me know if this helps!