Security Is a UX Problem
People always find the path of least resistance. If that path bypasses your security, your security has already failed. Stricter enforcement won't fix that, but better design will.
The Password You Can’t Copy
You have seen it: a system that blocks you from pasting into the password field. The intent is security. In practice, everyone who uses it writes the password on a sticky note, reuses something simple they can type from memory, or picks “Password1!” because the rules require a capital letter and a number.
The friction did not make the system more secure. It made the users less secure, and the policy created the very vulnerability it was meant to prevent.
This happens all the time. It is what you get by default whenever security is designed as an obstacle instead of as the natural way to do the right thing.
People Route Around Friction
Humans are extraordinarily good at finding workarounds. Give an engineer a deployment process that takes forty-five minutes to get through security review, and within a month they will have a personal AWS account running something that bypasses it entirely. Give a team a secrets management system that is painful to integrate, and within a quarter half of them will have credentials in environment variables, committed to a private repo that is not quite as private as they think.
Nobody is being malicious here. It is rational behaviour: when two paths lead to the same outcome and one is much harder, people take the easier one. The friction doesn’t stop the behaviour. It just moves it outside the system, where you have no visibility or control.
Shadow IT exists because official IT is too slow. Shared credentials exist because proper access management is too cumbersome. Hardcoded secrets exist because the secrets manager was too annoying to set up.
Every security workaround in your organisation points back to a UX failure somewhere upstream.
The Compliance Checkbox Problem
Security requirements that exist only on paper fail the same way. A penetration test checklist, a compliance questionnaire, a policy document nobody reads: these give you the appearance of security without the substance.
The teams filling them in are not trying to deceive anyone. They are taking the path of least resistance, which is to get the box checked and get back to work. If the checkbox is the only thing standing between them and shipping, the checkbox gets checked.
For security to hold up, it has to be the cheapest option, not an extra tax on top of the real work.
Designing the Right Path
The key point is that the path of least resistance is a design decision.
You get to choose what the easiest thing is. If the easiest thing is also the secure thing, you have solved the problem. If the easiest thing is the insecure thing, no amount of policy enforcement will save you. You will just get increasingly creative workarounds.
Good DX at the security layer looks like this:
- Secrets should be easier to manage through the platform than outside it. If injecting a secret through your platform takes three commands and doing it manually takes one, the manual way wins every time.
- Access control should be the default, not something you configure. If getting access means filing a request and waiting two days, people will share credentials. If access is scoped automatically to what the module actually needs, there is nothing to share.
- Auditing should be automatic. If an audit log depends on developers instrumenting their code, it will be incomplete. If the platform generates it structurally, it is always accurate.
- The secure path should be invisible. The best security control is one the developer never notices, because it is built into the shape of the work rather than bolted on in front of it.
What This Means for Infrastructure Platforms
The same logic applies at the infrastructure and platform level. If deploying securely to production takes more steps than deploying insecurely, production deployments will eventually be insecure. If rotating credentials is harder than not rotating them, credentials won’t get rotated.
Levyer is built around this principle. Every module runs in a sandbox with capability-based access control, and that is simply the default execution model rather than something developers have to set up. You cannot accidentally give a module access to something it doesn’t need, because access has to be granted explicitly instead of denied explicitly.
On Levyer, security isn’t a feature you add to an application afterwards. The easiest way to build something (write a module, wire it to an interface, deploy it) is also the secure way, and in our experience that is the only kind of security that holds up at scale.
Want to follow our progress?
We're onboarding early design partners and sharing what we learn.
Get Early Access