Who Can Join¶
Scope: the door policy of your server: registration — open by default, closed by you — invitations for the exceptions, and the admin token and admin page, which are the keys to the building and are treated that way.
The default is an open door¶
A fresh Vaultwarden lets anyone who
can reach the address register an
account. SIGNUPS_ALLOWED defaults to
true, and there is no approval step, no
queue, no notification that it happened.
For the first evening on your own LAN
that is convenient. As a steady state on
a public address it means your vault
server is a free, anonymous,
encrypted-storage service for the whole
internet — and the accounts are sealed,
so you cannot even see what is being
stored. Everything in this chapter exists
because of that paragraph.
The working rhythm, which chapter 10 turns into a checklist:
- Install with signups open (chapter 2).
- Create your own account (chapter 3).
- Invite or register the household.
- Set
SIGNUPS_ALLOWED=false, restart, and never open it again except on purpose, briefly, while you watch.
Closed means closed — and says little¶
The lab restarted its server with
SIGNUPS_ALLOWED=false and had a third
person try the door (t18):
POST /identity/accounts/register/send-verification-email -> 400
the server refuses, in its deliberately uninformative words:
"Registration not allowed or user already exists"
Read that message closely: it is the same sentence whether registration is closed or the address already has an account. The server declines to be an oracle about which addresses live on it (the same instinct as prelogin's decoy answers, chapter 3). Meanwhile nothing about existing accounts changes: Maren logged in and synced her intact vault in the same run, and the admin page opened as usual. Closing registration is not a lockdown mode; it is just a door policy for strangers.
Invitations: the exception that still works¶
Closed registration would be a nuisance if it were absolute. Invitations are the exception: from the admin page (or an organisation's member screen, chapter 6), an existing address is invited, and that address may register even while signups are closed. Two honest details:
- With no mail configured, the lab read the rule in the server's own code: an invited address can complete registration when mail is off, because there is no mailbox for a link to go to — the invitation itself, recorded in the database, is the credential.
- With mail configured, invitations
and the chapter-3 verification flow
become emails, and
SIGNUPS_VERIFYdecides whether new accounts must click the link before they exist.
A related setting, SIGNUPS_DOMAINS,
restricts open registration to addresses
at listed domains — useful for a small
organisation with its own mail domain,
rarely the point in a household.
The admin token: a password for the building¶
Setting ADMIN_TOKEN turns on a second,
smaller website at /admin. Whoever
presents the token is the operator:
the user list, every account's fate, the
server's settings, diagnostics, and a
database backup button live behind it.
It is not an account; there is no
username, no second factor, and no
recovery if it's lost short of changing
the configuration and restarting (you
own the machine, so you can always do
that — chapter 11).
The lab's first start printed the project's own opinion of a plain-text token, in its startup log (t04):
[NOTICE] You are using a plain text `ADMIN_TOKEN` which is insecure.
Please generate a secure Argon2 PHC string by using `vaultwarden hash` or `argon2`.
Take the advice. vaultwarden hash
(t17) asks for the password twice and
prints a PHC string — the password,
salted and stretched by Argon2id, in a
standard envelope — and that string is
what goes in the configuration:
ADMIN_TOKEN=$argon2id$v=19$m=19456,t=2,p=1$<...>
Two presets exist: bitwarden (64 MiB,
3 iterations, 4 threads) and owasp
(19 MiB, 2 iterations, 1 thread); either
is fine for a token you type rarely. The
lab ran its closed-registration server
on a PHC token and the admin page opened
with the same typed password as before
(t18) — the configuration now holds only
the hash, so a leaked config file no
longer hands over the building. One
earned warning: copy the PHC string
exactly. The lab's first attempt
carried a stray character from the
terminal capture and the server refused
to start, naming the reason: The
configured Argon2 PHC in ADMIN_TOKEN is
invalid: 'invalid Base64 encoding'.
The admin page itself¶
/admin answers with a login page even
before any token is offered (t16). A
wrong token gets a flat 401. The right
one sets a session cookie, and the page's
Users overview listed both of the
lab's specimen accounts — from there an
operator can delete an account, manage
its two-step login, or invite new users.
The settings screen is the part to be
careful with: saving there writes a
config.json into the data folder, and
from then on the server has two
configuration sources. The rule the
project documents: environment variables
override the file. Operators have
"fixed" settings in the environment and
watched the page's older values win in
their heads only — set each thing in one
place. If you don't want the page at all,
the complete off switch is simpler than
any policy: remove ADMIN_TOKEN and
restart; /admin goes back to 404.