Exactly. You build the product modularly. There is a very high-security core to it with a very tight API. It's very hard to do dangerous things using it's minimal API. It rate limits calls to "GetPassword." It handles 2-way encryption. This cold has a massive test suite, a fuzzing suite, a timing suite, etc. Every line is reviewed very, very carefully.
Vibe code the UI all you want. Be fast and easy w/ reviews.
But that central code that performs the truly dangerous stuff, it's reviewed carefully and owned by a security-focused team.
I think this sort of modularization and treating some code as "golden, needs human review" and some as "can be vibed / thrown away and rewritten" will become common over time. Sort of how Python writes it's "fast" parts in C or Rust (e.g numpy matrix math), we'll extract the secure stuff.
That's my philosophy at least. I pushed for it at my last company and got pretty good buy-in. It clicks with ppl, gives PMs the ability to vibe away, and security folks the ability to say "I don't trust AI code."
Secrets are chained through the UI though. If you aren't reviewing that you have a massive hole in your security model.
It needs to be a vertical slice, not a core. Now only that feature touches the sensitive bits. In a well designed system, oftentimes your core is completely internal to the subsystem.
In general people over-emphasize layers, feature slices are usually what matters.
Glad it worked for you - I'm in a "central code that performs dangerous stuff team" and the higher-ups are annoyed that we're not tokenmaxing. Any attempt at push-back has been met with arguments like "this is how software development is now, no point pushing back".
Give it time and stay assertive, churning through tokens is the same stupid metric as having LOC or story points as a benchmark. You are the software developer, you are the expert on these matters, not the higher-ups who are thinking in competition and whether their $500/month/seat (or howver much) AI expenses are worth it (they most likely aren't).
Oh yeah, I know that common sense will win out sooner or later. Still ridiculous that the rest of the industry seems to have largely moved on to being wise with AI spend and here we are being told to blow the budget.
I had a similar situation.
I brought up the topic of safety and the potential consequences of adverse events.
They didn’t object; they accepted my point of view.
You can't ignore UI when building a secure product. Go read about Therac-25 if you don't know about it, it's a case-study in UI and security failure.
You can have a secure core that's carefully reviewed and has less velocity. But that core includes handling the user's password. And then everything else needs to be sandboxed/isolated in some way: you'll be quickly making various tradeoffs.
Wanted to say this. If corporate users are an attack vector, it seems like hardening the UI would arguably be Step 1 in multi-layered plan for a B2B SaaS or consumer app.
Vibe code the UI all you want. Be fast and easy w/ reviews.
But that central code that performs the truly dangerous stuff, it's reviewed carefully and owned by a security-focused team.
I think this sort of modularization and treating some code as "golden, needs human review" and some as "can be vibed / thrown away and rewritten" will become common over time. Sort of how Python writes it's "fast" parts in C or Rust (e.g numpy matrix math), we'll extract the secure stuff.
That's my philosophy at least. I pushed for it at my last company and got pretty good buy-in. It clicks with ppl, gives PMs the ability to vibe away, and security folks the ability to say "I don't trust AI code."
Replies (5)
It needs to be a vertical slice, not a core. Now only that feature touches the sensitive bits. In a well designed system, oftentimes your core is completely internal to the subsystem.
In general people over-emphasize layers, feature slices are usually what matters.
Replies (2)
Replies (1)
You can have a secure core that's carefully reviewed and has less velocity. But that core includes handling the user's password. And then everything else needs to be sandboxed/isolated in some way: you'll be quickly making various tradeoffs.
Replies (1)