Company password vault: no more passwords over email
Instead of sending passwords to new staff and partners over email or chat, use Vaultwarden with Entra ID SSO and a one-time Send link.
Someone new starts. Their account is created, and the password is typed into an email or a chat message and sent. That message then sits for years in a mailbox, in backups, maybe somewhere it was forwarded to. Nobody does this on purpose; there just isn't a better way.
Problem
- Initial passwords go out over email or chat.
- Credentials for partners are shared the same way.
- Accounts that teams share live in a spreadsheet or in someone's notebook.
The issue isn't technical, it's habit. Until you offer an easier way, people keep sending emails.
Solution
Open source Vaultwarden. It's a Bitwarden-compatible server; the official Bitwarden clients, browser extensions and mobile apps work with it. It runs on your own server, and there is no license fee.
- Login is via Microsoft Entra ID SSO (OIDC). Staff sign in with their corporate account and don't have to memorize a separate username.
- SSO handles login; the vault is still unlocked by the user's master password. The encryption key stays with the user, not on the server.
- This vault is kept separate from the infrastructure team's own vault. A system opened to general users and administrator secrets shouldn't live in the same place.
Example environment variables:
DOMAIN=https://vault.example.com
SIGNUPS_ALLOWED=false # open signups disabled
EMAIL_CHANGE_ALLOWED=false # identity is set by SSO, email cannot be changed
SSO_ENABLED=true
SSO_AUTHORITY=https://login.microsoftonline.com/<tenant-id>/v2.0
SSO_CLIENT_ID=<client-id>
SSO_CLIENT_SECRET=<client-secret>
ADMIN_TOKEN=<argon2-hash> # a hash, not plain text
Procedure
Sharing credentials now works like this:
- IT shares the initial password with a Send: at most 1 access, expires after 24 hours. The message contains only the link, nothing else.
- The user changes the password at first login. Once opened, the link is useless. If it's never opened, it dies on its own after a day.
- Records that teams share live in organization collections. Who sees which collection is granted by group. When someone leaves a team, their access is removed in one place.
The nice thing about Send: what stays behind in the mailbox is a link that no longer works.
Hardening
These are general best practices for any setup like this:
- Open signups disabled. Accounts are created only by invitation or through SSO.
- Email change disabled. When SSO is used,
EMAIL_CHANGE_ALLOWED=false. Identity comes from the identity provider; the user shouldn't be able to change it in the vault. - Admin panel behind a token and reachable only from the internal network. The token is stored as an argon2 hash, not plain text.
- HTTPS with a valid certificate. Bitwarden clients complain about invalid certificates anyway.
- Daily encrypted backups to a second location. The database, attachments and key files are taken together. Restores get tested now and then, too.
- Monitoring. Is the service up, when does the certificate expire, was today's backup taken?
One way to restrict the admin panel to the internal network at the reverse proxy:
vault.example.com {
@admin_external {
path /admin*
not remote_ip 10.0.0.0/8
}
respond @admin_external 403
reverse_proxy 127.0.0.1:8080
}
Adoption
Installing the vault isn't the end of the job. An unused vault means going back to sending passwords by email.
- A short, illustrated PDF guide: first login, browser extension, phone app, how to open a Send.
- A reminder email that keeps going until the user enrolls in account recovery. Someone who forgets their master password can't get back into their vault without it.
- Run the onboarding and reminder emails for a limited time, not forever. At some point, move the process into the normal onboarding steps.
Watch out
- SSO doesn't remove the master password. Explain this to users up front, or support tickets will pour in during the first week.
- Sending the Send link by email is fine, but never write the password into the email as well.
- Don't move infrastructure secrets into this vault. Separate vault, separate permissions.
Lesson
The way to make password sharing safe isn't to forbid things; it's to give people a way that is easier than sending an email.
Checklist
- [ ] Are open signups disabled?
- [ ] Is email change disabled while SSO is in use?
- [ ] Is the admin panel behind a token and reachable only from the internal network?
- [ ] Do initial passwords go out as single-access, 24-hour Sends?
- [ ] Does a daily encrypted backup go to a second location, and has a restore been tested?
- [ ] Are users who haven't enrolled in account recovery being followed up?
- [ ] Do the onboarding emails have an end date?