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."
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.
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".
It’s a password manager, though. The UI is part of the security core.
They have an ssh agent daemon that runs on folk's machines. Whether that's a valuable service iz another question, but they do offer it.
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.