Files
Yota Hamada 06a68fabcf Need a setup token for first-run setup after ten minutes
Until the first admin exists, anyone who could reach the server could
create it and take over the server. Scripts create the admin through
the same endpoint as the server starts, so a token cannot be required
from the first second without breaking them.

A server that starts without an admin now keeps a one-time setup token
in <data_dir>/auth/setup-token and prints the setup URL with the token,
in the startup banner or the log. For the first ten minutes after
start, setup works as before. After that, it needs the token, and
returns 401 without it. The token file is removed once the admin
exists. Servers with an admin, or with auth.builtin.initial_admin, are
unchanged, and so is setup when the token cannot be written.
2026-11-23 12:36:37 +09:00
..
2026-09-24 17:43:27 +09:00
2026-11-01 22:18:55 +09:00