Why Our Password Vault Is the One a CLI Can Drive
We chose Vaultwarden over a KeePass file because automation can manage it through a real CLI and API. We also issued its certificate directly from our private CA instead of using the proxy's built-in ACME, trading a little code for a path we had already verified.

Key Architectural Takeaways
- Choose the secrets tool by how you will operate it, not just how it looks; a GUI-only file is hard to automate safely.
- Prefer the mechanism you have already verified over a nicer one you have not, when the failure would be hard to debug.
- Give every service its own container, with IP and ID checked live rather than assumed free.
The challenge
The lab had put off a proper password vault. When we finally built one, the question was KeePass or something else. A KeePass database on a Windows VM was the first suggestion, and an open invitation to propose better.
Why Vaultwarden
Vaultwarden is a self-hosted, Bitwarden-compatible server written in Rust. The deciding factor was operational:
- It has a real command-line client and REST API, so automation can create and update entries without a human at a GUI. A
.kdbxfile is GUI-first, and the only automation path would have been fragile screen scripting. - No Windows licence or VM overhead; it fits the same dedicated-container pattern as every other service.
- Ordinary desktop, mobile and browser clients still work for the people using it, so there is no usability downgrade.
Placement
A dedicated unprivileged container, defined in Terraform. The container's ID and address were checked against live listings on both cluster nodes before use. That rule came from an earlier evaluation, where an ID we assumed was free collided with an existing VM. Docker's default bridge networking worked in the unprivileged container without the networking and device problems we had hit with another container runtime.
The certificate: manual on purpose
A proxy such as Caddy can speak ACME directly to our private CA for fully automatic issuance and renewal, with less role code. We chose the more manual path: one step ca certificate request through the CA's JWK provisioner, plus a dedicated step ca renew --daemon service for renewal.
The reasoning was about debuggability. Caddy's ACME flow adds failure modes that are hard to see (challenge validation, the proxy trusting the CA's root for its own outbound client), and nothing in the lab had yet exercised the CA's ACME provisioner for real. The JWK path reuses the exact mechanism the CA's own build was verified against. A little more role code buys much more predictable behaviour. We noted it can be revisited if the ACME integration is ever wanted for its own sake.
A bug worth recording
The role hit a small real bug in the CLI's argument order during the certificate request, fixed and documented in the build log.
Verification
The vault served over a certificate issued by the private CA, and the CLI could read and write entries non-interactively, which was the point of the exercise.
Takeaway
Pick infrastructure by the interface you will actually use at 2 a.m. For secrets, that means scriptable, auditable and boring, and for certificates, the path you have already proven.